Knowledge Base Article

> Knowledge Base > Rapise

Created By  dmarkovtsev Thursday, October 19, 2017

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

  1. Implicit
  2. Explicit fixed
  3. 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.

 

Attachments

Selected files will be attached to any email sent on saving ticket.

file selected files selected  () Delete Selected

  • Created:
  • by:

Select files to upload

Or drag and drop files here

Uploading …
Done!
Upload More?
There was an error.
Try again?

Save to upload the selected file(s)

Article Info
  • Last Updated: 10/19/2017
  • Article ID: KB301
  • Views: 198