Editing Verification Actions Overview
Verify Actions can be added to your test during test creation with Architect, while reviewing test execution results in Slider View, during a Live Debug run, or in a Local Edit session. When it comes to editing Verify Actions, the Action Settings found on the Test Detail page and Slider View offer you practically all the options found in Architect, without using Live Debug or Local Edit.
Note: The screenshots in this article are pulled from the Action Settings when accessed via the Test Detail page. The options are the same when accessing Action Settings via Slider View.
See User Guide: Action Settings.
See User Guide: Verification Options in Architect.
Attribute Validation
Attribute Validation allows a user to verify specific attributes of an element. The most commonly used attributes are Text, Value, and SRC, though all attributes of an element are accessible. Combined with Operators like Contains, Greater Than, and Equals Step Value, specific verifications can be added easily with no code required.
The best practice is to verify only a single, lowest-level element at a time, not a DIV element that contains multiple elements, as this will limit the self-healing properties of the test and make it harder to diagnose.
See User Guide: Best Practices Using Verifications.
DOM Attributes
-
Open the Verify Action Settings
-
Select the desired DOM Attribute from the drop-down list
-
Select the desired Operator from the drop-down list
-
Enter the Value to be verified
-
Click the Multiple button to combine multiple validations using AND and OR operators
- If OR is used - the test will check for the first true condition, once verified, no further checks will be performed and will immediately move on the next step
-
If AND is used - all existing conditions will be checked and have to be met in order for the action to Pass
-
Click the plus
icon to add additional DOM Attribute validations
-
Click the trash can
icon to delete DOM Attribute validations
CSS Attributes
-
Open the Verify Action Settings
-
Type the desired CSS Attribute in the text box
Note: CSS Attributes must be input manually when editing via Action Settings. There is a CSS attribute selection drop-down exclusively available in Architect while recording the test.
-
Select the desired Operator from the drop-down
-
Enter the Value to be verified
-
Click the Multiple button to combine multiple validations using AND and OR operators
- If OR is used - the test will check for the first true condition, once verified, no further checks will be performed and will immediately move on to the next step
-
If AND is used -all existing conditions will be checked and have to be met in order for the action to Pass
-
Click the plus
icon to add additional CSS Attribute validations
-
Click the trash
icon to delete validations
Visual Verification
Visual check refers to the process of visually verifying the appearance and layout of an object/element. It involves comparing Baseline image of the object/element and the image from the current test execution.
-
Open the Verify with Visual Check Action Settings
-
Select Baseline Comparison or Previous Action from the Visual Check Type drop-down list
- Enter or edit the Visual Match Requirement (%) and then click Save
-
Verify with Visual Check Action displays a Visual Check flag in the action's footer
-
Hover over the Visual Check flag to view the Baseline and Current result images, also in the modal that appears you can Edit the match requirement percentage, View Baseline for the current browser results, and Update baseline image to the current image
Validation Failure
-
Execution Error details will display at the top of the expanded action when viewed on the Test Detail page
-
Execution Error details will display in the action sidebar panel when in Slider View
Advanced Tab
The Advanced tab of the Action Settings detail for Verify Actions contains a few more options than the Advanced tab of many other action types, including Action Retries and Retry Count. Options to add Pre- and Post-Scripts, as well as flags to Clear Cookies, Skip Screenshot, Skip Scroll, Disable Self-Heal Validation, Enable Force React, and Override Default Self-Heal are present, as with other Actions. This tab also offers the Selector Type tile for overrides.
See User Guide: Customizing Tests with Selectors.