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.


Before you begin

To set a wait state:


Procedure

  1. Click the Record a Functional Tester Script button on the Functional Tester 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 seconds Functional Tester will wait for the object to appear in your application during playback. Check Interval is the number of seconds between times that Functional Tester will check for the object during the wait period.

    2. Check Use the defaults. Functional Tester 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.


What to do next