Intro: Testsigma Special NLPs


With Testsigma's special NLPs, you can scale and enhance Salesforce Testing. These NLPs are precisely developed to address challenges in Salesforce testing by leveraging Salesforce's synced metadata, which helps reduce test authoring time by 50%. This article discusses the capabilities of these special NLPs.


Prerequisites


List of Special NLPs

NLP Description
Login to Salesforce Application application using Salesforce Connection connection This NLP logs into the Salesforce instance configured in Testsigma with the selected application and user connection.

User Inputs in NLP:
1. Salesforce Application
2. Salesforce Connection
Login to Salesforce using Salesforce Connection This NLP logs into the Salesforce instance configured in Testsigma with a chosen user connection.

User Inputs in NLP:
Salesforce Application

Note: This is the default NLP for any test case.
Switch to Salesforce Application application This NLP switches to the application chosen from the list.

User Inputs in NLP:
Salesforce Application
Navigate to Salesforce tab This NLP navigates to the chosen tab within the same Salesforce application.

User Inputs in NLP:
Salesforce Tab
Open the edit Salesforce Object form where record id is Record ID This NLP opens the edit form in Salesforce for a specific record on the selected tab.

User Inputs in NLP:
1. User Record ID
2. Salesforce Object
Open the create Salesforce Object record form This NLP opens the Create Record form in Salesforce on the selected tab.

User Inputs in NLP:
Salesforce Object
Open the Salesforce Object details page where record id is Record ID This NLP Opens the View in Salesforce for a specific record on the selected tab.

User Inputs in NLP:
1. User Record ID
2. Salesforce Object
Create record in Salesforce Object Form using Salesforce Connection connection and store the record id in variable test data This NLP creates a record for a specific Salesforce object using the create record API. This process stores the RECORD_ID in a variable.

User Inputs in NLP:
1. Salesforce Connection
2. Salesforce Object Form
3. Variable to store RECORD_ID
Update record in Salesforce object form where record id is test data using Salesforce connection connection This NLP updates a record for a specific Salesforce object using the update record API.

User Inputs in NLP:
1. Salesforce Connection
2. Salesforce Object Form
3. RECORD_ID
Select multiple options using value test data in the element multipicklist This NLP selects values from a multipicklist. This NLP can also be recorded.

User Inputs in NLP:
1. Test Data
2. Choose Element

Note: All the values should match the criteria for the NLP to work effectively.
Remove multiple options using value test data in the element multipicklist This NLP removes values from a multipicklist. This NLP can also be recorded.

User Inputs in NLP:
1. Test Data
2. Choose Element

Note: All the values should match the criteria for the NLP to work effectively.
Undo field in element This NLP undoes the update on the selected field. This NLP can also be recorded.

User Inputs in NLP:
Choose Element
Enter test data in the element richInput text box This NLP enters the provided test data into the richInput textbox element. This NLP can also be recorded.

User Inputs in NLP:
1. Test Data
2. Element
Search test data on element lookup This NLP searches for the specified test data within the element lookup. This NLP can also be recorded.

User Inputs in NLP:
1. Test Data
2. Element
Select option test data from element picklist This NLP selects the specified option from the picklist element using test data. This NLP can also be recorded.

User Inputs in NLP:
1. Test Data
2. Element
Clear and enter test data in the element field This NLP will clear any existing data in the element field and then enter the test data into that field.

User Inputs in NLP:
1. Test Data
2. Element
Delete record in Salesforce Object where record id is test data using Salesforce Connection connection This NLP deletes a record using RECORD_ID for a specific Salesforce object using the delete record API.

User Inputs in NLP:
1. RECORD_ID
2. User Connection
3. Salesforce Object

Using API NLP Test Steps

Let's say you want to automate the creation of a Salesforce Lead record. To create a lead record, navigate to the Leads tab, click New, and fill out the form with details such as the lead's name, company, contact information, and descriptions. After entering the necessary information, save the record. The lead will be available for future actions, such as follow-ups or conversion into an account, contact, or opportunity.

