Table of Contents

Fitnesse - Test Table

About

A table (test table) is the basic statement of Fitnesse in order to defined test.

Format

The format is table dependent but they generally take the basic form of:

This example from the getting started, a slim decision table:

|eg.Division                    | <-- The test class (Fixture)
|numerator|denominator|quotient?| <-- The method called (without ?, this is setter function, with a ?, the function returns value)
|10       |2          |5.0      | <-- The first row of data to set and to expect
|12.6     |3          |4.2      | <-- The second row of data to set and to expect
|22       |7          |~=3.14   |
|9        |3          |<5       |
|11       |2          |4<_<6    |
|100      |4          |33       |
Plain text

where:

After running the test:

List

Management

Creation

Constructor

ConstructorArguments

|Decision:my decision table|constructor argument 1|constructor argument 2|
|...|
Plain text

Documentation / Reference