Understanding Self Healing
Avo Assure's next-generation Self Heal uses AI-based heuristic matching to capture contextual fingerprints and understand the UI during test execution and intelligently identify elements on the screen. Unlike traditional approaches that depend on locator-based identification captured during script creation, it can seamlessly adapt to many UI changes without requiring updates to the test script.
This advanced self healing capability goes beyond simply switching to alternative element properties or locator strategies. By leveraging the contextual fingerprints of UI elements, it helps recover from UI changes more effectively, reducing test maintenance effort, improving automation stability, and enabling faster release cycles.
Prerequisites (For scripts built before Avo Assure v26.4.2)
Following are the prerequisites to perform self healing:
For existing elements, test cases must consistently pass.
For each element, at least one locator (preferably P1) should accurately identify the correct element.
Scope
Currently, it works only via Execution lists (not in debug) and runs in the background with no UI changes in Avo Assure.
Only Web applications are supported.
Self Healing Recovery Scenarios Inclusions
Following UI changes are handled when self heal is enabled:
Element ID
Name attribute
Class name
CSS selector
in XPath
Relative XPath
Layout
Element relocation within a page
Iframe and nested Iframe elements
Best Practices
If self healing fails to identify an element during execution, re-scrape the element using its appropriate element type, such as Button or Checklist. This helps Avo Assure identify the element correctly.
For actionable elements, such as checkboxes and buttons, scrape the actual element type rather than its parent container or the SPAN/DIV elements within it.
Do not apply self healing to common elements shared across multiple screens. Self healing is not designed to handle shared elements, and applying it to these elements may interfere with the underlying element identification mechanism. This can affect element recognition accuracy and consistency across screens.
Last updated