diff --git a/src/test/java/org/dvsa/testing/framework/parallel/CustomRunner.java b/src/test/java/org/dvsa/testing/framework/parallel/CustomRunner.java index c57bf6bcc..ee8b980d7 100644 --- a/src/test/java/org/dvsa/testing/framework/parallel/CustomRunner.java +++ b/src/test/java/org/dvsa/testing/framework/parallel/CustomRunner.java @@ -7,7 +7,7 @@ import java.util.concurrent.ForkJoinPool; import java.util.function.Predicate; public class CustomRunner implements ParallelExecutionConfiguration, ParallelExecutionConfigurationStrategy { - private static final int FIXED_PARALLELISM = 4; + private static final int FIXED_PARALLELISM = 3; static { System.out.println("THREADS: " + FIXED_PARALLELISM); diff --git a/src/test/java/org/dvsa/testing/framework/stepdefs/vol/TestRunConfiguration.java b/src/test/java/org/dvsa/testing/framework/stepdefs/vol/TestRunConfiguration.java index b79e90d24..20c4026ad 100644 --- a/src/test/java/org/dvsa/testing/framework/stepdefs/vol/TestRunConfiguration.java +++ b/src/test/java/org/dvsa/testing/framework/stepdefs/vol/TestRunConfiguration.java @@ -38,15 +38,11 @@ public void takeScreenShotAfterFailure(Scenario scenario) { } } if (Browser.isBrowserOpen()) { - Browser.getDriver().quit(); + Browser.getDriver().close(); + Browser.removeLocalDriverThread(); } } - @AfterAll - public static void tearDown() { - Browser.removeLocalDriverThread(); - } - public static void attach(Scenario scenarioStatus) { if (scenarioStatus.isFailed()) { Allure.addAttachment("Oops something has gone wrong",