Skip to content

Commit

Permalink
Updated Error Handling document
Browse files Browse the repository at this point in the history
Updated Error Handling document with Handling Deprecated Elements section.
  • Loading branch information
bharathk08 committed Aug 27, 2024
1 parent 9b24062 commit fd0d61e
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions src/pages/docs/salesforce-testing/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ contextual_links:
- type: link
name: "Steps to Resolve Errors in Test Case"
url: "#steps-to-resolve-errors-in-test-case"
- type: link
name: "Handling Deprecated Elements"
url: "#handling-deprecated-elements"
---

---
Expand All @@ -30,6 +33,8 @@ On metadata refresh, Testsigma identifies potential causes of test case failures
> ## **Prerequisites**
>
> - A Salesforce connected app. For more information, refer to [creating a connected app](https://testsigma.com/docs/salesforce-testing/connected-app/).
>
> - Salesforce metadata connected to Testsigma. For more information, refer to [creating metadata connections](https://testsigma.com/docs/salesforce-testing/metadata-connections/).
>
> - You should know how to [refresh metadata](https://testsigma.com/docs/salesforce-testing/metadata-connections/#steps-to-refresh-metadata-connection).
Expand Down Expand Up @@ -75,14 +80,32 @@ On metadata refresh, Testsigma identifies potential causes of test case failures
![Element Details](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehelemerroverl.png)

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

![Disable/Review](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehvoeelement.png)


[[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](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Errorhandling.gif)

---

## **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.

![Disable/Review](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/ehvoeelement.png)

This ensures that tests continue to execute without issues.

*For more information on creating elements for Salesforce apps, see [Creating Elements While Creating Test Steps](https://testsigma.com/docs/salesforce-testing/element-repos/#creating-elements-while-creating-test-steps).*

---

0 comments on commit fd0d61e

Please sign in to comment.