FitNesse.NET
Abandon Story Test

An exception AbandonStoryTestException can be thrown anywhere in fixture or Domain Adapter code to stop execution of the current story test. If a story test is executing in flow mode, the Abandon Story Test Keyword can also be used to stop execution.

do
withtypestory test

checktest result
sample domain adapter

throw abandon

other stuff
thats not processed
sample domain adapter

throw abandon
fit.exception.AbandonStoryTestException: Story test abandoned.

other stuff
thats not processed

checktest result
sample domain adapter
throw abandon

other stuff
thats not processed
sample domain adapter
throw abandon
fit.exception.AbandonStoryTestException: Story test abandoned.

other stuff
thats not processed

checktest result
usecolumnwithnewsample domain adapter
throw abandon?
x
y

other stuff
thats not processed
usecolumnwithnewsample domain adapter
throw abandon?
x
fit.exception.AbandonStoryTestException: Story test abandoned.
y

other stuff
thats not processed
© Copyright 2007,2008 Syterra Software Inc. All rights reserved.