Test Driven Web Applications with FitNesse
Please turn off all
Test Driven Development
Test Driven Development
Benefits of Test Driven Development are Well Known
Framework Limitations
Enter FitNesse
Acceptance Testing vs. Unit Testing
Demo Installing FitNesse
Install Problems
Live Demo!
Possible Results
The FitNesse Architecture
The Fixture is where the Magic Is
Don't read too much into this
A (Marginally) More Realistic Example
Types
Why the Indirection?
Setting the Classpath
Importing spreadsheets
Table Fixture Styles
HTMLFixture
A simple web application
Creating a new page
Identifying tests
Test that the Page has a Title
Initial Result
Fix the problem
It still fails
Now the test passes!
Test that the Page has a Title and that the title is "Petition"
The general structure of an HTMLFixture test table
HTMLFixture Instructions
Addressing
Test that the character set is UTF-8
Can combine multiple tests in one table
Use whitespace to line columns up if you like
Annoyingly you can't just put in a blank line or a blank row to separate tests
Test that the petition data is included.
Text Tests
Text Tests Do cross tag boundaries
Regular expressions
Negative tests
Operators
Test signing the petition
Verify you're at the Top-10 in Google
Watch out for cross-site scripting
JavaScript Tests
Setting Page Properties
SubWikis
Standard Headers and Footers
Suites
SetUp and TearDown
More WIKI markup
WIKI Features
Other Languages
RowFixture
ActionFixture
A Final Thought
To Learn More
Questions?
Entire Presentation as Single File
Start
|
Cafe con Leche
Copyright 2006 Elliotte Rusty Harold
Last Modified September 6, 2006