Defining the Image property as object identifier for Web UI tests
Before you start recording Web UI tests, you can define the image property as the object identifier. When image property is set as the object identifier, then the objects in the web application are recognized and captured as images while recording a Web UI test.
About this task
When you generate the recorded test, you can view that all objects in all the test steps are recognized and captured as images. These images are used for validating the target objects during playback of the tests. This feature helps to save time and your effort when your application has lot of images and a complex UI within your application.
Procedure
- Go to UI Test Recording pane is displayed. . The
- In the Preferred object identifiers pane, click Add.
-
Enter image in the text box and click
Ok.
Now, the image property is defined as the object identifier for Web UI tests.
Results
What to do next
You can also add the following details to your test steps:
-
New images in addition to the existing images.
- Verification point to the images.