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
- Click the Record a Functional Test Script button
on the product toolbar.
- In the Recording Monitor, click the Start Application button
to start your test application.
- Locate the object in your application that you want to
wait for.
- In the Recording Monitor, click the Insert
Verification Point or Action Command button.
- 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.
- On the Select an Action page, click
the Wait for Selected Test Object option and
click Next.
- 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.
- 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.
- 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.
- Click Finish. The statement
containing the waitForExistence will then be written into your script
at the point you inserted the object.