Legacy | Timer start
-
Command: timer
-
Subcommand: start
-
Supported Platforms: Native (legacy)
-
Supported OS: Android, iOS
Description
Begins measuring time via a timer identified by the timerId parameter until the Timer stop command is used.
The initPolicy parameter is useful when using the command within a loop, where the timer can be reset or continued with each iteration.
Parameters
Name | Value | Default | Description |
---|---|---|---|
timerId* |
TimerA (TimerA) TimerB (TimerB) TimerC (TimerC) |
Unique timer identifier. Enter an identifier or use one of the listed identifiers. |
|
initPolicy |
reset (Reset) noreset (No reset) |
Reset |
The timer initialization. Reset - Reset timer to zero No reset - Continue timer from the existing value |
* Mandatory parameter
Request & Response
Request
https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-08_09_26_26_940?operation=command&securityToken=<your_token>&command=timer&subcommand=start¶m.timerId=timerA
JSON response
{
"executionId": "john@perfectomobile.com_controller_16-11-08_09_26_26_940",
"reason": "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"}