Troubleshooting

Unable to connect to your Salesforce environment

To connect to your Salesforce environment, ensure that the Salesforce environment meets the following requirements:

  • Support API access. This requires Enterprise, Performance, Unlimited, and Developer Edition orgs. Professional Edition orgs can add API access as an add-on. Salesforce Essentials Edition does not support API access.
  • REST API is enabled for the selected user to connect to the Salesforce environment.
  • Whitelist the following IP addresses in Security > Network Access.
    • 52.6.150.234
    • 34.204.155.122
    • 3.210.61.129
    • 34.225.130.203
    • 3.93.87.107
    • 52.73.252.191

Test execution fails in the first test step.

Test execution may fail in the first test step when there is a conflict with other Chrome extensions. We recommend you to isolate the test execution to have only the Tricentis Testim extension enabled. To do so, follow these steps:

  1. Configure the Tricentis Testim extension to run in Incognito mode.

  2. Run the test in Incognito mode.

Cannot find a record in Salesforce (by using the Find step) that was created in a previous step using the Create step

When creating a record in Salesforce using the Create step, there may be a time delay until the record is actually created in Salesforce and can be found using the Find step. The solution is to add a step that includes a Custom condition that repeatedly searches (in a loop) for a Record until it is found or until it has retried for a set number of times and only then it will proceed to the next step.

The step that is added with the custom condition can be found as a Shared Step in the demo project here - https://tta-crm.tricentis.com/#/project/WPZPXX3rnCpFZOSFPzYi/branch/master/test/FXeyB01zXmzQmAfs

All you have to do is to add this shared step to your test.

In the demo test the Create step is followed by the shared Find step.

The Find step includes a Custom condition to repeat the step until the record is found or up to four times:

This is the custom condition code (click the Edit link next to Custom to view):

The custom code is set to repeat this Shared Group until the Record is found or it has tried searching for the Record four times.

The Find Account shared steps includes two inner steps (double click the step to access):

  • Find step - a find step to find the record:

  • Sleep step - a sleep step to wait for the next iteration.

Automation using the Salesforce Recorder is not selecting a value from a Salesforce pick-list

Salesforce pick-lists are challenging to automate. When recording a selection you need to select the text in the pick-list, avoiding any blank space.

Fields are not present in a Salesforce Step

Salesforce Steps use the meta-data available to the account that was used when connecting your Salesforce environment. If the account you used has limited access, only a sub-set of all fields will be available in the Salesforce Steps.

Test is failing to find a field but it is in the Salesforce Step

Salesforce Steps use the meta-data available to the account used when connecting your Salesforce environment. The account you are executing the test with may not have permission to access this field, or the pagelayout for this account maybe configured without this field present. In both instances, the expected result is the field not being found.