Introduction to Functional Web Testing With Twill & Selenium

Welcome

Begin the Begin

This tutorial aims to educate attendees on the the basics of functional testing of web applications. Is your app rendered as plain HTML? Great! We'll show you how to build a test suite for it. Is your app all AJAXy? No problem! We can do that too! We've written a web application that contains both straight html and AJAX (you're looking at it, actually), and we're going to show you how to try to break it. At the end of this hands-on session, you'll be able to write tests for almost any web site, using all open-source tools and our favorite language: Python.

What do you need?

Hardware

  • Laptop highly recommended; if you don't have one, come prepared to pair up with someone

Software

(Local tar.gz files of most of these packages are included here.)

Part I: Testing Straight HTML Sites

  • Basics of nose-style tests with twill
  • Coding session: Break our web application

Begin Part One

Part II: Upping the Ante With AJAX

  • Basics of Selenium IDE and Selenium RC
  • Coding session: Break our web 2.0 application

Begin Part Two

Fluid 960 Grid System, created by Stephen Bau, based on the 960 Grid System by Nathan Smith. Released under the GPL/ MIT Licenses.