Legacy | Timer report

  • Command: status

  • Subcommand: timer

  • Supported Platforms: Native (legacy), UFT (legacy), Selenium, Appium

    All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.

  • Supported OS: Android, iOS

Description

Adds a timer report to the test. The measured timer result is reported from the test (retrieved via the Get timer command) into the generated Single Test Report. The report is named according to the name parameter and based on the timing measurement specified by the result parameter.

For more details on adding timer reports to your test, see Performance testing.

Parameters

Name Value Default Description
name*     The timer report name to display as part of the test and in the Wind Tunnel report.
result*    

The calculated timer result duration in milliseconds.

Minimum value is 0.

threshold    

The maximum threshold duration allowed for this timer in milliseconds.

If a threshold is defined, the success/fail state of the command will be based on whether the reported timer value exceeds the threshold or not.

Minimum value is 0.

description

   

The description text to display as part of the test and in the Wind Tunnel report.

status

success (Success)

failure (Failure)

 

The defined timer report status.

If the status is not set, it will be calculated using the timer result and threshold parameter values. If the result is bigger than the threshold then the status will be a failure. Defining a status will override the calculated status result even if the status was calculated as failure.

Success - a success status will be displayed in the Wind Tunnel report

Failure - a failure status will be displayed in the Wind Tunnel report. Setting the status to failure will change the status of the execution to 'Completed with Errors'.

* Mandatory parameter

Request & Response

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-08_09_26_26_940?operation=command&securityToken=<your_token>&command=status&subcommand=timer&param.name=none&param.result=5000
Copy

JSON response

 {
  "executionId": "john@perfectomobile.com_controller_16-11-08_09_26_26_940",
  "reason": "Success",
  "returnValue": "SUCCESS",
  "testGridReportUrl": "https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-08_09_26_26_940",
  "singleTestReportUrl": "https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161108/controller_16-11-08_09_26_26_940.xml&ownerId=john@perfectomobile.com&sharingCode=166ca97d-a844-443e-bb78-99da59f69f8f",
  "description": "Success",
  "reportKey": "PRIVATE:controller/161108/controller_16-11-08_09_26_26_940.xml",
  "completed": "true",
  "flowEndCode": "SUCCEEDED"}