background image
<< Starting to Create a Verification Point | Setting the Expected Result for a Verification Point >>
<< Starting to Create a Verification Point | Setting the Expected Result for a Verification Point >>

Setting a Wait State for a Verification Point

Creating Verification Points in GUI Scripts
4-8
3. In the Verification Point Name dialog box, edit the name as appropriate. The
name can be a maximum of 20 characters.
4. Optionally, set the Wait state options. For information, see the next section,
Setting a Wait State for a Verification Point.
5. Optionally, set the Expected result option. For information, see Setting the
Expected Result for a Verification Point on page 4-9.
6. Click OK.
The steps that you perform next depend on the type of verification point that you
are creating. For a list of verification points, see Types of Verification Points on page
4-3.
For detailed information about each verification point and how to create it, see
the Robot Help.
Setting a Wait State for a Verification Point
When you create a verification point, you can add specific wait values to handle
time-dependent test activities. Wait values are useful when the application requires
an unknown amount of time to complete a task. Using a wait value keeps the
verification point from failing if the task is not completed immediately or if the data
is not accessible right away.
For example, suppose you create an Alphanumeric verification point that tests for a
specific string in a text box. When you play back the script, Robot first looks for the
text box. The verification point fails immediately if the box does not exist. If Robot
finds the box, it checks for the string in the box. However, the string might not be
in the box yet (your application might be running slowly and the box might not be
updated yet). To solve this, include wait values so that Robot retries the test (checks
for the string) every two seconds. If the content of the box does not match the string
within 30 seconds, the verification point returns a failure indication to the script.
Robot inserts the verification
point type and adds a number
if there is more than one of the
same type in the script.