Timer start (FR)

Perfecto Command

mobile:timer:start

Purpose

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.

The Timer Start command is only supported when using Perfecto's Native IDE automation testing.

Parameters

Name Type Possible Values Description
timerId String TimerA | TimerB |
TimerC | other_name

Mandatory.

Unique timer identifier.
Enter an identifier or use one of the listed identifiers.

initPolicy String reset | noreset  The timer initialization.
Reset (default) - Reset timer to zero
No reset - Continue timer from the existing value

Return Value

None

Exceptions

None

Examples

Copy

Java sample

Map<String, Object> params = new HashMap<>();
params.put("timerId", "myTime");
driver.executeScript("mobile:timer:start", params)
Copy

C# sample

Dictionary<String, Object> pars = new Dictionary<String, Object>();
pars.Add("timerId", "TimerB");
driver.ExecuteScript("mobile:timer:start", pars);