background image
<< Expected result | Identifying the Object to Test >>
<< Expected result | Identifying the Object to Test >>
Setting the Expected Result
Tasks Associated with Creating a Verification Point
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
pseudo-code 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 timeout limit is
Timeout after The maximum amount of time that Robot waits for the
verification point to pass before it times out. If the timeout 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