Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amend Appium version to 9.0.0 #162

Merged
merged 2 commits into from
Nov 19, 2023
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/best-practice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
- name: Run tests
continue-on-error: true
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mac-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
os: [windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
- name: Run tests
continue-on-error: true
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/real-devices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
- name: RDC Native App Android
run: mvn test -pl appium/appium-app/appium-app-examples -Dtest=AndroidNativeAppTest -Dregion=eu -X
- name: RDC Native App IOS
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 @@ -16,10 +16,10 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
- name: Run tests
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
- name: Run testng tests
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
Expand Down
12 changes: 12 additions & 0 deletions appium-junit4-cucumber-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<properties>
<appium.version>9.0.0</appium.version>
</properties>

<artifactId>appium-junit4-cucumber-examples</artifactId>
<dependencies>
<!-- Appium dependency is in project level POM.xml -->
Expand All @@ -26,5 +30,13 @@
<version>7.3.3</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>${appium.version}</version>
<scope>test</scope>
</dependency>

</dependencies>
</project>
34 changes: 33 additions & 1 deletion appium/appium-app/appium-app-best-practice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
<testngXmlDir>src/test/resources/config</testngXmlDir>
<testngXmlFile>myDemoTests.xml</testngXmlFile>
<testng.version>7.5</testng.version>
<appium.version>8.3.0</appium.version>
<appium.version>9.0.0</appium.version>
<selenium.version>4.14.1</selenium.version>
</properties>

<dependencies>
Expand All @@ -32,12 +33,43 @@
<version>3.10.0</version>
</dependency>


<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>${appium.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
</exclusion>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-support</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-support</artifactId>
<version>${selenium.version}</version>
</dependency>

</dependencies>

<build>
Expand Down
34 changes: 33 additions & 1 deletion appium/appium-app/appium-app-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

<properties>
<maven.surefire.version>3.0.0-M5</maven.surefire.version>
<appium.version>8.6.0</appium.version>
<appium.version>9.0.0</appium.version>
<selenium.version>4.14.1</selenium.version>
</properties>

<!-- You will find Junit and Appium configration in the project level pom.xml -->
Expand All @@ -33,13 +34,44 @@
<version>3.10.0</version>
</dependency>


<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>${appium.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
</exclusion>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-support</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-support</artifactId>
<version>${selenium.version}</version>
</dependency>


</dependencies>
<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void upgradeAppInMidSession() throws MalformedURLException {
navigateToAbout();

// Install a new version
var results = driver.executeScript("mobile:installApp", ImmutableMap.of("appPath", "storage:filename=mda-1.0.17-20.apk"));
Object results = driver.executeScript("mobile:installApp", ImmutableMap.of("appPath", "storage:filename=mda-1.0.17-20.apk"));
System.out.println(results);

// Launch the new app
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.examples.up_download_file;

import com.google.common.collect.ImmutableMap;
import io.appium.java_client.android.Activity;
import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.By;
Expand All @@ -24,8 +25,10 @@ public SamsungGallery(AndroidDriver driver) {
}

public void open() {
driver.startActivity(new Activity("com.sec.android.gallery3d", "com.samsung.android.gallery.app.activity.GalleryActivity"));

driver.executeScript("mobile: startActivity", ImmutableMap.of(
"appPackage", "com.sec.android.gallery3d",
"appActivity", "com.samsung.android.gallery.app.activity.GalleryActivity"
));
}

public void openPhoto(String which){
Expand Down
32 changes: 31 additions & 1 deletion appium/appium-web/appium-web-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

<properties>
<maven.surefire.version>3.0.0-M5</maven.surefire.version>
<appium.version>8.3.0</appium.version>
<appium.version>9.0.0</appium.version>
<selenium.version>4.14.1</selenium.version>
</properties>

<!-- You will find Junit and Appium configration in the project level pom.xml -->
Expand All @@ -38,6 +39,35 @@
<artifactId>java-client</artifactId>
<version>${appium.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
</exclusion>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-support</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-support</artifactId>
<version>${selenium.version}</version>
</dependency>

</dependencies>
Expand Down
10 changes: 9 additions & 1 deletion best-practice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<artifactId>best-practice</artifactId>

<properties>
<selenium.version>4.10.0</selenium.version>
<selenium.version>4.14.1</selenium.version>
<appium.version>9.0.0</appium.version>
</properties>

<dependencies>
Expand All @@ -35,6 +36,13 @@
<version>${selenium.version}</version>
</dependency>

<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>${appium.version}</version>
<scope>test</scope>
</dependency>

</dependencies>

<build>
Expand Down
14 changes: 13 additions & 1 deletion gitpod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

<artifactId>gitpod</artifactId>

<properties>
<maven.surefire.version>3.0.0-M5</maven.surefire.version>
<appium.version>9.0.0</appium.version>
<selenium.version>4.14.1</selenium.version>
</properties>

<dependencies>
<dependency>
<groupId>com.saucelabs</groupId>
Expand All @@ -21,7 +27,13 @@
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.11.0</version>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>${appium.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

Expand Down
10 changes: 1 addition & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
<version>1.0-SNAPSHOT</version>

<properties>
<selenium.version>4.10.0</selenium.version>
<appium.version>8.3.0</appium.version>
<selenium.version>4.14.1</selenium.version>
<sauce.version>1.2.0</sauce.version>
<sauce_junit5.version>1.0.0</sauce_junit5.version>
<sauce_junit4.version>1.0.1</sauce_junit4.version>
Expand Down Expand Up @@ -43,13 +42,6 @@
<version>${selenium.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>${appium.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<defaultGoal>test</defaultGoal>
Expand Down
Loading