Skip to content

Commit 5ac90bd

Browse files
updated due to security patches
1 parent 3ce9581 commit 5ac90bd

15 files changed

+24
-281
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ This sample project is designed to get you up and running within few simple step
77
Begin with installing the dependencies below, and continue with the Getting Started procedure below.
88

99
### Dependencies
10-
There are several prerequisite dependencies you should install on your machine prior to starting to work with this project:
10+
There are several prerequisite de pendencies you should install on your machine prior to starting to work with this project:
1111

12-
* [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
12+
* Java 11
1313

1414
* An IDE to write your tests on - [Eclipse](http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/marsr) or [IntelliJ](https://www.jetbrains.com/idea/download/#)
1515

pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
<properties>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16-
<maven.compiler.source>1.8</maven.compiler.source>
17-
<maven.compiler.target>1.8</maven.compiler.target>
16+
<maven.compiler.source>11</maven.compiler.source>
17+
<maven.compiler.target>11</maven.compiler.target>
1818
<reportium-sdk.version>RELEASE</reportium-sdk.version>
1919
<testngXmlFile>testng_perfecto.xml</testngXmlFile>
2020
</properties>
@@ -33,8 +33,8 @@
3333
<artifactId>maven-compiler-plugin</artifactId>
3434
<version>3.5.1</version>
3535
<configuration>
36-
<source>1.8</source>
37-
<target>1.8</target>
36+
<source>11</source>
37+
<target>11</target>
3838
<encoding>${project.build.sourceEncoding}</encoding>
3939
</configuration>
4040
</plugin>
@@ -121,7 +121,7 @@
121121
<dependency>
122122
<groupId>org.testng</groupId>
123123
<artifactId>testng</artifactId>
124-
<version>6.9.10</version>
124+
<version>7.7.0</version>
125125
</dependency>
126126

127127
<!-- Selenium support -->
@@ -177,17 +177,17 @@
177177
<dependency>
178178
<groupId>commons-io</groupId>
179179
<artifactId>commons-io</artifactId>
180-
<version>2.7</version>
180+
<version>[2.14.0,)</version>
181181
</dependency>
182182
<dependency>
183183
<groupId>ch.qos.logback</groupId>
184184
<artifactId>logback-classic</artifactId>
185-
<version>1.2.3</version>
185+
<version>1.2.13</version>
186186
</dependency>
187187
<dependency>
188188
<groupId>ch.qos.logback</groupId>
189189
<artifactId>logback-core</artifactId>
190-
<version>1.2.3</version>
190+
<version>1.2.13</version>
191191
</dependency>
192192
<dependency>
193193
<groupId>org.slf4j</groupId>
@@ -227,7 +227,7 @@
227227
<dependency>
228228
<groupId>org.json</groupId>
229229
<artifactId>json</artifactId>
230-
<version>20210307</version>
230+
<version>20240303</version>
231231
</dependency>
232232
<dependency>
233233
<groupId>com.perfecto.reporting-sdk</groupId>

src/main/java/com/perfecto/advanced/Audio_To_Text.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public void appiumTest() throws Exception {
5050
capabilities.setCapability("openDeviceTimeout", 2);
5151
capabilities.setCapability("appPackage", "com.android.settings");
5252
capabilities.setCapability("appActivity", "com.android.settings.Settings");
53+
capabilities.setCapability("automationName", "Appium");
5354
driver = (RemoteWebDriver) (new AppiumDriver<>(new URL("https://" + PerfectoLabUtils.fetchCloudName(cloudName)
5455
+ ".perfectomobile.com/nexperience/perfectomobile/wd/hub"), capabilities));
5556
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);

src/main/java/com/perfecto/advanced/PerfectoAppiumiOSTurnOffWifi.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public void appiumTest() throws Exception {
4040
capabilities.setCapability("enableAppiumBehavior", true);
4141
capabilities.setCapability("openDeviceTimeout", 2);
4242
capabilities.setCapability("bundleId", "com.apple.mobilesafari");
43+
capabilities.setCapability("automationName", "Appium");
4344
driver = (RemoteWebDriver)(new AppiumDriver<>(new URL("https://" + PerfectoLabUtils.fetchCloudName(cloudName) + ".perfectomobile.com/nexperience/perfectomobile/wd/hub"), capabilities));
4445
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
4546
reportiumClient = PerfectoLabUtils.setReportiumClient(driver, reportiumClient); //Creates reportiumClient

src/main/java/com/perfecto/advanced/Perfecto_OTP_Sample.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public void appiumAppTest() throws Exception {
4444
capabilities.setCapability("openDeviceTimeout", 4);
4545
capabilities.setCapability("appPackage", "com.samsung.android.messaging");
4646
capabilities.setCapability("autoLaunch",true);
47+
capabilities.setCapability("automationName", "Appium");
4748
driver = (RemoteWebDriver)(new AppiumDriver<>(new URL("https://" + PerfectoLabUtils.fetchCloudName(cloudName) + ".perfectomobile.com/nexperience/perfectomobile/wd/hub"), capabilities));
4849
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
4950

@@ -58,6 +59,7 @@ public void appiumAppTest() throws Exception {
5859
capabilities.setCapability("openDeviceTimeout", 4);
5960
capabilities.setCapability("bundleId", "com.apple.MobileSMS");
6061
capabilities.setCapability("autoLaunch",true);
62+
capabilities.setCapability("automationName", "Appium");
6163
driver2 = (RemoteWebDriver)(new AppiumDriver<>(new URL("https://" + PerfectoLabUtils.fetchCloudName(cloudName) + ".perfectomobile.com/nexperience/perfectomobile/wd/hub"), capabilities));
6264
driver2.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
6365
String phoneNumber = PerfectoLabUtils.getDevicePhoneNumber(driver2);

src/main/java/com/perfecto/advanced/Performance.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public void appiumAppTest() throws Exception {
4646
capabilities.setCapability("openDeviceTimeout", 15);
4747
capabilities.setCapability("appPackage", "com.samsung.android.messaging");
4848
capabilities.setCapability("autoLaunch", true);
49+
capabilities.setCapability("automationName", "Appium");
4950
driver = new RemoteWebDriver(new URL("https://" + PerfectoLabUtils.fetchCloudName(cloudName)
5051
+ ".perfectomobile.com/nexperience/perfectomobile/wd/hub"), capabilities);
5152
driver.manage().timeouts().implicitlyWait(120, TimeUnit.SECONDS);

src/main/java/com/perfecto/sampleproject/PerfectoAppium.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void appiumTest() throws Exception {
5151
capabilities.setCapability("autoLaunch", true); // Whether to install and launch the app automatically.
5252
capabilities.setCapability("takesScreenshot", false);
5353
capabilities.setCapability("screenshotOnError", true); // Take screenshot only on errors
54-
54+
capabilities.setCapability("automationName", "Appium");
5555
// The below capability is mandatory. Please do not replace it.
5656
capabilities.setCapability("securityToken", securityToken);
5757

src/main/java/com/perfecto/sampleproject/PerfectoAppiumCustomerApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void appiumTest() throws Exception {
4545
capabilities.setCapability("autoLaunch", true); // Whether to install and launch the app automatically.
4646
capabilities.setCapability("takesScreenshot", false);
4747
capabilities.setCapability("screenshotOnError", true); // Take screenshot only on errors
48-
48+
capabilities.setCapability("automationName", "Appium");
4949
// The below capability is mandatory. Please do not replace it.
5050
capabilities.setCapability("securityToken", securityToken);
5151

src/main/java/com/perfecto/sampleproject/PerfectoAppiumCustomerAppiOS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void appiumTest() throws Exception {
4444
capabilities.setCapability("autoLaunch", true); // Whether to install and launch the app automatically.
4545
capabilities.setCapability("takesScreenshot", false);
4646
capabilities.setCapability("screenshotOnError", true); // Take screenshot only on errors
47-
47+
capabilities.setCapability("automationName", "Appium");
4848
// The below capability is mandatory. Please do not replace it.
4949
capabilities.setCapability("securityToken", securityToken);
5050

src/main/java/com/perfecto/sampleproject/PerfectoAppiumiOS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void appiumTest() throws Exception {
5656
capabilities.setCapability("openDeviceTimeout", 5); // Waits for 5 minutes before device connection timeout
5757
capabilities.setCapability("iOSResign",true); // https://help.perfecto.io/perfecto-help/content/perfecto/manual-testing/re_sign_an_application___ios.htm?Highlight=resign%20developer%20certificate
5858
// capabilities.setCapability("fullReset", false); // Reset app state by uninstalling app.
59-
59+
capabilities.setCapability("automationName", "Appium");
6060
// The below capability is mandatory. Please do not replace it.
6161
capabilities.setCapability("securityToken", securityToken);
6262

0 commit comments

Comments
 (0)