AI-Enabled Auto-Healing for Salesforce Applications


Testsigma’s AI-Enabled auto-healing automatically detects and fixes broken element locators caused by UI changes during Salesforce test execution. This article discusses how auto-healing identifies and updates element locators during Salesforce test execution.


Prerequisites

Before you begin, ensure that you have referred to:

  1. Documentation on enabling the auto-healing feature.
  2. Documentation on managing test cases.
  3. Documentation on creating elements.
  4. Documentation on Testsigma for Salesforce Testing.

Use Case for Auto-Healing

Let’s say we are testing lead creation in the Salesforce Sales application using a Salesforce connection in Testsigma.

Here are the steps to reproduce:

  • Login to the Sales application using the Salesforce connection.
  • Click on the Leads List button.
  • Click on the New Lead dropdown.
  • Enter John in the Lead First Name field.
  • Enter Maxwell in the Lead Last Name field.
  • Enter Testsigma in the Lead Company field.
  • Enter john.maxwell@test.com in the Lead Email field.
  • Click on the Save button.

Consider that the XPath for the Leads List button on Step 2 changed from //div[@role='list']//one-app-nav-bar-item-root[5] to //span[text()[normalize-space() = 'Leads List']]/...

When executing the test case with the Auto-Healing feature enabled, the test lab will successfully locate the element using the new XPath.

Auto-heal Salesforce


Auto-Healing Insights

Once the test execution is complete, please refer to the documentation on Auto-Healing Insights to view the auto-healing results and learn how to update the element locator.