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 in Selenium by Surya
• 950 points
32 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 by Vaishnavi
• 1,080 points

Related Questions In Selenium

0 votes
1 answer

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

Download the executable driver from: ChromeDriver Download Before ...READ MORE

answered Mar 29, 2018 in Selenium by nsv999
• 5,050 points
180 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

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,050 points
259 views
0 votes
1 answer
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,130 points
629 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
257 views
+1 vote
1 answer
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 in Selenium by Vaishnavi
• 1,080 points
21 views