Last updated: Jan 27, 2020 12:07
Command: timer
Subcommand: check
Supported Platforms: Native
Supported OS: Android, iOS, BalckBerry
Verifies that a stopped timer does not exceed a defined duration limit.
The timer records all types of time measurements (elapsed, user, RTT, system and Handset) , and the validation is performed against one specific type.
The timer must be stopped before performing this validation.
Parameters
Name | REST Name | Type | Default | Description |
---|---|---|---|---|
Timer ID* | timerId TimerA (TimerA) TimerB (TimerB) TimerC (TimerC) | STRING | Unique timer identifier to control. | |
Upper time limit | lt | INTEGER | The maximum duration in seconds, allowed for this timer. | |
Lower time limit | gt | INTEGER | The minimum duration in seconds, allowed for this timer. | |
Timer type | type elapsed (Elapsed) device (Device) ux (UX) system (System) | STRING | Elapsed | The selected timer type. Elapsed - Elapsed time (no segmentation) Device - Device work time UX - User experience time System - System activity |
* Mandatory parameter
Request & Response
Request syntax
https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-02_09_02_04_781?operation=command&user=john@perfectomobile.com&password=jtest123&command=timer&subcommand=check¶m.timer=TimerA
JSON response
{ "executionId":"john@perfectomobile.com_controller_16-11-02_09_02_04_781", "reason":"Success", "returnValue":"true", "description":"Validation passed: Value of elapsed timer TimerA is 28907 milliseconds, which meets all the following conditions: [<30]", "reportKey":"PRIVATE:controller/161102/controller_16-11-02_09_02_04_781.xml", "completed":"true", "flowEndCode":"SUCCEEDED", }