How to run selenium 2.0 script in jenkins
2014-08-16 08:02
274 查看
http://stackoverflow.com/questions/17191406/how-to-run-selenium-2-0-script-in-jenkins
I have selenium webdriver script, and i want to run the script in jenkins. how to configure in jenkins. what steps i need to fallow?
i am new to jenkins, can any one tell me the step by step procedure to fallow.
Response:
If you're running Jenkins on a unix machine, create a new job: Click on New Job, Type a name and click on Build a free-style software project
Then add a 'build' step called 'Execute shell'. (For windows you can use Windows Batch command).
Using that you can run the selenium standalone server jar to execute the your selenium script.
For example: java -version && java -jar /Applications/SeleniumRC/selenium-server-standalone-2.12.0.jar -trustAllSSLCertificates -htmlSuite "*googlechrome" "https://user:password@www.example.com/"
"examplesuite.html" "result_file.html"
Other option would be to go to Configure Jenkins -> Configure Plugins and install Hudson Seleniumhq plugin and use the build step provided by them when configuring the jenkins job.
You might also want to create a Post-build Action to show reports. If you install Selenium HTML report plugin from the aforementioned Manage Plugins page, you can then add 'Publish selenium report' Post-build step.
I have selenium webdriver script, and i want to run the script in jenkins. how to configure in jenkins. what steps i need to fallow?
i am new to jenkins, can any one tell me the step by step procedure to fallow.
Response:
If you're running Jenkins on a unix machine, create a new job: Click on New Job, Type a name and click on Build a free-style software project
Then add a 'build' step called 'Execute shell'. (For windows you can use Windows Batch command).
Using that you can run the selenium standalone server jar to execute the your selenium script.
For example: java -version && java -jar /Applications/SeleniumRC/selenium-server-standalone-2.12.0.jar -trustAllSSLCertificates -htmlSuite "*googlechrome" "https://user:password@www.example.com/"
"examplesuite.html" "result_file.html"
Other option would be to go to Configure Jenkins -> Configure Plugins and install Hudson Seleniumhq plugin and use the build step provided by them when configuring the jenkins job.
You might also want to create a Post-build Action to show reports. If you install Selenium HTML report plugin from the aforementioned Manage Plugins page, you can then add 'Publish selenium report' Post-build step.
相关文章推荐
- How to run a script in ubuntu?
- How to create a zip file in NetSuite SuiteScript 2.0 如何在现有SuiteScript中创建和下载ZIP压缩文档
- How to Configure Selenium Webdriver in Eclipse and execute some simple test script.
- how to run 2 or more commands in a shell script [for Linux & Windows]
- JDev: How to make JDev run ant script in debug mode permanently
- How to compile and run a simple java file in jenkins on Windows
- 《How to run one script by command line in 3dsMax》
- How to make JDev run ant script in debug mode permanently
- How To Call Run() Method of the Microsoft Script Control in C++
- How to run a repair in Notification Server 7
- How to Pop Open an image window that resizes to fit the image in ASP.net 1.x and 2.0 Beta 1
- How to check the MS SQL Server job run status by using Script
- How To Create a Dynamic Web 2.0 Brochure Site in an Hour
- How to programmatically assign a SkinID to a control while using a master page in ASP.net 2.0
- FFmpeg Understanding(4. How to compile and run testing files utilizing FFMPEG in VC?)
- How to execute shell script in Java?
- How to use an ActiveX script task to create a loop in DTS
- How to programmatically assign a SkinID to a control while using a master page in ASP.net 2.0
- How to make Apache run ASP.NET / ASP.NET 2.0(转载)
- SharePoint 2007 - /_layouts and how to create pages that run in site context