Stopping a Fitnesse Test when an Error Occurs with FitLibrary DoFixture
On the Yahoo Fitnesse list Lars Norden asked, “how to stop or abort test is condition fails.” If you can use FitLibrary’s DoFixture in flow mode you can do this easily using the special action abandon storytest. This only works if you are “in flow”:
To be in “flow”, the first table must be a DoFixture (or SequenceFixture). The actions in all following tables are carried out with that fixture. However, as we saw before, an action may provide a different fixture, such as a RowFixture, which will be used with the rest of the table. http://fitlibrary.sourceforge.net/DoFixture/DoFixtureSummary.html
You can also enforce this behavior at the code level by calling setStopOnError(true) in your fixture code.
Proposing something called “PhraseFixture†— a better DoFixture() for use with FIT and FitNesse Acceptance Testing Framework.
The powerful DoFixture() in FitLibrary simulates English like specification. The PhraseFixture proposal takes this to the next level.
Please see article here: http://codeproject.com/KB/library/PhraseFixture.aspx
I’d like to get some feedback.