Is there any way to run something before all When steps?
Chad
-
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
There is no such behaviour built-in.
You can nonetheless implement some state logic in your story A so that if
successful it won't get repeated more than once.
Think about setting up a context object.
> On 12 Sep 2014, at 11:50, "Zheng, Ayesha(AWF)" wrote:
>
> Thanks for your answer.
> Seems
Thanks for your answer.
Seems “GivenStories” cannot match my requirement.
Actually my requirement is:
B and C depend on A.
If A succeed, then run B and C in parallel. (Run them in serial need too long
time)
If A failed, then skip B and C.
Does any feature in JBehave can do this?
Thanks.
Best R
Check this description of the "GivenStories" keyword:
http://jbehave.org/reference/stable/given-stories.html
The whole point with the keyword "GivenStories" is to do exactly that: run
the dependency before each dependent story.
If what you need is just to have the stories run in sequence