Tracking Transaction Performance
Overview
Transaction Level Performance will allow users to access important information related to the CPU usage, memory, battery status, response times, etc. when a particular action or a series of actions are performed as part of the app usage.
What is a Transaction?
A transaction refers to the completion of an action or a series of actions that are requested on the application as part of its usage. The transaction level performance data will help the users analyse and compare the performance when performing various transactions to optimize and enhance the performance of the application.
Prerequisite
User should have a registered pCloudy account
- SSL Pinning needs to be disabled
Transaction Performance Metrics
- During the recording, the session will collect device monitor statistics such as: CPU, Memory, Network, and Battery.
- A performance report is available when executing a transaction. The report contains the following measurements:
- Duration - the transaction durations in milliseconds.
- Memory - Average and maximum values for the transaction.
- Battery - Average and maximum values for the transaction.
- CPU - Average and maximum values for the transaction.
- Network - Total of Uploaded/Downloaded KBs during the transaction (this data will depend on application)
Important Note - The steps to track the transaction performance is different on the New and the Old User interface. You can scroll further down to view the steps or instructions to monitor the Transaction Performance using the Old UI.
How to Track Transaction Performance Manually on the New UI
Step 1: Login to the platform, connect to any available Devices and click on install to install an Application

Step 2: Select the App and click on Install.
Note - For browsers, the user will need to select the browser package. e.g for ios safari browser, user need to select COM.APPLE.MOBILESAFARI

Step 3: While the app is being installed, the user can click on Transaction on the right hand side docking station.

Step 4: The user will need to select the application package.

Step 5: The user will need to select the application package, Enter the transaction name.
Note - Transaction name should not contain any space


Step 6: Once the user has finished completing the transaction, the user will need to click on “Stop" to stop the transaction. Once the transaction is stopped the user will be able to save the transaction or start a new transaction. The user can click on “View Report” to view the report generated at run time.
Note - The user can also go to the Report section by selecting reports on the left pane and navigate to All Reports section, click on view icon to open the session report.


Step 7: The User will be directed to the Trasaction report.
Where the user will be able to view the below-mentioned information from the report.
- Package Name
- OS
- Device Name
- Model
- SDK
- Resolution
- Transaction Duration
- Performance related information(CPU, Memory, Battery, Network)

How to Track Transaction Performance Manually on the Old UI
Step 1: Login to the platform and connect to any available Devices.

Step 2: Once the device is connected. The user can click on Transaction on the right hand side Panel. The user will need to select the application package
Note - For browsers, the user will need to select the browser package. e.g for ios safari browser, user need to select COM.APPLE.MOBILESAFARI

Step 3: Enter the transaction name.
Note - Transaction name should not contain any space

Step 4: Once the user has finished completing the transaction, the user will need to click on “Stop Transaction" to stop the transaction. Once the transaction is stopped the user should be able to save the transaction or restart and start a new transaction.

Step 5: The user can click on “View Report” to view the report generated at run time

Step 6: User can also go to the Report section and navigate to All Reports section, click on view icon to open the session report

Step 7: Go to “Transaction Report” section and click on view report

Users will be able to view the report by clicking on the "View Report" button. The user should be able to get the below-mentioned information from the report.
- Package Name
- OS
- Device Name
- Model
- SDK
- Resolution
- Transaction Duration
- Performance related information(CPU, Memory, Battery, Network)

How to Track Transaction Performance through Appium script:
Users can use the below mentioned command in the appium script to track the transaction performance
Map<String, Object> params = new HashMap<>();
//Enter transaction name
Note: The Transaction name should not contain any space
params.put("transactionName", "Trans_Login");
//Start transaction
driver.executeScript("mobile:transaction:start",params);
Write--------Your ------------script
//Stop transaction
driver.executeScript("mobile:transaction:stop",params);
As an example Refer the below screenshot
