Hi Mauro, Leading on from your mail, we have had another look at our configuration this morning.
We had doResetStateBeforeScenario set to false. When we changed this to true we got the behaviour we desired. Thank you for your help. On Sat, Mar 2, 2013 at 1:14 PM, Mauro Talevi <[email protected]>wrote: > Hi Mary, > > I can't reproduce your behaviour. > > The story > https://github.com/jbehave/jbehave-core/blob/master/examples/trader/src/main/java/org/jbehave/examples/trader/stories/SkipScenariosAfterFailure.javashows > that scenarios after failed scenarios can be executed, if you set the > flag skipScenariosAfterFailure=false. > > I suspect you have some other configuration lingering about. > > Can you send a sample project that reproduces the problem? > > Cheers > > > On 01/03/2013 12:00, Mary Walshe wrote: > > As you say, this is the default behaviour. We can see the scenarios that > we want to run when skipScenariosAfterFailure is set to false, however they > are always marked as 'Not Performed' despite the fact that the scenarios > are independent. > > We would like the remaining scenarios that are marked 'Not Performed' to > actually run. > > Is there any way to do this? > > > On Thu, Feb 28, 2013 at 7:08 PM, Mauro Talevi > <[email protected]>wrote: > >> In StoryControls you have the flag skipScenariosAfterFailure that you >> can set to true or false (default). >> >> So what you're describing should be the default behaviour. >> >> >> On 28 Feb 2013, at 15:07, Mary Walshe <[email protected]> wrote: >> >> It would be in the case where there are multiple scenarios in one >> story file. >> >> If the first scenario fails I would like the following scenarios in >> that same story file to run. E.g >> >> *In order to do something* >> *As a developer* >> *I want the following* >> * >> * >> *Scenario 1* >> *Given foo* >> *When bar* >> *Then something happens (This scenario FAILS)* >> * >> * >> *Scenario 2 (I want this scenario to run)* >> *Given foo1* >> *When bar1* >> *Then something happens * >> >> Currently if one scenarios fails in a story the whole story fails and >> none of the preceding scenarios are run. >> >> I have ignoreFailureInStories set to true at the moment but this only >> goes to the next story after a failure and not the next scenario. >> >> Cheers, >> Mary >> >> > >
