Skip to content

Commit b372d50

Browse files
committed
Rerun Java examples in 3 times
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
1 parent 861cdfc commit b372d50

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

examples/java/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
<artifactId>maven-surefire-plugin</artifactId>
5858
<version>3.5.2</version>
5959
<configuration>
60+
<rerunFailingTestsCount>3</rerunFailingTestsCount>
6061
<properties>
6162
<configurationParameters>
6263
junit.jupiter.execution.parallel.enabled = true

examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import java.util.regex.Pattern;
1414
import org.junit.jupiter.api.AfterEach;
1515
import org.junit.jupiter.api.Assertions;
16+
import org.junit.jupiter.api.parallel.Execution;
17+
import org.junit.jupiter.api.parallel.ExecutionMode;
1618
import org.junit.jupiter.api.Test;
1719
import org.openqa.selenium.By;
1820
import org.openqa.selenium.WebElement;
@@ -48,6 +50,7 @@ public void arguments() {
4850
}
4951

5052
@Test
53+
@Execution(ExecutionMode.SAME_THREAD)
5154
public void setBrowserLocation() {
5255
ChromeOptions options = new ChromeOptions();
5356

examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import java.util.regex.Pattern;
1414
import org.junit.jupiter.api.AfterEach;
1515
import org.junit.jupiter.api.Assertions;
16+
import org.junit.jupiter.api.parallel.Execution;
17+
import org.junit.jupiter.api.parallel.ExecutionMode;
1618
import org.junit.jupiter.api.Test;
1719
import org.openqa.selenium.By;
1820
import org.openqa.selenium.WebElement;
@@ -49,6 +51,7 @@ public void arguments() {
4951
}
5052

5153
@Test
54+
@Execution(ExecutionMode.SAME_THREAD)
5255
public void setBrowserLocation() {
5356
EdgeOptions options = new EdgeOptions();
5457

0 commit comments

Comments
 (0)