I am using Jenkins and Ant to execute my Selenium tests. I would like to make a job that would do the following:
- starts Selenium server
- executes tests and
- kills Selenium server after all tests are run.
I am able to start the Selenium server manually with the following command:
java -jar selenium-2.16.1\selenium-server-standalone-2.25.jar
But I cannot find a Jenkins plugin that would do the start/stop for me. All I can find are some Selenium reporting plugins.
Not sure if there is a plugin, but you can just run the launch and kill commands via the Jenkins job.
Under Build, if you add an
Execute shellbuild step, you can run your commands from there.Note – The path to the selenium server is relative to the current work directory.