Silk Mobile

Table of Contents (Homepage)

SetMonitorTestState

void setMonitorTestState (String TestStatus)

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

Part of the monitoring commands.

You can insert a status name to the generated CSV file (which is created using the GetMonitorsData command), so you can later refer the values to parts of your application.

Parameters

  • TestStatus: The name of the status or page of the application for which monitoring values will be returned.

Usage

Scenario: We will create a short scenario on the Eribank application.

We will monitor memory values of the application and will add a SetMonitorTestState command according to pages in the application (Login page and make payment page).

This way we can refer to the values of memory according to location in the application.

images/download/attachments/3310361/12.jpg

In the generated monitoring CSV file, a new column will be added with title ‘Step Info’.

Values there will be the values given on the setMonitorTestState command.

images/download/attachments/3310361/13.jpg