Creating verification points for objects in tests
You can create a verification point in a recorded test for any object such as label, button, or others. You can then set the property of the object to color, font size, opacity, or others, so that HCL DevOps Test UI (Test UI) verifies the property during the playback.
Before you begin
About this task
Procedure
-
Open the test in Test UI.
The test is displayed in the Test Contents panel.
- Select the test step that contains the details of the object for which you want to create a verification point.
-
Click Insert, and then select Verification
point.
Alternatively, right-click the selected step, and then click.A verification step is created and displayed in the Test Contents panel.
-
Select the verification step.
The Check Action Details panel for the step is displayed.
- Perform the actions for the options that you want to include in the verification point, as provided in the following table:
Option | Description | Action | ||||||
---|---|---|---|---|---|---|---|---|
Graphic object |
The option that lists the objects that you can select for the verification point. Depending on the graphic object that you select, the corresponding options are displayed in the other UI elements of the Check Action Details panel. |
Perform the following steps to select an object in a test:
|
||||||
Object identified by | The identifier of the selected object. | Perform the following steps to select an identifier for the graphic
object:
|
||||||
Object location |
The location of the selected object. For example, the Submit button can be below a checkbox on a page when you recorded the test. |
Select the location of the object from the options provided in the list and then provide the values. The default value is (automatic detection). |
||||||
Verify attribute |
The attribute to be specified for the selected object. Some object attributes are dependent on others. Therefore, when you select an attribute, you must select the values that are related to the selected attribute. If an object takes longer than the expected time to appear or disappear on the application during the test recording, then you can select the Exist property of the object in the list, and then select the Retry verification point until attribute is verified or time out expires checkbox so that Test UI waits until the object appears or disappears on the application during the playback, or continues to retry until the attribute is verified. |
Select the attribute from the list. Following are two examples that you can perform to set the attributes to an
object:
|
||||||
Time out (seconds) |
The period of time in seconds that Test UI must keep trying to verify the attribute of an object. For example, if the display of an object took 2 seconds to display during the recording, you can set the same period of time as the time-out period or increase the waiting period for the playback. |
Optional: Perform the following steps:
|
||||||
Retry verification point until attribute is verified or time out expires | The option that specifies whether Test UI must repeatedly try to verify the attribute of the selected object until it is verified or until the time-out value that is defined in the Time out (seconds) field expires, whichever occurs earlier. |
Optional: Select the Retry verification point until attribute is verified or time out expires checkbox. For example, if you selected the color attribute to be verified, you can select this checkbox so that Test UI waits until the object is verified before it continues to the next test step. |
- Save the test.
Results
What to do next
You can perform the following tasks:
- Run the test. See Running a Web UI test.
- View the unified report for the test. See Unified reports.