Skip to content
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

Browser is not restarting after a scenario execution #3257

Open
alberf50 opened this issue Sep 12, 2023 · 1 comment
Open

Browser is not restarting after a scenario execution #3257

alberf50 opened this issue Sep 12, 2023 · 1 comment

Comments

@alberf50
Copy link

alberf50 commented Sep 12, 2023

What happened?

Hi all,

I have a project run by these Serenity versions of Cucumber & Maven:
<serenity.version>3.9.0</serenity.version> <serenity.maven.version>3.9.0</serenity.maven.version> <serenity.cucumber.version>3.9.0</serenity.cucumber.version>

Also, I have these Serenity settings:

serenity { take.screenshots = FOR_FAILURES test.root = src/test/resources/features tag.failures = "true" linked.tags = "issue" use.unique.browser = false restart.browser.each.scenario = true webdriver.autodownload = false headless.mode = false browser.maximized = true report { accessibility = true } }
However, after the scenarios are executed, the browser is not being restarted. Is there any fix available? I think I didn't mess up anything, please If that's the case, tell me :)

Best regards

What did you expect to happen?

By these Serenity configurations the browser should be closed after every scenario execution, which is not happening at the moment.

Serenity BDD version

3.9.0

JDK version

17.0.7_7

Execution environment

Windows 10 Enterprise

How to reproduce the bug.

By having an Intellij project run by Serenity and trying to execute all the features by adding these code lines:

serenity { take.screenshots = FOR_FAILURES test.root = src/test/resources/features tag.failures = "true" linked.tags = "issue" **use.unique.browser = false** **restart.browser.each.scenario = true** webdriver.autodownload = false headless.mode = false browser.maximized = true report { accessibility = true } }

How can we make it happen?

Add it to the Serenity BDD backlog and wait for a volunteer to pick it up

@sandeepraina-lenze
Copy link

Try the following

serenity {
  project.name = "Serenity BDD TodoMVC"
  test.root = "net.serenitybdd.demos.todos"
  tag.failures = "true"
  linked.tags = "issue"
  restart.browser.for.each = scenario
  logging = verbose
  compress.filenames=false
  outputDirectory = "reports"
}

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

No branches or pull requests

2 participants