background image
<< Setting a Wait State for a Verification Point | Selecting and Identifying the Object to Test >>
<< Setting a Wait State for a Verification Point | Selecting and Identifying the Object to Test >>

Setting the Expected Result for a Verification Point

Tasks Associated with Creating a Verification Point
4-9
For verification points that verify the properties or data of an object, Robot must
first find the specified object before it can perform the verification point. After it
finds the object, the following happens:
¾
If no wait state is specified, the verification point passes or fails immediately.
¾
If a wait state is specified, then Robot does the following, as shown in this
pseudocode example:
loop until timeout period expires (as specified by Timeout After)
wait for retry period (as specified by Retry Every)
perform VP
if it passes, exit loop, else loop back
end loop
To add a wait state when creating a verification point:
1. Start to create the verification point. (See Starting to Create a Verification Point on
page 4-7.)
2. In the Verification Point Name dialog box, select Apply wait state to
verification point.
3. Type values for the following options:
Retry every ­ How often Robot retries the verification point during playback.
Robot retries until the verification point passes or until the time-out limit is
reached.
Timeout after ­ The maximum amount of time that Robot waits for the
verification point to pass before it times out. If the time-out limit is reached and
the verification point has not passed, Robot enters a failure in the log. The script
playback either continues or stops based on the setting in the Error Recovery tab
of the GUI Playback Options dialog box.
Setting the Expected Result for a Verification Point
When you create a verification point, the expected result is usually that the
verification point will pass. For example, if you create a Window Existence
verification point, you are usually expecting that the window will exist during
playback. If the window exists, the verification point passes.
However, suppose you want to test that a window does not exist during playback.
This is useful when you want a script to wait for a window to disappear before
continuing. In this example, you could create a Window Existence verification point
with the following values:
¾
A timeout wait state value of 30 seconds
¾
An expected result of Fail