Different Table Styles for Different Purposes
As we've seen, every FitNesse
test table begins with a row that contains the classname of the FixtureCode
that will interpret the rest of the table. The rest of the rows in a test table depend on which style of table and fixture we are using (each style of test table has its own style of FixtureCode
Here we point you to pages that describe each of the styles of FitNesse
test table, and the fixture code used to interpret and run them as tests.
The Most Common Table/Fixture Styles
||This is the style you may end up using most: rows of data represent inputs and expected outputs.
||This is good for testing queries that should return an exact set of values (order-independently).
||This style allows you write a script that emulates a series of events (such as controls manipulated on a user interface).
||Sometimes you want a tablular comment that is not executed as a test.
Less Frequently-Used Table/Fixture Styles
||A special case of ColumnFixture for processing rows of data.
||A fixture style that lets you create completely custom test table formats, and process them however you like.
||A fixture that allows you to execute shell commands in multiple threads.
||A fixture that generates a report of all the tests on a page.
Some Table and Fixture Examples