Skip to content

Commit 0606303

Browse files
authored
Merge pull request #13 from raghuhit/jenkins_changes
Jenkins changes
2 parents 6587b5e + 33097ef commit 0606303

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

android/src/test/java/com/browserstack/BrowserStackJUnitTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ public void setUp() throws Exception {
8181
if(accessKey == null) {
8282
accessKey = (String) config.get("key");
8383
}
84+
85+
String app = System.getenv("BROWSERSTACK_APP_ID");
86+
if(app != null && !app.isEmpty()) {
87+
capabilities.setCapability("app", app);
88+
}
8489

8590
if(capabilities.getCapability("browserstack.local") != null && capabilities.getCapability("browserstack.local") == "true"){
8691
l = new Local();

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ public void setUp() throws Exception {
8282
if(accessKey == null) {
8383
accessKey = (String) config.get("key");
8484
}
85+
86+
String app = System.getenv("BROWSERSTACK_APP_ID");
87+
if(app != null && !app.isEmpty()) {
88+
capabilities.setCapability("app", app);
89+
}
8590

8691
if(capabilities.getCapability("browserstack.local") != null && capabilities.getCapability("browserstack.local") == "true"){
8792
l = new Local();

0 commit comments

Comments
 (0)