3.5. Using the RunViewer fixture

One reason that the archetype (Chapter 2, Using the FitNesse Archetype) separates out the "given", "when" and "then" is so that the "given" - which is often the hardest part to get setup - can be verified independently from the rest of the test.

To do this, we can use the RunViewer fixture (see Section A.4.5, “RunViewer”). This will run up the drag-n-drop viewer at the specified point in the test; a visual equivalent of System.out.println(), really. We can therefore take the Given page and add a RunViewer fixture at the end.

Note that to do this you must temporarily mark the Given page as a test page.