You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
== The issue ==
I have no time to prove it now but it appears that having:
class Test extends ScenarioTest<G,W,T> {
@ScenarioStage
protected G extraFixtures;
@ScenarioStage
protected W extraActions;
@ScenarioStage
protected T extraVerifications;
@Test
public void shouldDoSomething() {
given().something();
extraFixtures.given().something();
....
extraVerifications().then().it_should_work();
then().it_should_work();
}
}
At least in my case, the @AfterScenario method is not called for the extraXXXX scenario.
** I am running on TestNG, so this behavior might be specific to that only.
** Sometimes we need to work with several similar resources, e.g. two database connections or two browsers, in order to test some messaging scenario; in such cases the additional resource is not released
The text was updated successfully, but these errors were encountered:
== Context ==
Stages added as per documented here
http://jgiven.org/userguide/#_stage_injection
As described in
http://jgiven.org/userguide/#_dynamic_adding_of_stages
Before/AfterScenario methods are supposedly invoked for these stages.
== The issue ==
I have no time to prove it now but it appears that having:
At least in my case, the @AfterScenario method is not called for the extraXXXX scenario.
** I am running on TestNG, so this behavior might be specific to that only.
** Sometimes we need to work with several similar resources, e.g. two database connections or two browsers, in order to test some messaging scenario; in such cases the additional resource is not released
The text was updated successfully, but these errors were encountered: