serenity-bdd / serenity-junit-starter

Apache License 2.0
53 stars 86 forks source link

Serenity Junit 5 parallel execution is not working #23

Open bachhavdipak opened 2 years ago

bachhavdipak commented 2 years ago

I am trying to trigger parallel execution using experitest with the below configuration but when I trigger our test we are getting below exception on an intermittent basis.


junit.jupiter.execution.parallel.enabled = true
junit.jupiter.execution.parallel.mode.default = same_thread
junit.jupiter.execution.parallel.mode.classes.default = same_thread
junit.jupiter.execution.parallel.config.strategy = dynamic

Error : net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate new WebDriver instance of type class net.thucydides.core.webdriver.ProvidedDriver (Could not instantiate the custom webdriver provider of type mydriver). See below for more details.

Please note we are trying to run 10 different regions (uk ,au..etc in parallel mode) simultaneously and we have observed that above DriverConfigurationError on an intermittent basis.