Guess what? With Testsigma, you can perform all these actions in a single API step using the following NLP:

NLP 1:

"Create record in Salesforce Object Form using Salesforce Connection connection and store the record id in variable test data"

This NLP creates a new record for the selected Salesforce object.

See the GIF below demonstrating how to use this NLP.

Create Lead


NLP 2:

"Open the edit Salesforce Object form where record id is Record ID"

This NLP opens edit form of the selected Salesforce object using Record ID.

See the GIF below demonstrating how to use this NLP.

Edit Lead


NLP 3:

"Delete record in Salesforce Object where record id is test data using Salesforce Connection connection"

This NLP deletes a record for the selected Salesforce object using Record ID.

See the GIF below demonstrating how to use this NLP.

Delete Lead


NLP 4:

"Login to Salesforce using Salesforce Connection connection"

This NLP enables users to log in to Salesforce with a selected user connection.

See the GIF below demonstrating how to use this NLP.

Login NLP


NLP 5:

"Login to Salesforce Application application using Salesforce Connection connection"

This NLP allows users to log in directly to a specific Salesforce Application using a selected User Connection.

For example, select Sales from the dropdown to log in to Sales CRM.

See the GIF below demonstrating how to use this NLP.

Login NLP 2


NLP 6:

"Switch to Salesforce Application application"

This NLP lets users switch to a specific Salesforce Application. Choose the application from the available options in the dropdown.

For example, select the HubSpot application from the dropdown to switch from Sales to HubSpot.

See the GIF below demonstrating how to use this NLP.

Switch NLP


NLP 7:

"Navigate to Salesforce tab"

This NLP navigates users to any standard tabs on the Salesforce platform.

See the GIF below demonstrating how to use this NLP.

Navigation NLP


NLP 8:

"Open the Salesforce Object details page where record id is Record ID"

This NLP navigates to the record details page using the Record ID on the selected Salesforce object.

For example, to open the record details page of a specific lead, use this NLP.

See the GIF below demonstrating how to use this NLP.

Object Details


NLP 9:

"Open the create Salesforce Object record form"

This NLP opens the create new record form for the selected Salesforce object.

For example, to create a new lead, use this NLP.

See the GIF below demonstrating how to use this NLP.

New Record


NLP 10:

"Clear and enter test data in the element field"

This NLP clears the data in a specified form field and replaces it with test data.

For example, to replace a URL in the website field of the lead details form, use this NLP.

See the GIF below demonstrating how to use this NLP.

Clear & Enter


NLP 11:

"Undo field in element"

Use this NLP to undo changes in a specified field, restoring the previous data.

For example, to replace a URL with a previous one in the website field of the lead details form, use this NLP.

See the GIF below demonstrating how to use this NLP.

Undo NLP


NLP 12:

"Select multiple options using value test data in the element multipicklist"

Use this NLP to select values in multipicklist into an element.

See the GIF below demonstrating how to use this NLP.

Select Multiple Values


NLP 13:

"Remove multiple options using value test data in the element multipicklist"

Use this NLP to remove multiple options from a multipicklist into an element.

See the GIF below demonstrating how to use this NLP.

Remove Multiple Values


NLP 14:

"Enter test data in the element richInput text box"

Use this NLP to enter data in a RichInput text box.

See the GIF below demonstrating how to use this NLP.

Rich Input


NLP 15:

"Search test data on element lookup"

Use this NLP to select or record in a lookup field.

See the GIF below demonstrating how to use this NLP.

Lookup NLP


NLP 16:

"Select option test data from element picklist"

Use this NLP to select an option from a picklist element.

See the GIF below demonstrating how to use this NLP.

Element Picklist


NLP 17:

"Update record in Salesforce object form where record id is test data using Salesforce connection connection"

This NLP feature updates a Salesforce record with the details you enter in the API step using the specified Record ID.

See the GIF below demonstrating how to use this NLP.

Element Picklist