Editing Verifications

Verify Actions can be added to your test during creation, while reviewing 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 as found in 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 Actions 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 also: Verification Options in Architect.

Attribute Validation

Attribute Validation allows a user to verify specific attributes of an element, most commonly used is text, value, and SRC, though all attributes are accessible. Combined with Operators like 'contains', 'greater than' and 'equals step value', specific verifications can be added easily with no code required.

Verify only a single element at a time, not a div that contains multiple elements as this will limit the self healing properties of the test and make it harder to diagnose.

See also Best Practices Using Verifications.

DOM Attributes

  1. Open the Verify Action Settings.
    EditVerify1.png
  2. Select the desired Attribute from the drop-down.
    EditVerify2.png
  3. Select the desired Operator from the drop-down.
    EditVerify3.png
  4. Enter the Value for the validation.
  5. Click the Multiple button to combine multiple validations using "AND" and "OR" operators.
    EditVerify4.png
    • If OR is used: Architect will check for the first true condition. Once verified, no further check will be performed and will immediately move on the next step.
    • If AND is used: All existing conditions will be checked.
  6. Click the plus icon to add additional attribute validations.
    EditVerify5.png
  7. Click the trash icon to delete validations.
    EditVerify6.png

CSS Attributes

  1. Open the Verify Action Settings.
    EditCSS1.png
  2. Enter the desired 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. 
    EditCSS2.png
  3. Select the desired Operator from the drop-down.
    EditCSS3.png
  4. Enter the Value for the validation.
    EditCSS4.png
  5. Click the Multiple button to combine multiple validations using "AND" and "OR" operators.
    EditCSS5.png
    • If OR is used: Architect will check for the first true condition. Once verified, no further check will be performed and will immediately move on the next step.
    • If AND is used: All existing conditions will be checked.
  6. Click the plus icon to add additional attribute validations.
    EditCSS6.png
  7. Click the trash icon to delete validations.
    EditCSS7.png

Visual Verification

  1. Edit your Visual Check validations.
    ImageVerify2.png
  2. Select Baseline or Previous Step from the drop-down.
    ImageVerify3.png
  3. Enter or edit the match percentage. Click Save.
    ImageVerify4.png
  4. Verify Actions that include a visual verification display a Visual Check flag in the Action's footer.
    ImageVerify6.png
  5. Hover over the flag to view the Baseline and Current Result images. Here you can also edit the match requirement percentage, view the baseline for the current browser results, and update the baseline image to the current image.
    ImageVerify5.png

 

Validation Failure

Execution error details will display in the bottom of the expanded Action when viewed on the Test Detail page.
EditVerify11.png

Execution error details will display in the Action panel when in Slider View.
EditCSS9.png

 

Advanced Tab

The Advanced tab of the Action Settings for Verify Actions contains a few more options than the Advanced tab of many other actions including Action Retries and Retry Count. Options to add Pre and Post scripts as well as flags for clearing cookies are present as with other Actions. This tab also offers the Selector Type tile for overrides as detailed in User Guide: Customizing Tests with Selectors.
EditVerify10.png