Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

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

Open
push2212 opened this issue Jul 15, 2020 · 3 comments
Open

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

push2212 opened this issue Jul 15, 2020 · 3 comments

Comments

@push2212
Copy link

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
Copy link
Member

wakaleo commented Jul 15, 2020

There is no equivalent of that in Cucumber.

@push2212
Copy link
Author

Ok, thanks for the quick reply

@push2212
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants