Skip to content

Commit

Permalink
fix:reduced browsers to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
1dson committed Jan 13, 2025
1 parent 917e597 commit f12336a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f12336a

Please sign in to comment.