File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed
android/junit4-examples/src/test/java/com/browserstack/run_parallel_test
ios/junit4-examples/src/test/java/com/browserstack/run_parallel_test Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change 11package com .browserstack .run_parallel_test ;
22
3- import com .browserstack .local .Local ;
4-
53import java .net .URL ;
64import java .util .Map ;
75import java .util .List ;
2826@ RunWith (Parallelized .class )
2927public class BrowserStackJUnitTest {
3028 public AndroidDriver <AndroidElement > driver ;
31- private Local l ;
3229
3330 private static JSONObject config ;
3431
@@ -87,19 +84,11 @@ public void setUp() throws Exception {
8784 capabilities .setCapability ("app" , app );
8885 }
8986
90- if (capabilities .getCapability ("browserstack.local" ) != null && capabilities .getCapability ("browserstack.local" ) == "true" ) {
91- l = new Local ();
92- Map <String , String > options = new HashMap <String , String >();
93- options .put ("key" , accessKey );
94- l .start (options );
95- }
96-
9787 driver = new AndroidDriver (new URL ("http://" + username + ":" + accessKey + "@" + config .get ("server" ) + "/wd/hub" ), capabilities );
9888 }
9989
10090 @ After
10191 public void tearDown () throws Exception {
10292 driver .quit ();
103- if (l != null ) l .stop ();
10493 }
10594}
Original file line number Diff line number Diff line change 11package com .browserstack .run_parallel_test ;
22
3- import com .browserstack .local .Local ;
4-
53import java .net .URL ;
64import java .util .Map ;
75import java .util .List ;
You can’t perform that action at this time.
0 commit comments