Looks like I was misinformed, a failure in 3.9.2 acts as a Outcome: SUCCESS in 3.9.3...
http://jira.codehaus.org/browse/JBEHAVE-1014 - which is a good change in my opinion. The screenshot for a failed story appears under the failed step (if Outcome: ANY or FAILURE). Is it possible to take the screenshot at the time of the failure, and continue with the lifecycle steps? Here is an example project I put together to demo this: https://github.com/bbarke/jbehave-example-projects When running the tests (mvn clean integration-test), it will fail on the Etsy website, but the screenshot will be taken on Google's website. Thanks in advance! -Brent On Thu, Sep 25, 2014 at 2:21 PM, Brent Barker <brentbark...@gmail.com> wrote: > Hi again, > > I noticed from upgrading JBehave 3.9.2 to 3.9.3, the order which > AfterScenario was executed changed. > > Our method annotated with @AfterScenario() takes a screenshot of the > failure in the scenario, and continues on to the next scenario. > > A story with this: > >> Lifecycle: >> After: >> Outcome: ANY >> Given I login as a Admin >> Then I am able to clean up my data > > > It used to take a screenshot (executing the @AfterScenario()) before > performing the after lifecycle steps. In 3.9.3, this is no longer the case > > Is there some documentation regarding the order lifecycle steps should be > executed, depending on failures? > > If it helps, I can try to put together an example project that demos this > behavior. > > Thanks! > -Brent >