-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Before/After Scenario not working in Serenity BDD #117
Comments
@BeforeScenario and @AfterScenario are JBehave annotations and are handled by JBehave - Serenity doesn't do anything special to run them, as they should be run by JBehave. Is there something special that you need to do with JBehave to use them? Can you create a sample JBehave project where they work correctly? |
Thanks for the quick response. |
I created two sample project of below archetype and tried before and after scenario in both the sample projects its working fine What can be the case where before and after wont execute? |
The JBehave API seems to have changed, it seems you now need to add the ScenarioType parameter:
|
I have already posted a question in other forum too.
http://stackoverflow.com/questions/42860315/before-after-scenario-not-working-in-jbehave-serenity-bdd
When I run the test the code does not enter the before and after scenario block.
The version i am using is
<serenity.version>1.2.3-rc.5</serenity.
<serenity.jbehave.version>1.21.0</serenity.jbehave.version>
The text was updated successfully, but these errors were encountered: