Salesforce steps

Salesforce steps can be manually added to the test. These steps cover common actions in Salesforce that are pre-populated with the records and fields from your connected Salesforce environments. The steps consist of common operations, record operations, and API operations.

Common operations

Salesforce common operations include the following Salesforce operations:

  • Log in - Logs in to your Salesforce environment. Select a persona to log in or create a new persona.
  • Log In As - Logs in to test with different users within a single testcase.
  • Launch App - Selects the available app to launch.
  • Log out - Logs out of Salesforce.
  • Find and go to record - Text search for a record. Uses the global search to return the first matching record.
  • Wait for page load - waits for Salesforce to completely load the page before proceeding to the next step.
  • Close console tabs - Closes the web browser tab.
  • Document validation - validates and/or extracts the contents of the PDF document using a variety of conditions that can be configured without coding.

Record operations

Salesforce record operations include the following Salesforce operations:

  • Create - Creates a new record with the values in the fields.
  • Edit - Edits the current record with the values in the fields
  • Validate - Validates that the current record matches the fields. The test step passes only if all the fields match exactly.
  • Quick actions - Runs an available quick action on the current record. Quick actions include options such as create a new task, log a call, new event, and email. The actions will be run using the values specified in the fields.
  • Related list actions - For the current record, runs actions on the record types in the related lists. You can run actions on the current record, such as:
    • Create - Creates a new record of the type in the related list.
    • Verify - Validate the values or the count of records of the type in the related list. Filters can be applied to the fields of the Record(s) returned.
    • View - View a record of the type in the related list. Filters can be applied to the fields of the record returned.
  • Delete - Deletes the current record.

For a Salesforce step that performs an action on a record, each field has an action and value pair.

Each field consists of actions, such as:

  • Input - Input the value into the field.
  • Verify - Verify that the value in the field matches that in the record.
  • Store - Stores the value in the record into the value, which will be a Javascript variable.
  • Ignore - Performs no action on the field.

Each value can be set into the following mode:

  • T. Text mode. The value is treated as a literal string.
  • {JS}. JavaScript mode. The value is evaluated as a JavaScipt expression. The field will evaluate JavaSrcipt variables and functions.

API Operations

The following steps interact with Salesforce using API (not through the UI):

  • Execute Apex - allows you to extend E2E tests beyond the UI, by running APEX code as a step inside the test.
  • Permission validation - allows you to capture, set, and continuously validate user permissions on Salesforce objects and their fields.

CPQ Operations

Configure Price Quote Software is sales tool that allows sales reps to create quotes with customized product and pricing configurations based on the buyer's needs, and then sync all interactions with a deal's documents, within the Salesforce CRM. The CPQ Operations category includes the following steps:

  • Convert lead to opportunity -
  • Quote line editor action - The Quote Line Editor Action step can be used to test the product pricing calculations in the Quote Line Editor of the CPQ application for specific line items on a quote and/or for the entire quote.