How To Run Cloud Selenium Tests On Your Laptop In A Minute

cerberus-run-cloud-selenium-test-laptop-in-a-minute

The majority of test automation platforms are going to the Cloud to improve the performance, availability and scalability of the solutions. While this tendency increases the quality of services, it creates new challenges.

You want to quickly execute your automated tests during their implementation. Short feedback loops allow you to quickly iterate on the right design and right coding. But once the test automation platform is in the Cloud, network connectivity is not easy.

In this article, we will share how you can configure Cerberus Testing, a remote Cloud test automation solution to execute tests on a Selenium Hub on your laptop:

  • Map out the necessary network information
  • Configure the required network routing
  • Quickly verify and test your configuration
  • Configure a robot for future execution

Let’s start by identifying the necessary configuration.

Map out the necessary network information

Understanding the main network flows is key for our configuration. As our cloud platform will execute the test through the internet, we first need to identify the public IP of our outbound traffic. Then we can identify our local IP within our local network.

You can identify your public IP using a variety of online services without specific technical skills. In our example, you can browse to the website https://www.showmyip.com/ to retrieve your public IP.

Figure 1: Start by retrieving your public IP on the internet

The next step is to identify our private IP within our network. The easiest way is to run local commands on your laptop, as your IP is usually dynamically set within your network. The commands are available on Windows (ipconfig), Linux (ifconfig) and macOS in a similar way. 

Figure 2: Run the operating system command to know your local network IP

In our example, the private IP is 192.168.9.103. We will use that information to configure our local network.

Configure the required network routing

From that moment you need to enable the link between your router and your laptop for the specific test automation traffic. By default, this type of traffic will not work; hence the need to force this configuration.

You can achieve that configuration yourself in your network box if you are at home. If you are in a corporate environment, you most likely need to ask for a specific configuration from your network team. In both cases, you have to configure port forwarding using the previously mapped network IPs.

Figure 3: Configuration of a port forwarding in a box

This configuration will forward all traffic from any IP that points to 14444 port to your local private IP 192.168.9.103 on port 14445. From increased security, you can allow this rule only from the Cloud test automation IP range.

We are now ready to test our configuration.

Quickly verify and test your configuration

We will check our setup in Cerberus Testing configuring the Selenium Hub directly in the test execution page. We can quickly test before performing a more robust and reusable configuration.

The first step is to launch your Selenium Hub on port 14445 so that the traffic routed from the internet to your laptop arrives at the correct destination. You can launch the selenium hub forcing that port easily with the parameter “-p 14445” from the command-line or configuration file.

Figure 4: The Cerberus Testing robot configuration on the test execution page.

The above screenshot shows the configuration you need to set on the “Robot Settings” of the Cerberus Testing execution page. You can verify your configuration by running the tests that should be running on your laptop.

Configure a robot for future execution

Now that our configuration has been confirmed, we can define a Cerberus Testing robot to keep it usable in the future. You can configure Robot by going to the “Run” and “Robots” parameters of the menu.

The good practice is to define explicitly the type of browsers supported, with all the relevant capabilities. If you are running various nodes on your Selenium Hub, you can also define the load-balancing rule.

Figure 5: The Robot configuration inside Cerberus Testing.

You can now perform fast test automation feedback loops from a Cloud test automation platform using a local hub. This is one way to iterate on your test automation.

Cerberus Testing natively provides robots and browsers in the SaaS platform to ease your journey. You can by default access various browsers and connect to other providers like BrowserStack, Kobiton, among others.

You can use Cerberus Testing for Free in the Cloud to accelerate your test automation journey.

Leave a comment

Your email address will not be published. Required fields are marked *

Cerberus-Testing Terms Of Service


Website Terms and Conditions of Use

1. Terms

By accessing this Website, accessible from http://vgeouyk.cluster030.hosting.ovh.net, you are agreeing to be bound by these Website Terms and Conditions of Use and agree that you are responsible for the agreement with any applicable local laws. If you disagree with any of these terms, you are prohibited from accessing this site. The materials contained in this Website are protected by copyright and trade mark law. These Terms of Service has been created with the help of the Terms of Service Generator and the Privacy Policy Template.

2. Use License

Permission is granted to temporarily download one copy of the materials on Cerberus Testing's Website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not:

  • modify or copy the materials;
  • use the materials for any commercial purpose or for any public display;
  • attempt to reverse engineer any software contained on Cerberus Testing's Website;
  • remove any copyright or other proprietary notations from the materials; or
  • transferring the materials to another person or "mirror" the materials on any other server.

This will let Cerberus Testing to terminate upon violations of any of these restrictions. Upon termination, your viewing right will also be terminated and you should destroy any downloaded materials in your possession whether it is printed or electronic format.

3. Disclaimer

All the materials on Cerberus Testing’s Website are provided "as is". Cerberus Testing makes no warranties, may it be expressed or implied, therefore negates all other warranties. Furthermore, Cerberus Testing does not make any representations concerning the accuracy or reliability of the use of the materials on its Website or otherwise relating to such materials or any sites linked to this Website.

4. Limitations

Cerberus Testing or its suppliers will not be hold accountable for any damages that will arise with the use or inability to use the materials on Cerberus Testing’s Website, even if Cerberus Testing or an authorize representative of this Website has been notified, orally or written, of the possibility of such damage. Some jurisdiction does not allow limitations on implied warranties or limitations of liability for incidental damages, these limitations may not apply to you.

5. Revisions and Errata

The materials appearing on Cerberus Testing’s Website may include technical, typographical, or photographic errors. Cerberus Testing will not promise that any of the materials in this Website are accurate, complete, or current. Cerberus Testing may change the materials contained on its Website at any time without notice. Cerberus Testing does not make any commitment to update the materials.

6. Links

Cerberus Testing has not reviewed all of the sites linked to its Website and is not responsible for the contents of any such linked site. The presence of any link does not imply endorsement by Cerberus Testing of the site. The use of any linked website is at the user’s own risk.

7. Site Terms of Use Modifications

Cerberus Testing may revise these Terms of Use for its Website at any time without prior notice. By using this Website, you are agreeing to be bound by the current version of these Terms and Conditions of Use.

8. Your Privacy

Please read our Privacy Policy.

9. Governing Law

Any claim related to Cerberus Testing's Website shall be governed by the laws of fr without regards to its conflict of law provisions.

Thank you for your interest in cerberus,

In order to proceed with your SaaS we need some in order to confirm your instances accesses.

Please provide accurate contacts to secure the process.

You can cancel any time the subscription, please read Terms of Use.