Download Test Driven .NET Development with FitNesse

Transcript
Removing duplication
Figure 7.2. Fitnesse shows a summary at the beginning of the test suite report
In what order are suite pages executed?
The order of pages is not guaranteed, so do not depend on it.
Extract all common functionality into the SetUp page so that
the order is not important.
While refactoring your test pages to extract common things to a SetUp
page, be careful not to lose the expressiveness of the page. The important
thing is that everyone has the same understanding of what the test page
describes — so do not make the page too technical.
Include pages and use them as components
You can create as many levels of subwiki hierarchies as you like: sublevels
automatically inherit the parent SetUp pages. However, once you create
a SetUp page in a subwiki, the parent SetUp is no longer called automatically. To execute the parent SetUp page, include it in the subwiki SetUp
with an !include directive, followed by the page name.
82