fitSharp
Abandon Story Test

An exception AbandonStoryTestException can be thrown anywhere in fixture or Domain Adapter code to stop execution of the current story test. The exception can be constructed with a custom message which will appear in the test result.
 throw new AbandonStoryTestException();
 throw new AbandonStoryTestException("my message");

If a story test is executing in flow mode, the Abandon Story Test Keyword can also be used to stop execution.

story test fixture

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 abandonmy stuff

other stuff
thats not processed
sample domain adapter
throw abandon
fit.exception.AbandonStoryTestException: my stuff
my stuff

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 Syterra Software Inc. All rights reserved.