Ways to slow down test execution

There are several types of delays one can use to slow down test execution.

Implicit

Explicit fixed

Explicit with timeout

Implicit Delays

Implicit delays occur after execution of actions on recorded/learned objects. For example, you captured a button object and run DoClick action on it.

SeS("OkButton").DoClick();

In this case after clicking on the button Rapise will wait for certain amount of time. Duration of this delay is specified in the test settings. The value of CommandInterval is in milliseconds.

Note: CommandInterval does not affect property getters and setters as well as any action calls on Global objects:

Increase CommandInterval to slow down test execution in general, this may help to avoid using many explicit delays.

Explicit Fixed Delays

Explicit fixed delays can be added into a test by calling

Global.DoSleep(10000);

Parameter of the DoSleep action is the number if milliseconds to wait.

Explicit Delays with Timeout

Rapise also can perform wait until timeout and proceed immediately when an object appears on screen or some property of an object has specified value. Use this method when an application under test performs some lengthy operation, e.g. loading some data.

See this article to learn about Global.DoWaitFor and Global.DoWaitForProperty.