Editing Verification Actions

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

  1. Open the Verify Action Settings
    EditVerify1.png

  2. Select the desired DOM Attribute from the drop-down list
    EditVerify2.png

  3. Select the desired Operator from the drop-down list
    EditVerify3.png

  4. Enter the Value to be verified
    EditVerify4.png

  5. Click the Multiple button to combine multiple validations using AND and OR operators
    EditVerify4.png

    • 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

  6. Click the plus icon to add additional DOM Attribute validations
    EditVerify5.png

  7. Click the trash can icon to delete DOM Attribute validations
    EditVerify6.png

CSS Attributes

  1. Open the Verify Action Settings
    EditCSS1.png

  2. 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.EditCSS2.png

  3. Select the desired Operator from the drop-down
    EditCSS3.png

  4. Enter the Value to be verified
    EditCSS4.png

  5. Click the Multiple button to combine multiple validations using AND and OR operators
    EditCSS5.png

    • 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

  6. Click the plus icon to add additional CSS Attribute validations
    EditCSS6.png

  7. Click the trash icon to delete validations
    EditCSS7.png

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.

  1. Open the Verify with Visual Check Action Settings
    ImageVerify2.png

  2. Select Baseline Comparison or Previous Action from the Visual Check Type drop-down list
    ImageVerify3.png

  3. Enter or edit the Visual Match Requirement (%) and then click Save
    ImageVerify4.png

  4. Verify with Visual Check Action displays a Visual Check flag in the action's footerImageVerify6.png

  5. 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
    ImageVerify5.png

Validation Failure

  1. Execution Error details will display at the top of the expanded action when viewed on the Test Detail pageEditVerify11.png

  2. Execution Error details will display in the action sidebar panel when in Slider ViewEditCSS9.png
 

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.


EditVerify10.png