Silk Mobile

Table of Contents (Homepage)

GetCounter

string getCounter (Counter Name)

images/images/os-icons/os_ios_150x150.png

images/images/os-icons/os_android_150x150.png

images/images/os-icons/os_windows_150x150.png

Description

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

Parameters

  • CounterName : Monitor - CPU \ Memory \ Battery.

Usage

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

images/download/attachments/3310351/9.jpg

Upon execution values of these monitors will be fetched one time and there values.

images/download/attachments/3310351/10.jpg

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

images/download/attachments/3310351/11.jpg