serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

Question: How to know previous scenario status runtime? #243

Open push2212 opened 3 years ago

push2212 commented 3 years ago

Hello ,

I need to know the scenario status while in execution so that I can execute @After annotation to perform some logging.

In JBehave I have used @AfterScenario(uponType=ScenarioType.ANY,uponOutcome=AfterScenario.Outcome.FAILURE)

What can I use in Serenity with Cucumber. Please suggest.

wakaleo commented 3 years ago

There is no equivalent of that in Cucumber.

push2212 commented 3 years ago

Ok, thanks for the quick reply

push2212 commented 3 years ago

one more thing , could you please tell me if I can get how the serenity catches a failure , any parameter or property that gets set when there is an exception.