Skip to content

Commit 0185159

Browse files
author
Tejas Shah
committed
update condition | remove realMobile, automationName cap
1 parent e9d6d04 commit 0185159

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

android/src/test/resources/conf/single.conf.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"build": "junit-browserstack",
88
"name": "single_appium_test",
99
"browserstack.debug": true,
10-
"realMobile": true,
1110
"app": "bs://<hashed app-id>"
1211
},
1312

ios/src/test/java/com/browserstack/SingleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void test() throws Exception {
3131
String matchedString = "";
3232
for(IOSElement textElement : textElements) {
3333
String textContent = textElement.getText();
34-
if(textContent.contains("not registered")) {
34+
if(textContent != null && textContent.contains("not registered")) {
3535
matchedString = textContent;
3636
}
3737
}

ios/src/test/resources/conf/single.conf.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
"build": "junit-browserstack",
88
"name": "single_appium_test",
99
"browserstack.debug": true,
10-
"realMobile": true,
11-
"app": "bs://<hashed app-id>",
12-
"automationName": "XCUITest"
10+
"app": "bs://<hashed app-id>"
1311
},
1412

1513
"environments": [{

0 commit comments

Comments
 (0)