Created By  inflectra.adam Wednesday, August 2, 2017

We often get requests for ways to slow down the playback speed of Rapise so that the application under test (AUT) has time to respond. This article describes the different ways and provides suggestions as to when you should use each one.

Slowing Down Every Step in a Test

If the entire application is slow and every step in a test needs to playback more slowly, the easiest solution is just to go to the Test Settings (next to the Object Tree) and adjust the playback parameters for the test:

For example, you can change the following:

  • Command Interval - The number of milliseconds between playback actions (default 1000ms)
  • ObjectLookupAttempts - The number of times Rapise tries to find the object (default 5)
  • ObjectLookupAttemptInterval - The number of milliseconds between lookup attempts (default 300ms)

Slowing Down Specific Operations

Sometimes the application is fast enough in general, but you need to slow down a specific operation. In that case, you should use the following command:

Global.DoSleep(3000);

where the value is in milliseconds (in this example 3 seconds). In RVL it would look like:

Waiting Until a Specific Object is Ready

Finally, sometimes you want Rapise to wait until a specific object is ready. To do that, you can use either:

Global.DoWaitFor('Login', 5000);

which waits for the Login object to be ready, or continues after 5 seconds, OR:

Global.DoWaitForProperty('Login', 'Text', 5000);

which waits for the Text property of the Login object to be ready, or continues after 5 seconds.

In RVL this looks like:

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: 8/2/2017
  • Article ID: KB269
  • Views: 286