Hi Mauro, I am sorry, I already discovered where is the problem, and it is on my pom file. I was using a property to manage the dependencies versions, but on the jbehave-maven-plugin I was using an hard-coded one. So on the properties I was using 4.0-beta-3 or 3.7.3, but in the plugin I was using the 4.0-beta-1.
Apparently this issue does not occur on the versions 4.0-beta-3 or 3.7.3. So the bug is already fixed. I am sorry, and thank you very much for the help. Regards Marco Santos Java Developer 123.ie Direct: (01) 524 6236 Switch: 1890 231 123 Fax: (01) 524 6090 Email: marco.san...@123.ie<mailto:marco.san...@123.ie> www.123.ie<http://www.123.ie> From: Marco Santos Sent: 11 December 2013 11:02 To: dev@jbehave.codehaus.org Subject: RE: [jbehave-dev] JBehave how to fail all stories Hi Mauro, Do work in the JBehave project? Can you point me where the problem might be regarding the JBehave Report statistics not showing the correct results? I would like to investigate a little bit what might be the problem and who knows maybe fix it. Thank you very much. Marco Santos Java Developer 123.ie Direct: (01) 524 6236 Switch: 1890 231 123 Fax: (01) 524 6090 Email: marco.san...@123.ie<mailto:marco.san...@123.ie> www.123.ie<http://www.123.ie> From: Marco Santos Sent: 09 December 2013 17:28 To: dev@jbehave.codehaus.org<mailto:dev@jbehave.codehaus.org> Subject: RE: [jbehave-dev] JBehave how to fail all stories Hi Mauro, Thank you very much. I was wondering if I was the only one experiencing this problem. I looks like JBehave assumes that if you reached the last given story or the last set of steps is because the other ones passed on the tests. As soon as I have time I will submit a project to reproduce that behaviour, because I can't submit the one I am working on. Thank's a lot. Regards. Marco Santos Java Developer 123.ie Direct: (01) 524 6236 Switch: 1890 231 123 Fax: (01) 524 6090 Email: marco.san...@123.ie<mailto:marco.san...@123.ie> www.123.ie<http://www.123.ie> From: Mauro Talevi [mailto:mauro.tal...@aquilonia.org] Sent: 07 December 2013 14:12 To: dev@jbehave.codehaus.org<mailto:dev@jbehave.codehaus.org> Subject: Re: [jbehave-dev] JBehave how to fail all stories Hi Marco, I think you've hit upon a behaviour that's never been fully considered, and hence never verified. I agree that execution should stop or at least provide configuration option to make it stop (some users may prefer to have all given stories run). Please raise a JIRA issue for this, ideally adding a project that allows to reproduce it. I think we can limit ourselves to 2 given stories for this. Thanks, Mauro On 06/12/2013 15:29, Marco Santos wrote: 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. ________________________________ 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. ________________________________ 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. ________________________________ 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.