- salesforce testing
Intro: Testsigma for Salesforce Testing
Creating a Connected App
Creating a Salesforce Project
Test Salesforce Connection
Creating Metadata Connections
Adding User Connections
Build Test Cases: Manual+Live
Salesforce Element Repositories
Intro: Testsigma Special NLPs
SOQL as Test Step
Query Builder for Salesforce Testing
Automating Listview Table NLPs
Error Handling On Metadata Refresh
Error Handling Post Metadata Refresh
On metadata refresh, Testsigma identifies potential causes of test case failures due to Salesforce organization structure updates, such as removing a field. This article discusses steps to identify errors due to metadata refresh on test cases, step groups, and the element repository.
Prerequisites
Before you begin, ensure that you have referred to:
Steps to Check Errors on Test Case List
-
From the Dashboard, navigate to Create Tests > Test Cases.

-
You can find the impacted test cases highlighted on the Test Cases page with a Warning.

-
Click on View All to filter only the deprecated test cases.

-
Alternatively, select the highlighted filter to display test cases that contain errors.

Steps to Resolve Errors in Test Case
-
Select the deprecated test case to view the errors.

-
Hover over to the highlighted step to check the error.

-
Hover over the element and click on View/Edit element.

-
This will open the Element details overlay where you can find the details of deprecated elements.

- To resolve the error, replace them with new elements or disable/remove the test step as needed.
This feature is also available at the Step Group level.
Handling Deprecated Elements
When you select Metadata Refresh, Testsigma downloads the metadata from your organization and identifies any fields that are no longer available due to customization.
To resolve this, you need to:
-
Disable the step associated with the deprecated element.

-
Create a new element in the same context and replace the deprecated one by using the Change Element option.

This ensures that tests continue to execute without issues.
For more information on creating elements for Salesforce apps, refer to the documentation on creating elements while creating test steps.