How to run selenium test kit in Jenkins remotely?

+1 vote
I have selenium test suit placed in remote desktop with eclipse configured and Jenkins is hosted on AWS. I want to run a test suit through Jenkins.
Apr 1 in Jenkins by Rashmi
• 130 points
48 views

1 answer to this question.

0 votes

Selenium tests can be run on remote slave machines via the master slave and selenium suite plugin installation. The following 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.

Step 2 − Click on configure for the slave machine on which you want to run the test suit.

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

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 the Slave instance and click on.

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

Step 6 − You will be presented with a Security Warning. Click on the Acceptance checkbox and click on run.

You will now see a Jenkins Slave window opened and now connected.

Step 7 − Configuring your tests to run on the slave. Here, you have to ensure that the job being created is meant specifically to only run the selenium tests.

In the job configuration, ensure the option ‘Restrict where this project can be run’ is selected and in the Label expression put the name of the slave node.

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

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

answered Apr 1 by Liana

Related Questions In Jenkins

0 votes
1 answer

How to run selenium script with TestNG on Jenkins?

You can build this project in Jenkins ...READ MORE

answered Jun 19, 2019 in Jenkins by Neel
• 3,010 points
746 views
0 votes
2 answers
+2 votes
2 answers

How to trigger a Jenkins pipeline A in another Jenkins pipeline B?

You can run the following code, its ...READ MORE

answered Jul 5, 2018 in Jenkins by Sophie may
• 9,940 points
19,419 views
+1 vote
4 answers
0 votes
1 answer

I’m facing a login error when I try to run Jenkins on Docker. How do I solve this?

You have to open the /var/log/jenkins/jenkins.log file to ...READ MORE

answered Jul 24, 2018 in Jenkins by Sophie may
• 9,940 points
711 views
0 votes
1 answer

How to construct Maven installation in Jenkins for each Slave node?

I’m assuming that Java and Maven are ...READ MORE

answered Aug 1, 2018 in Jenkins by Sophie may
• 9,940 points
1,465 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
498 views
0 votes
1 answer