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, 2020 in Jenkins by Rashmi
• 130 points
1,913 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, 2020 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,020 points
4,074 views
0 votes
1 answer

How to run a script as root in Jenkins?

Hi@akhtar, You need to run the script with ...READ MORE

answered Oct 26, 2020 in Jenkins by MD
• 95,460 points
8,219 views
0 votes
2 answers
+5 votes
3 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
• 10,620 points
119,653 views
+2 votes
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
• 10,620 points
3,575 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP