O'Reilly logo

Jenkins Continuous Integration Cookbook by Alan Berg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running Selenium IDE tests

Selenium IDE allows you to record your clicks within web pages and replay them in Firefox. This is good for functional testing. The test plans are saved in an HTML format.

This recipe shows you how to replay the tests automatically using Maven and then Jenkins. It uses an in-memory X server Xvfb (http://en.wikipedia.org/wiki/Xvfb) so that Firefox can be run on an otherwise headless server. Maven runs the tests using Selenium RC, which then acts as a proxy between the tests and the browser. Although we record with Firefox, you can run the tests with the other browser types as well.

It is beyond the scope of this chapter to discuss Selenium Grid (http://selenium-grid.seleniumhq.org/), other than to note that Selenium Grid ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required