Configure Custom Property

Ways to Configure Custom Property

  • Element Repository

  • Avo Assure Client

A. Steps to Configure Custom Property from Element Repository

  1. Navigate to the Element Repository Tab

  2. Select the Element from the repository and click on Edit icon the Details window will appear at right side of the screen

  3. Make all attribute value as None

  1. Enter the property name used in your application in Cutom 1 value field (e.g., data-testid, data-val-required, custom-id).

  2. Click on Save Property button to save the changes.

2. Steps to Configure Custom Property form Avo Client

  1. Launch the Avo Client.

  2. Navigate to the Configuration window.

  3. Select the Settings section.

  4. Locate the Custom Property field.

  5. Enter the property name used in your application (e.g., data-testid, data-val-required, custom-id).

This tells Avo Assure to use this custom property during execution if the usual properties (like id or class) don’t work.

How to Use Custom Property with Self-Healing

Avo Assure also supports Self-Healing, which means it can update element properties automatically when something changes in the application. You can use Custom 1 in this self-healing process after doing a simple setup in the Avo Client.

How It Works During Execution

Once you’ve added the custom property in Avo Assure Client settings, follow the steps below to use it during self-healing:

  1. Select the element that is not working during execution.

  2. Choose both options:

  • Adjust the broken element’s attributes

  • Preserve the properties of reprioritized items for subsequent execution

What Will Happen Next

  • Avo Assure automatically maps Custom 1 to the previously entered property.

  • If an element cannot be located using the default properties, the tool falls back on the custom property for identification.

  • This ensures consistent identification of the same element across test executions.

  • The test case proceeds without interruption, eliminating the need for manual intervention.

Example

  1. Before Self-Healing: The element fails because its ID Attribute or Classname Attribute has changed.

  1. After Setting data-val-required as the Custom Property in Avo Client: Avo Assure uses the data-val-requireds property and finds the correct element. The test case runs without any issue.

Last updated

Was this helpful?