- 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
Salesforce Element Repositories
In Testsigma, elements from Salesforce are automatically learned after successfully synchronizing metadata. This enables the swift usage of elements in test cases, eliminating the need to create elements manually. This document discusses the repositories of Salesforce elements.
Naming Conventions
Field Names: This will be in the ObjectName_FieldName format.
- Example: If the element name is Account_CreatedDate, Account is the object, and the created date Field is CreatedDate.
Screen Names: Generally, the name displayed on the UI screen is the object name.
- Example: A screen displaying account details should be named Account.
NOTE:
Element names should be unique to avoid conflicts.
Steps to Check Element Repositories
- Navigate to Create Tests > Test Cases, and open any test case or create a test case.

- From the Test Case Details page, add test steps and hover over the element and click on Select Element from the dropdown.

- This will open the Elements overlay, where you can see all the elements.

NOTE:
Since the elements are auto-learned, you can't edit them.
Creating Elements While Creating Test Steps
- Create a test case and click Debug & Record.

- In the Debug & Record overlay, verify that the agent is live, then click Proceed.

- In the Testsigma Debugger & Recorder, click element in the NLP and select Create Element from the dropdown menu.

- Click the UI element, which you want to capture. The recorder automatically captures the element details.

- Verify the element, then click Create.

Verifying Pre-learnt Salesforce Elements
- Click element which has the namig conventions as mentioned in the above section. For more information on naming conventions, refer to the documentation on naming conventions
- Click View/Edit Element from the dropdown menu on the Testsigma Debugger & Recorder.

- A new overlay appears, indicating that the element is a standard Salesforce element and has been pre-learned.
