Details
Description
In JBehave it is possible to use lifecyle steps, which add steps before and after each scenario.
Lifecycle:
Before:
Given I have a bank account
And my balance is 100
After:
Then my balance is archived
If a step of the scenario fails, then the after steps are not executed.
This might be good in some situations, but in another situations it would be good that the after steps are executed even in case of a failure. For example one could do some cleanups there.
Can you please improve this so that it can be specified upon which outcome type the after steps are called in the story?
Activity
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 4.x [ 18279 ] | |
Fix Version/s | 3.9.3 [ 20321 ] |
Mauro Talevi
made changes -
Resolution | Fixed [ 1 ] | |
Assignee | Mauro Talevi [ maurotalevi ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |