Web Testing with Selenium WebDriver and Cucumber

This article from Alan Bowers and James Bell provides an introduction to setting up a software testing infrastructure using Selenium WebDriver and Cucumber. It shows how to create a test suite for single-page web applications and to run tests across multiple web and mobile browsers via Selenium Grid.

The article starts by presenting Cucumber, open source Behavior-Driven Development (BDD) tool. it then explains how to use Selenium WebDriver to drive the browser during the tests. The article also introduces a variation on the traditional Page Object pattern that will be used to carry out page-specific interactions. A step-by-step approach is provided on how to run the test and how to test against different browsers.

Alan Bowers and James Bell conclusion is that “Setting up an automated framework for web application testing is a challenge, and also demonstrably worthwhile in the long run. We found that using Selenium and Cucumber makes the task much easier and results in more maintainable test suites.”

Read the complete article on http://www.ibm.com/developerworks/opensource/library/a-automating-ria/index.html