Page tree
Skip to end of metadata
Go to start of metadata

Description

Start Performance Transaction collects data on Duration, CPU, Battery, Memory, and Network traffic of the device.

The command must be used with the following EndPerformanceTransaction 

Parameters

NameValue
NVProfile

Name of the Virtualization profile (Network Virtualization).

Note: If given empty\null value, then no profile is selected.

Usage

This will start a performance transaction. An exception is thrown if trying to start a transaction while an existing transaction is already run.

You can view the transaction, once ended, in SeeTest Reporter under "Transactions" tab.

Note:

  • Supported version Android 5.0+ and all iOS versions.
  • A transaction maximum time is 5 min. After 5 minutes transaction will be canceled
  • The transaction will be canceled if you release client\quit driver. No data will be saved


Set Experitest Url and Access Key

Please make sure you replace <EXPERITEST_URL>, <ACCESS_KEY> with appropriate URL and access key in the sample code below.

Example

StartPerformanceTransaction
String accessKey = "<ACCESS_KEY>"
String url = "<EXPERITEST_URL>";
DesiredCapabilities dc = new DesiredCapabilities();
//...your capabilities
dc.setCapability("testName", "Transaction example Demo");
dc.setCapability("accessKey", accessKey);
dc.setCapability("deviceQuery", "@os='android' and @category='TABLET'");
dc.setCapability(MobileCapabilityType.APP, "cloud:com.experitest.ExperiBank/.LoginActivity");
dc.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, "com.experitest.ExperiBank");
dc.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, ".LoginActivity");

driver = new AndroidDriver(new URL(url), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "deviceid");
     
...
...
 
// Starts performance transaction
seetest.startPerformanceTransaction("");

//...do some work. For example:
seetest.sleep(5000);

// end transaction
seetest.endPerformanceTransaction("exampleTransaction");




  • No labels