Healer
Last updated
Last updated
Healer AI functions by intelligently adjusting locators for elements that have changed in your tests, leading to improved test reliability and stability.
This adjustment process becomes particularly advantageous when dealing with dynamic web applications, where the locators of elements might shift due to updates or alterations. Healer AI has the capability to identify these changes and suggest appropriate adjustments by referencing the baseline script that serves as a reference.
Baseline Script: In the context of "Healer AI" the baseline script refers to a test script that has already been executed successfully and has passed all the defined testing scenarios. This baseline script serves as a reference point of correctness and stability against which any subsequent versions of the script are compared.
By leveraging the baseline script as a guide, Healer AI identifies discrepancies between the current state of the application and the expected state defined in the baseline. It then suggests updated locators to accommodate these changes, ensuring your tests remain accurate and effective even as the application evolves.
In essence, Healer AI streamlines the process of maintaining tests in the face of dynamic changes, leading to more reliable and efficient testing outcomes.
Note: Healer is not available for Dry Runs and it works only when there is an existing passed scenario report available for the specific Test Script.
Prerequisites:
Previously created Project
Previously created Test Suite inside the Test Lab / Sprints
Previously executed reports for the particular Test Script
Navigate to the "Run Window" from Test Lab / Sprints.
On the left panel of the Run window, select the "Healer AI" tab.
Toggle the "Run With Healer" option. Once enabled, the right-side panel will indicate "Executing with Healer." Next click on Run Test
On the reports page, go to the "Executions" tab.
Test Scripts executed with the "Healer AI" will be identified with a distinct icon.
Navigate to the final result of the failed "Test Script."
Select the failed "Test Step" and click on the "Healer" icon.
A popup window will open with "Correct values" for the Locator. Under the "Healer Response" section, select the appropriate value.
Mainly three values will be suggested: "ID," "Class," and "XPath."
Choose from the following options based on your requirements:
Go to Test: This option navigates to the specific Test Steps, allowing you to manually modify the Steps.
By following these steps, you can leverage the Healer feature to automatically update locators and improve the reliability of your tests.
Save and Run: This option updates the specific step with the chosen value and executes the Test Script.
Apply Changes to Script: This option updates the Test Step with the selected value for the locator.