Setting a global delay for test steps

You can set the duration of a global delay in milliseconds between all the steps instead of adding the wait time manually for each of the steps in a recorded test. You can specify this global delay as a preference for the playback of Web UI, Windows, or mobile tests.

Before you begin

You must have recorded a Web UI, Windows, or mobile test. See Tests in the UI Test perspective.

About this task

When you set the delay, during play back, each step starts after the previous step is completed and the delay time is passed. The global delay setting applies to all the test runs including the test runs by using the command-line interface.

You can also set the delay from the Run Configuration dialog by clicking the Configure UI Test Playback Preference checkbox, and then by entering the value in milliseconds. The value specified in this dialog applies only to the current test and it overrides the value that is set on the Preferences page.

Procedure

  1. Go to Window > Preferences > Test Execution > UI Test Playback.
  2. Click the Desktop tab.
  3. Select the Global steps delay in milliseconds checkbox in the Playback options section.
    Note: You must clear the Global steps delay in milliseconds checkbox to disable the global delay for all the test runs.
  4. Click Apply and Close.

Results

You have set a global delay for the test steps.