Hi there,

I am having troubles with JBehave reports

I dont know why, but JBehave does not take in consideration failures in the 
given stories. If there is a failure in a givenstory, it will not perform the 
rest of the steps of that story, but it will execute the rest of the given 
stories. Here is an example:
GivenStories: stories/web/pmv/Story1.story,
stories/web/pmv/Story2.story,
stories/web/pmv/Story3.story,
stories/web/pmv/Story4.story,
stories/web/pmv/Story5.story

When the user do something
Then something happens
For instance, if the Story2.story fails, I was expecting that the rest of the 
given stories and the last 2 steps were not executed. But they are being 
executed and passing the with no failures on the story.
Anyone knows why is that? How can I fail all stories if one single step or 
story fails?
I noticed as well that the reports statistics just reflect the last given story 
and the following steps. Is this correct? Why?
I have the following configuration:
configuredEmbedder().embedderControls()
.doGenerateViewAfterStories(true)
.doIgnoreFailureInStories(false)
.doIgnoreFailureInView(false)
.useThreads(2)
.useStoryTimeoutInSecs(60);
MostUsefulConfiguration:
.useStoryControls(
     new StoryControls()
     .doDryRun(false)
     .doSkipScenariosAfterFailure(true)
     .doResetStateBeforeScenario(false))
When i added the config doResetStateBeforeScenario(false), the following steps 
after the failure, even the ones inside the givestories were not performed. But 
in yet, the statistics show no error, because it was not last given story or 
the steps on the main story. In the end the maven build had no errors, in yet 
there failures in the test.
Any thoughts?
thank you very much.



Marco Santos




________________________________

Directors: A. Holmes (Managing), P. Smith, P. Kierans, R. O'Connor

123 Money Ltd. trading as 123.ie is regulated by the Central Bank of Ireland
Postal Address: 123.ie, PO Box 12123, Dublin 18.
Registered Office: RSA House, Dundrum Town Centre, Sandyford Road, Dundrum, 
Dublin 16. Registered in Ireland Number: 323099

This email is confidential and is intended exclusively for the person(s) named 
above. If it has been delivered to you by mistake, please notify the sender and 
then delete this email. If you are not the intended recipient or a 
representative of the intended recipient, you have received this email in error 
and must not copy, use or disclose the contents of this email to anybody else.

Reply via email to