Silk Mobile

Table of Contents (Homepage)

GetMonitorsData

String getMonitorsData(csvFilePath)

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

Return the content of the monitor values as string in CSV format.

Parameters

  • CSV File Path (optional): The absolute path for the file. Path must include the file name with *.csv. If value is blank, it will store the file in the report folder.

Note: When running the command, counter monitoring is on hold.

Usage

Command works only if StartMonitor command is used (otherwise it won't give any information). It retrieve all Counter values which were collected during the test run so far.

Scenario: We will create a test on the EriBank demo application. During the test run, we will monitor the memory values of the application. At the end of the test, we will collect all counter values using this command

Parameters:

  • csvFilePath (optional): Will be blank.

images/download/attachments/3310337/4.jpg

Result: The generated CSV file.

In this case, there are two columns. Date value was take and the value measured.

images/download/attachments/3310337/5.jpg

The link to the .csv files is also attached in the reports as below

images/download/attachments/3310337/6.jpg