One possible solution could be to introduce a new story control flag to
reset state only for example scenarios, while normal scenarios are
controlled by the existing flag. Then you could set the example
scenario control flag to false, while keeping the normal scenario flag
to true (default).
Although this is not exactly what you're looking for, it seems. The
problem is that currently a scenario parametrised by example is not
considered as one scenario, but multiple scenarios (although JBehave
knows the difference between a normal and an example scenario).
We could perhaps introduce a sort of a "container" scenario type that
would keep track of the state during the execution of only examples
scenarios
In any case, please raise a JIRA issue for it and we start the
discussion - the solution would need to be spiked and verified:
http://jbehave.org/reference/stable/issue-tracking.html
On 22/06/2015 20:18, Paul Robbins wrote:
Mauro,
Thank you for the quick reply. Unfortunately this solution presents
the opposite problem. Now, if I have multiple scenarios within a
single story file, and scenarios that come after the failed one are
determined to be failures. What I'm looking for is some way to
configure so that each scenario's success/failure is determined
independently, but the scenario is counted as a failure if one of its
examples fails.
--
You received this message because you are subscribed to the Google
Groups "JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/jbehave-user/68e49503-c100-4aa2-b3b9-96b0e762bf59%40googlegroups.com
<https://groups.google.com/d/msgid/jbehave-user/68e49503-c100-4aa2-b3b9-96b0e762bf59%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "JBehave
User" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/jbehave-user/5588560A.3070809%40aquilonia.org.
For more options, visit https://groups.google.com/d/optout.