Running Selenium tests in Jenkins Running Selenium tests in Jenkins jenkins jenkins

Running Selenium tests in Jenkins


you can use recorded selenium IDE script and selenium-server.jar file to run it from JenkinsHere is steps:

  1. Go to SeleniumHQ page and download Selenium Server file Eg: selenium-server-standalone-2.33.0.jar
  2. Repair html test suite Use Selenium IDE to record then save ashtml test case and test suite then put them in a 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 u have download in step 1
    • Configure Job to run In Build field click " Add build step" then select "seleniumhq htmlSuite Run" browser: *firefox or *iexploer .... startURL: http://www.google.com or ... suiteFile: Input absolutely path to TestSuite.html file saved in step 2 resultFile: Input absolutely path to a file that results will be saved

Hope this help!


I did the same but the following error occurred:Unable to find the HTML runner. This is normally because you have not downloadedor made available the 'selenium-leg-rc' jar on the CLASSPATH. Your test willnot be run.Download the Selenium HTML Runner from http://www.seleniumhq.org/download/ anduse that in place of the selenium-server-standalone.jar for the simplest way ofrunning your HTML suite.