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
Actual Result: Running test suite opens new browser for every new scenario irrespective of same or new feature file.
What did you expect to happen?
Expected Result: serenity.restart.browser.for.each=feature shouldn't have restarted the browser for different scenarios under same feature file. Browser should have open & closed per feature file.
This is working perfectly fine with below JUnit 4 runner but not with @suite:
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
plugin = {"pretty"},
features = "src/test/resources/features"
)
public class JUnit4Runner {
}
Serenity BDD version
4.0.29
JDK version
17
Execution environment
No response
How to reproduce the bug.
Sample project with JUnit4 Runner & JUnit Platfor Suite Runner
The text was updated successfully, but these errors were encountered:
What happened?
Create more that 1 feature files having 2 or more scenarios per feature file.
Create cucumber runner as below:
Actual Result: Running test suite opens new browser for every new scenario irrespective of same or new feature file.
What did you expect to happen?
Expected Result: serenity.restart.browser.for.each=feature shouldn't have restarted the browser for different scenarios under same feature file. Browser should have open & closed per feature file.
This is working perfectly fine with below JUnit 4 runner but not with @suite:
Serenity BDD version
4.0.29
JDK version
17
Execution environment
No response
How to reproduce the bug.
Sample project with JUnit4 Runner & JUnit Platfor Suite Runner
The text was updated successfully, but these errors were encountered: