Skip to content

Latest commit

 

History

History
116 lines (69 loc) · 4.68 KB

File metadata and controls

116 lines (69 loc) · 4.68 KB
title Error Handling Post Metadata Refresh
page_title Error Handling Post Metadata Refresh
metadesc On refreshing metadata, Testsigma identifies potential errors in test cases, step groups and elements linked to updates in the Salesforce organization structure
noindex false
order 28.94
page_id Error Handling Post Metadata Refresh
warning false
contextual_links
type name
section
Contents
type name url
link
Prerequisites
#prerequisites
type name url
link
Steps to Check Errors on Test Case List
#steps-to-check-errors-on-test-case-list
type name url
link
Steps to Resolve Errors in Test Case
#steps-to-resolve-errors-in-test-case
type name url
link
Handling Deprecated Elements
#handling-deprecated-elements

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 you have a Salesforce Connected App, Salesforce Metadata connected to Testsigma, and know how to Refresh Metadata.


Steps to Check Errors on Test Case List

  1. From the Dashboard, navigate to Create Tests > Test Cases.

    Test Cases

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

    Warning

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

    View All

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

    Filter


Steps to Resolve Errors in Test Case

  1. Select the deprecated test case to view the errors.

    Erorrs

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

    Highligted

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

    View/Edit Element

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

    Element Details

  5. To resolve the error, replace them with new elements or disable/remove the test step as needed.

[[info | NOTE:]] | This feature is also available at the Step Group level.

Here's a quick GIF demonstrating how to check errors due to metadata refresh in Testsigma.

View Errors


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.

    Disable Element

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

    Change Elemennt

This ensures that tests continue to execute without issues.


Here's a quick GIF demonstrating how to resolve this error.

Resolving deprecated element error

For more information on creating elements for Salesforce apps, see Creating Elements While Creating Test Steps.