Setting a wait state for an object

This feature is used to set a wait state for an object during playback to check for its existence. This is useful when waiting for an object right after starting your application, or after other actions that may take a long time.

Procedure

  1. Click the Record a Functional Test Script button on the product toolbar.
  2. In the Recording Monitor, click the Start Application button to start your test application.
  3. Locate the object in your application that you want to wait for.
  4. In the Recording Monitor, click the Insert Verification Point or Action Command button.
  5. On the Select an Object page of the Verification Point and Action Wizard, use the Object Finder to select the object in your application. Once you have selected the object, click Next.
  6. On the Select an Action page, click the Wait for Selected Test Object option and click Next.
    1. To set a wait state for the object, either use the defaults, or set your own time. Maximum Wait Time is the maximum number of secondsHCL OneTest UI will wait for the object to appear in your application during playback. Check Interval is the number of seconds between times thatHCL OneTest UI will check for the object during the wait period.
    2. Check Use the defaults.HCL OneTest UI check for the existence of the object in your application every 2 seconds, for up to 120 seconds.
    3. To set your own time, clear the Use the defaults check box and type in your own values for Maximum Wait Time and Check Interval.
  7. Click Finish.
    The statement containing the waitForExistence will then be written into your script at the point you inserted the object.