Closed automatenew closed 2 years ago
WebDriverRunner
is closing the drivers session after each test when parallel = false
. The Selanide
dependency should be removed and replaced with driverThreadLocal
instance, in the DriverManger.class
. Feel free to open a PR if you fix it.
Set the parallel to false for single thread execution
public class WeatherRunnerTest extends AbstractTestNGCucumberTests { @Override @DataProvider(parallel = false) public Object[][] scenarios() { return super.scenarios(); }
[INFO] Run 1: PASS [ERROR] Run 2: WikipediaParallelRunnerTest.runScenario » NoSuchSession Session ID is null. Us... [ERROR] Run 3: WikipediaParallelRunnerTest.runScenario » NoSuchSession Session ID is null. Us...
how to limit the number of threads, please let me know.
Thanks for the greater work