= Tracking Transaction Performance - pCloudy documentation
  • Docs »
  • Tracking Transaction Performance

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)

How to Track Transaction Performance Manually:

Step 1: Login to the platform and connect to any available Devices.

Web URL

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

Web URL

Step 3: Enter the transaction name.

Note - Transaction name should not contain any space

Web URL

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.

Web URL

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

Web URL

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

Web URL

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

Web URL

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)
Web URL

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

Web URL