Advanced Verifications

Simple verifications of data can be easily completed by left-clicking the Flag icon in Architect and then left-clicking on the element to verify. Verifying large elements that contain multiple elements should be avoided. Each verification should be a specific element.

Verifications_1.png

 

Advanced Attribute Validation

Advanced verifications are used for verifying dynamic data and are leveraged in combination with Operators.

  1. To place an advanced verification on an element click the Flag icon, then toggle the Advanced button to turn on Advanced mode. Both icons should now be blue as shown in the picture below.
    Verifications_2.png
  2. Click on the element to perform an advanced verification. A new screen will open that shows the Attribute (ADV) Validation.
    ADV_Validation.png
  3. The Attribute Validation tab 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.
    mceclip1.png
  4. 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.

 

Multiple Validations on a Single Verification

It is possible to save multiple validations on a single verify step with the Multiple option using "OR" and "AND" operators. 

  • 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.
    mceclip2.png

 

Custom Attribute Validation

Use the Custom tab to manipulate selected elements.
Custom.png

 

Visual Check Validation

The Visual Check button allows elements to be validated visually. This is limited to specific elements/images and not sections of pages that are comprised of multiple elements.
visual_check.png

See also: Computer Vision Validations in Architect.

 

Element Validation

If the element to be verified cannot be directly selected, verify an element close to it using the advanced mode and select the Element tab. The Element tab can also be used without verification.

  1. Select the Advanced mode toggle only.
    Verifications_8.png
  2. Click on the element to perform an advanced verification. A new screen will open that shows the Element tab to specify verification criteria.
    element_tab.png

 

Advanced Selector

  1. Another way to place an advanced verification on an element click the Hover icon, then toggle the Advanced button to turn on Advanced mode. Both icons should now be blue as shown in the picture below.
    pointer_adv.png
  2. Click on the element to perform an advanced verification. A new screen will open that shows the Attribute (ADV) Selector.
    ADV_Selector.png
  • DOM: using the plus icon, the DOM can be walked to select any element regardless of size or other overlapping elements.
  • CSS Validationusing the plus icon, the CSS can be walked to select any element regardless of size or other overlapping elements.
  • Custom JS: custom JavaScript can be used to facilitate very specific verifications, including verifications that contain logic like addition and subtraction.
  • Outcome: the expected step outcome can be overridden using jQuery or JavaScript.