File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
android/src/test/java/com/browserstack
ios/src/test/java/com/browserstack Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments