Skip to content

Commit 043ef7f

Browse files
Merge pull request #108 from testdevlab/no_udid
admit no udid for remote execution
2 parents 60c3f81 + 0fa0e7a commit 043ef7f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/main/java/testUI/AndroidUtils/AndroidCapabilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private static void retrieveDevice(TestUIConfiguration configuration) {
119119
setDevice(Configuration.UDID, Configuration.androidDeviceName);
120120
} else if (!Configuration.UDID.isEmpty()) {
121121
setDevice(Configuration.UDID, Configuration.UDID);
122-
} else {
122+
} else if (Configuration.appiumUrl.isEmpty()) {
123123
throw new TestUIException("There is no device available to run the automation!");
124124
}
125125
}

src/main/java/testUI/IOSUtils/IOSTestUIDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected static void startFirstIOSDriver() {
3939
attachShutDownHookStopDriver(getDriver());
4040
return;
4141
} catch (Exception e) {
42-
putLogError("Could not create driver! retrying...");
42+
putLogError("Could not create driver! retrying...\n" + e.getMessage());
4343
sleep(500);
4444
if (i == 1) {
4545
throw new TestUIException(

src/test/java/TestRunners/TestAndroidLocal.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public void testAndroidBrowser() {
4242
public void testAndroidBrowser2() {
4343
Configuration.testUILogLevel = LogLevel.DEBUG;
4444
Configuration.appiumUrl = "http://localhost:4723/";
45-
Configuration.UDID = "emulator-5554";
4645
open("https://www.google.com");
4746
}
4847
}

0 commit comments

Comments
 (0)