AI Enabled Auto-Healing


Auto Healing helps prevent object flakiness and ensures your tests are reliable even when there are minor changes to the elements, and the locators fail to identify the element based on their previous attributes. This article discusses Auto Healing feature in Testsigma.


Prerequisites


Steps to Enable Auto Healing Feature

  1. Navigate to Settings > Preferences.

Settings

  1. On the Preferences page, enable the toggle on Auto Healing widget.

Preferences

Your tests are ready to execute without manual intervention whenever there are changes in the build. The Auto Healing feature will take care of correcting the elements.

Here’s the GIF demonstrating how to enable the Auto Healing feature.

Auto Healing Feature

Use Case for Auto Healing

Let’s say we are testing a login page for https://simply-travel.testsigma.com/.

Here are steps to produce:

  1. Navigate to https://simply-travel.testsigma.com/.
  2. Click on Login/SignUp.
  3. Click on Login.
  4. Enter bsk08@gmail.com in the email field.
  5. Click on Continue.
  6. Enter 98764321 in the password field.
  7. Click on Submit.

Consider that the XPATH for Login button on the step 3 changed from //BUTTON[@id='login'] to //BUTTON[@id='login-popUp'].

On executing the test case with Auto Healing feature enabled, the test lab will successfully locate the element with the new XPATH.

Locate Element


Auto Healing Insights

On successful completion of test execution, you can check the auto healing insights from the results page. Follow the steps below:

  1. Click on the test step in which the element is auto healed.

Healed Step

  1. Go to the step result and click on Auto Heal. This will open the Auto Healing Details overlay.

Auto Heal

  1. You can check the Auto Healing Insights here.

Insights

Here’s the GIF demonstrating how to check the Auto Healing insights.

Auto Healing Insights