Skip to main content

SeeTestAutomation- GetCounter

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

string getCounter (Counter Name[:PackageName])

Description

 Returns the monitor (CPU/Memory/Battery) value on the given time

Parameters

  • CounterName: 
  • PackageName: Optional parameter. When given, monitor value will be returned for the application whose package name is given, otherwise the monitor value will be returned for the system level.

Usage

Scenario: We will create a short scenario on the Eribank application. During the test we will collect values of CPU and Memory monitors.

Values will be returned as string and will be also displayed on the generated Report under the Data tab

Scenario: We will create a short scenario, which launches cnn.com on Safari for iOS, and then  retrieve the CPU consumption of safari.