Set a Trusted IP for Salesforce Test Automation
A common issue when trying to create an run Test Automation with Salesforce is not being able to bypass the Security Code check as each time your automation software attempts to log into a Salesforce org you will encounter this issue.
In order to resolve this issue and enable your automation software to be able to execute its tests as expected you will have to perform the following steps:
- Obtain the IP address of your computer. This can be done several ways dependent on your hardware and operating system. One of the easiest ways is to open a new web browser session and Google search “ip address”. The first result displayed will be your external, or public, IP address.
- Log in to the Salesforce Org that you wish to run your Automated Testing in.
- From Setup, enter Network Access in the Quick Find box, then select Network Access.
- Click New.
- Enter a valid IP address (obtained in Step 1) in the Start IP Address field and the same IP address in the End IP Address field
- Enter a description for the range. For example, if you as this will be used for your Automated Testing, then maybe ‘Automation Test Execution’ could be used.
- Click Save.
Now, next time you run your Test Automation there should be no failed runs due to not being able to access the Salesforce Org.
A Certified Salesforce Administrator, Salesforce Einstein Analytics and Discovery Consultant, ISTQB® Certified Tester Advanced Level, Jitterbit Foundations and Jitterbit Core Certified QA Test Automation Manager who is also an experienced creative all-rounder with enthusiasm and the proven ability to understand client needs and deliver satisfying solutions. A thirst for new technology and modern Quality Assurance and Testing techniques keeps me aspiring to learn at every opportunity. My current role is at Publicis Sapient who are an official Salesforce Platinum Partner. Publicis Sapient provide Salesforce expertise and strategic thinking that enables organisations to transform their business to Cloud-based technology.