Skip to content

Commit 8b00f55

Browse files
committed
Updated hub url for Real Device
1 parent 48167f3 commit 8b00f55

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/test/java/com/lambdatest/TestNGTodoMobile.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ public void setup(Method m, ITestContext ctx) throws MalformedURLException {
2323
String username = System.getenv("LT_USERNAME") == null ? "Your LT Username" : System.getenv("LT_USERNAME");
2424
String authkey = System.getenv("LT_ACCESS_KEY") == null ? "Your LT AccessKey" : System.getenv("LT_ACCESS_KEY");
2525
;
26-
String hub = "@hub.lambdatest.com/wd/hub";
26+
String hub = "@mobile-hub.lambdatest.com/wd/hub";
2727

2828
DesiredCapabilities caps = new DesiredCapabilities();
29-
caps.setCapability("deviceName", "Google Pixel 4a");
29+
caps.setCapability("platformName", "android");
30+
caps.setCapability("deviceName", "Pixel 4a");
31+
caps.setCapability("platformVersion", "11");
32+
caps.setCapability("isRealMobile", true);
3033
caps.setCapability("build", "TestNG With Java");
3134
caps.setCapability("name", m.getName() + this.getClass().getName());
3235
caps.setCapability("plugin", "git-testng");
33-
caps.setCapability("isRealMobile", true);
3436

3537
String[] Tags = new String[] { "Feature", "Tag", "Moderate" };
3638
caps.setCapability("tags", Tags);

0 commit comments

Comments
 (0)