Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/appium-app-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- name: RDC Native App IOS
timeout-minutes: 30
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/appium-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- name: Android Native App ${{ matrix.cloud }}
timeout-minutes: 30
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/appium-mobile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- name: Mobile Web ${{ matrix.cloud }} ${{ matrix.browser }}
timeout-minutes: 30
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/best-practice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- name: Run tests
continue-on-error: true
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/playwright-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- uses: axel-op/googlejavaformat-action@v4
with:
Expand All @@ -44,9 +44,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- name: Example
timeout-minutes: 30
Expand Down Expand Up @@ -74,9 +74,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- name: Example
timeout-minutes: 30
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/selenium-cucumber-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- name: Run tests
timeout-minutes: 30
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/selenium-junit4-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- uses: axel-op/googlejavaformat-action@v4
with:
Expand All @@ -42,9 +42,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- name: Run JUnit 4 Tests
timeout-minutes: 30
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/selenium-junit5-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- uses: axel-op/googlejavaformat-action@v4
with:
Expand All @@ -45,9 +45,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- name: Run JUnit 5 tests
timeout-minutes: 30
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
steps:
- uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: 21
java-version: 25
distribution: "temurin"
- name: Run TestNG tests
timeout-minutes: 30
Expand Down
6 changes: 3 additions & 3 deletions appium-junit4-cucumber-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>7.34.6</version>
<version>8.0.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>7.34.6</version>
<version>8.0.4</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -43,7 +43,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
<version>3.16.0</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.source}</target>
Expand Down
4 changes: 2 additions & 2 deletions appium/android-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>6.1.2</version>
<version>6.1.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -35,7 +35,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.6</version>
<version>3.6.0</version>
<configuration>
<properties>
<configurationParameters>
Expand Down
6 changes: 3 additions & 3 deletions appium/appium-app/appium-app-best-practice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<testngXmlFile>myDemoTests.xml</testngXmlFile>
<testng.version>7.12.0</testng.version>
<appium.version>10.1.1</appium.version>
<selenium.version>4.46.0</selenium.version>
<selenium.version>4.50.0</selenium.version>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>
Expand Down Expand Up @@ -72,7 +72,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
<version>3.16.0</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.source}</target>
Expand All @@ -81,7 +81,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.6</version>
<version>3.6.0</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>${testngXmlDir}/${testngXmlFile}</suiteXmlFile>
Expand Down
17 changes: 11 additions & 6 deletions appium/appium-app/appium-app-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<version>1.0-SNAPSHOT</version>

<properties>
<maven.surefire.version>3.5.6</maven.surefire.version>
<maven.surefire.version>3.6.0</maven.surefire.version>
<appium.version>10.1.1</appium.version>
<selenium.version>4.46.0</selenium.version>
<selenium.version>4.50.0</selenium.version>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -82,7 +82,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
<version>3.16.0</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.source}</target>
Expand All @@ -93,9 +93,14 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.version}</version>
<configuration>
<parallel>all</parallel>
<threadCountMethods>30</threadCountMethods>
<useUnlimitedThreads>true</useUnlimitedThreads>
<properties>
<configurationParameters>
junit.vintage.execution.parallel.enabled = true
junit.vintage.execution.parallel.classes = true
junit.vintage.execution.parallel.methods = true
junit.vintage.execution.parallel.pool-size = 30
</configurationParameters>
</properties>
<redirectTestOutputToFile>false</redirectTestOutputToFile>
</configuration>
</plugin>
Expand Down
4 changes: 2 additions & 2 deletions appium/mobile-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>6.1.2</version>
<version>6.1.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -41,7 +41,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.6</version>
<version>3.6.0</version>
<configuration>
<properties>
<configurationParameters>
Expand Down
17 changes: 11 additions & 6 deletions best-practice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<name>Sauce Labs Best Practices</name>

<properties>
<selenium.version>4.46.0</selenium.version>
<selenium.version>4.50.0</selenium.version>
<appium.version>10.1.1</appium.version>
<sauce_junit4.version>1.5.0</sauce_junit4.version>
<maven.surefire.version>3.5.6</maven.surefire.version>
<maven.surefire.version>3.6.0</maven.surefire.version>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -51,7 +51,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
<version>3.16.0</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.source}</target>
Expand All @@ -62,9 +62,14 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.version}</version>
<configuration>
<parallel>methods</parallel>
<threadCountMethods>100</threadCountMethods>
<useUnlimitedThreads>true</useUnlimitedThreads>
<properties>
<configurationParameters>
junit.vintage.execution.parallel.enabled = true
junit.vintage.execution.parallel.classes = false
junit.vintage.execution.parallel.methods = true
junit.vintage.execution.parallel.pool-size = 100
</configurationParameters>
</properties>
<redirectTestOutputToFile>false</redirectTestOutputToFile>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.saucedemo.pages.LoginPage;
import com.saucedemo.pages.ProductsPage;
import java.net.MalformedURLException;
import java.time.Duration;
import java.util.Arrays;
import java.util.Collection;
import org.junit.Before;
Expand All @@ -16,7 +17,9 @@
import org.junit.runners.Parameterized;
import org.openqa.selenium.MutableCapabilities;
import org.openqa.selenium.TimeoutException;
import org.openqa.selenium.remote.HttpCommandExecutor;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.remote.http.ClientConfig;

/** Emulator / Simulator Web Tests. */
@RunWith(Parameterized.class)
Expand Down Expand Up @@ -75,7 +78,12 @@
capabilities.setCapability("sauce:options", sauceOptions);
// EmuSim devices have Simulator/Emulator in the name

driver = new RemoteWebDriver(Endpoints.getEmuSimHub(), capabilities);
// Simulators can take longer to start than Selenium's default 3-minute read timeout
ClientConfig clientConfig =
ClientConfig.defaultConfig()
.baseUrl(Endpoints.getEmuSimHub())
.readTimeout(Duration.ofMinutes(6));
driver = new RemoteWebDriver(new HttpCommandExecutor(clientConfig), capabilities);

Check warning on line 86 in best-practice/src/test/java/com/saucedemo/tests/EmuSimWebAppTests.java

View workflow job for this annotation

GitHub Actions / build

HttpCommandExecutor(org.openqa.selenium.remote.http.ClientConfig) in org.openqa.selenium.remote.HttpCommandExecutor has been deprecated and marked for removal
}

@Test
Expand Down
4 changes: 2 additions & 2 deletions playwright-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>6.1.2</version>
<version>6.1.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -42,7 +42,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.6</version>
<version>3.6.0</version>
<configuration>
<excludes>
<exclude>**/StandaloneTest.java</exclude>
Expand Down
Loading
Loading