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 ( 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 (, other than to note that Selenium Grid ...

Get Jenkins Continuous Integration Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.