Regressions No More: Automating Front-End Quality Assurance with Selenium

Track: 
Coder
Experience: 
Intermediate

One of the lessons learned from the Drupal 6 development cycle is that testing for regressions by hand is a difficult, time consuming, and a generally painful process during feature development. With Drupal 7, the SimpleTest framework was integrated, allowing both Drupal core and modules to be tested automatically on qa.drupal.org. This is great for testing back-end functionality, but what about testing the front-end of a site built with Drupal?

This session will show how you can use the Selenium Web Application Testing System to quickly and easily build tests that can test the final output from your Drupal site. Some of the topics discussed will include:

  • Using the Selenium IDE in Firefox to create Selenium test cases.
  • Testing dynamic interactions such as those done with jQuery or AHAH.
  • Exporting your Selenium tests to PHP.
  • Using the Selenium RC to run your verify your tests on multiple web browsers and operating systems, including Internet Explorer and Google Chrome.

By the end of this session you'll be ready to start creating tests on your own web sites and be well on your way to becoming a front-end testing guru.

Intended audience: 

Site builders, developers, and QA Managers. Those who are frustrated with having to click-spam their sites to test front-end functionality.

Questions answered by this session
Question 1: 
What is Selenese, and how do I speak it?
Question 2: 
How do I know when a feature has regressed on my web site?
Question 3: 
How can I test form submission and validation with Selenium?
Question 4: 
How do I handle interactions that modify or change a site, yet test them multiple times?
Question 5: 
What is PHPUnit, and why do I want it?
4.076925
Your rating: None Average: 4.1 (39 votes)

Diamond Sponsors

 
Palantir.net
VPS NET

Platinum sponsors

 
workhabit
Trellon

Gold Sponsors

 
Microsoft
Drupal Connect
Treehouse Agency
Chapter Three
NorthPoint
HotDrupal.com
Duo