How to run Remote tests using Jenkins

Last updated on May 28 2022
Uma Kulkarni

Table of Contents

How to run Remote tests using Jenkins

Jenkins – Remote Testing

Web tests such as selenium tests can be run on remote slave machines via the master slave and selenium suite plugin installation. The subsequent steps show how to run remote tests using this configuration.

Step 1 − Ensure your master slave configuration is in place. Go to your master Jenkins server. Go to Manage Jenkins → Manage Nodes.

How to run Remote tests using Jenkins
How to run Remote tests using Jenkins

In our node list, the DXBMEM30 label is the slave machine. In this example, both the master and slave machines are windows machines.

How to run Remote tests using Jenkins
How to run Remote tests using Jenkins

Step 2 − Click on configure for the DXBMEM30 slave machine.

How to run Remote tests using Jenkins
How to run Remote tests using Jenkins

Step 3 − Ensure the launch method is put as ‘Launch slave agents via Java Web Start’

How to run Remote tests using Jenkins
How to run Remote tests using Jenkins

Step 4 − Now go to your slave machine and from there, open a browser instance to your Jenkins master instance. Then go to Manage Jenkins → Manage Nodes. Go to DXBMEM30 and click on

How to run Remote tests using Jenkins
How to run Remote tests using Jenkins

Step 5 − Click on the DXBMEM30 instance.

How to run Remote tests using Jenkins
How to run Remote tests using Jenkins

Step 6 − Scroll down and you’ll see the Launch option which is the option to Start ‘Java Web Start’

How to run Remote tests using Jenkins
How to run Remote tests using Jenkins

Step 7 − You’ll be presented with a Security Warning. Click on the Acceptance checkbox and click on run.

How to run Remote tests using Jenkins
How to run Remote tests using Jenkins

You’ll now see a Jenkins Slave window opened and now connected.

How to run Remote tests using Jenkins
How to run Remote tests using Jenkins

Step 8 − Configuring your tests to run on the slave. Here, you’ve to ensure that the job being created is meant specifically to only run the selenium tests.
Within the job configuration, ensure the option ‘Restrict where this project can be run’ is selected and within the Label expression put the name of the slave node.

How to run Remote tests using Jenkins
How to run Remote tests using Jenkins

Step 9 − Ensure the selenium part of your job is configured. You’ve to ensure that the Sample.html file and the selenium-server.jar file is also present on the slave machine.

How to run Remote tests using Jenkins
How to run Remote tests using Jenkins

Once you’ve followed all of the above steps, and click on Build, this project will run the Selenium test on the slave machine as expected.

So, this brings us to the end of blog. This Tecklearn ‘How to run Remote tests using Jenkins’ blog helps you with commonly asked questions if you are looking out for a job in DevOps. If you wish to learn Jenkins and build a career in DevOps domain, then check out our interactive, Continuous Integration with Jenkins Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

Continuous Integration with Jenkins

Continuous Integration with Jenkins Training

About the Course

Tecklearn has specially designed this Continuous Integration with Jenkins Training Course to advance your skills for a successful career in this domain. This course helps you learn server automation, continuous integration, build and configuration tools, Jenkins master-slave architecture, different types of plugins, implementing automated testing and more through hands-on projects and exercises. Upon completion of this online training, you will hold a solid understanding and hands-on experience with Jenkins.

Why Should you take Continuous Integration with Jenkins Training?

• Average salary of Jenkins Professional is $110k (Indeed.com Salary Data)
• Jenkins is an open-source automation server which enables developers around the world to reliably build, test, and deploy their software.

What you will Learn in this Course?

Introduction to DevOps

• What is Software Development
• Software Development Life Cycle
• Why DevOps?
• What is DevOps?
• DevOps Lifecycle
• DevOps Tools
• Benefits of DevOps
• How DevOps is related to Agile Delivery
• DevOps Implementation

Continuous Integration with Jenkins

• Introduction to Continuous Integration and Jenkins
• Jenkins Management
• Jenkins Master Slave Architecture
• Tools Required for CI
• Understanding CI/CD Pipelines
• Creating an end-to-end automated CI/CD Pipeline
• Jenkins Versions

 

 

0 responses on "How to run Remote tests using Jenkins"

Leave a Message

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