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.
| check | test result |
| other stuff |
| thats not processed |
|
throw abandon
fit.exception.AbandonStoryTestException: Story test abandoned.
|
| other stuff | | thats not processed |
|
| check | test result |
| sample domain adapter |
| throw abandon | my stuff |
| other stuff |
| thats not processed |
| | sample domain adapter | throw abandon
fit.exception.AbandonStoryTestException: my stuff
| my stuff |
| other stuff | | thats not processed |
|
| check | test result |
| use | column | with | new | sample domain adapter |
| throw abandon? |
| x |
| y |
| other stuff |
| thats not processed |
| | use | column | with | new | sample domain adapter | | throw abandon? | x
fit.exception.AbandonStoryTestException: Story test abandoned.
| | y |
| other stuff | | thats not processed |
|