Page History: Test Wiki
Compare Page Revisions
Page Revision: 06/03/2013 20:46
Ward Cunningham invented the first
WikiWiki and is considered by many as one of the founders of object oriented programming. He also created a test fixture framework that uses tables for designing and testing procedures, data, and actions in common document formats like Word and Excel. What goes in the cells of the table and which kind of test fixture is used to test it depends on the goal of the test. There are 3 basic types of fixtures and many variations to how they work.
WikiWiki and the fit test framework were first used together by the
Fitnesse project
- Column Fixture
- Used to test an object's procedures with various arguments
- RowFixture
- Used to test database result sets
- ActionFixture
- Used to test the results of a series of actions
The best way to explain is by example so here is a basic acceptance test for a procedure:
Math.Calculator |
value1 | value2 | Sum() | Product() | Exponent() |
3 | 2 | 5 | 6 | 9 |
12 | 4 | 18 | 48 | 20736 |
The first row is the fully qualified name of the type (namespace+class) being tested.
The second row has argument names followed by procedures denoted by the ().
The following rows has the values for the arguments and the expected results of the procedures.
After running the test it would look like this.
Math.Calculator |
value1 | value2 | Sum() | Product() | Exponent() |
3 | 2 | 5 | 6 | 9 |
12 | 4 | Expected 18 |
Actual 16 | 48 | 20736 |
Checkout a live example on the
test site where the test fixtures are being developed. Just click the 'Run Tests' link to run the test and see the results.