You can add image verifications to your visual tests or VB .NET scripts to check if controls which are otherwise not recognizable exist in the UI of the application under test. To add an
image verification during the recording of a visual test or a VB .NET script, perform the following steps:
-
Begin recording.
-
Move the mouse cursor over the object that you want to verify and press
Ctrl+Alt.
When you are recording a mobile Web application, you can also click on the object and click
Add Verification.
This option temporarily suspends recording and displays the
Test Logic Designer wizard.
-
Click
Next.
The
Select a Logic Type page opens.
-
Click
A verification asset.
The
Build the Verification Asset page opens.
-
Perform one of the following steps:
- To create a new image verification in the image verification UI, click
Create a new verification.
- To insert an existing image verification asset, click
Insert an Existing Verification.
-
Click
Next.
The
Summary page opens and shows you a preview of your new verification.
-
Click
Finish.
The new image verification is added.
-
Continue recording.