How can you run Selenium test cases on Jenkins

0 votes
I've recorded some simple Selenium test cases using Selenium IDE but now I want to run those cases on Jenkins. Which plugin do N have to use along Jenkins in order to do that? And how to run the tests step by step?
Jun 28, 2019 in Selenium by Surya
• 970 points
2,140 views

1 answer to this question.

0 votes

You can use recorded Selenium IDE script and selenium-server.jar file to run it on Jenkins Here are the steps:

  1. Go to Seleniumhq page and download the Server file for Selenium Eg: selenium-server-standalone-3.41.0.jar
  2. Repair HTML test suite and use the Selenium IDE to record and then save it as an HTML test case and test suite then add them in the same folder eg: TestCase.html, TestSuite.html
  3. In Jenkins
    • Plugin Seleniumhq
    • Configure Selenium runner file: Manage Jenkins > Configure System > Selenium Remote Control: htmlSuite Runner = path to file that you've downloaded in step 1.
    • Configure job to run In Build field click " Add build step" then select "seleniumhq htmlSuite Run" the browser: Firefox or explorer and startURL: "www.edureka.co" or suiteFile: Input absolute path to TestSuite.html file saved in step 2 and the resultFile: Input absolute path to a file whose results will be saved. 

Hope this helps:)

answered Jun 28, 2019 by Vaishnavi
• 1,180 points

Related Questions In Selenium

0 votes
2 answers

Can anyone help me that how to run Selenium WebDriver test cases in Chrome?

You first need to download chrome driver ...READ MORE

answered Aug 26, 2019 in Selenium by Abha
• 28,000 points
894 views
0 votes
1 answer
0 votes
1 answer

How to run Selenium test cases in Headless Chrome browser?

@Afreen to run selenium test cases in ...READ MORE

answered May 17, 2019 in Selenium by Kushal
2,563 views
0 votes
1 answer
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,520 points
4,606 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,010 points
5,464 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
3,293 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2, 2020 in Selenium by Sri
• 3,010 points
3,892 views
+1 vote
1 answer

How can Selenium select each div separately that have the same class

Hi Surya, you have already got the ...READ MORE

answered Mar 13, 2019 in Selenium by Vaishnavi
• 1,180 points
15,423 views
0 votes
1 answer

How to get the WebDriver version during test run?

Hi friend, It is possible by reading the VERSION.txt ...READ MORE

answered May 28, 2019 in Selenium by Vaishnavi
• 1,180 points
92 views