Skip to content
Testsigma DOCS

Salesforce Testing

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.


  1. 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.
  2. Screen Names: Generally, the name displayed on the UI screen is the object name.
    • Example: A screen displaying account details should be named Account.

  1. Navigate to Create Tests > Test Cases, and open any test case or create a test case. Test Cases

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

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


Creating Elements While Creating Test Steps

Section titled “Creating Elements While Creating Test Steps”
  1. Create a test case and click Copilot. Debug and Record

  2. In the Debug & Record overlay, verify that the Copilot is live, select a connection under Salesforce Metadata connection, and click Launch. Proceed

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

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

  5. Verify the element, then click Create. Create Element


  1. 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

  2. Click View/Edit Element from the dropdown menu on the Testsigma Debugger & Recorder. View/Edit Element

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