Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Browsers do not close after each runner is done #79

Closed
airyz opened this issue Nov 16, 2016 · 2 comments
Closed

Browsers do not close after each runner is done #79

airyz opened this issue Nov 16, 2016 · 2 comments

Comments

@airyz
Copy link

airyz commented Nov 16, 2016

I am not sure if this is a bug or a setting I am missing but my browsers remain open until all runners complete their tests. I end up having 20+ open browsers. Is there any setting to setup the browser to close after each runner complete the task?

This was especially visible when I used <parallelScheme>SCENARIO</parallelScheme>

@sugatmankar
Copy link
Contributor

sugatmankar commented Nov 16, 2016

Closing browser is not a part of this plugin however if your WebDriver implemented as Shared Driver it will closed after all run complete test.

@temyers Whats your suggestion over this ? I have avoided this problem by implementing custom runner that i was submitted in pull request #53. In which i have added BeforeMethod tag to initialize and in AfterMethod tag to Close Browser .

@temyers temyers closed this as completed Nov 18, 2016
@temyers
Copy link
Owner

temyers commented Nov 18, 2016

@sugatmankar Closing the browser is outside the scope of this plugin, since people may have different requirements.

Closing the browser should be done using a JVM shutdown hook, or @After method.

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

3 participants