Skip to content

Commit fbc2346

Browse files
committed
Sample Tests
1 parent eee15e9 commit fbc2346

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>1.0.0</modelVersion>
4+
<modelVersion>4.0.0</modelVersion>
55
<artifactId>lambdatest-TestNG-project</artifactId>
66
<groupId>com.lambdatest</groupId>
77
<version>1.0-SNAPSHOT</version>

src/test/java/com/lambdatest/Tests/ParallelTest.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public void tearDown(ITestResult result) throws Exception {
6161
((JavascriptExecutor) webDriver.get()).executeScript("lambda-status="
6262
+ (result.isSuccess() ? "passed" : "failed"));
6363
webDriver.get().quit();
64+
Thread.sleep(10000);
6465
}
6566

6667

@@ -69,10 +70,10 @@ public void tearDown(ITestResult result) throws Exception {
6970

7071
@DataProvider(name = "browsersDetails", parallel = true)
7172
public static Object[][] ltBrowserDataProvider(Method testMethod) {
72-
return new Object[][] { new Object[] { "MicrosoftEdge", "16.0", "WIN10" },
73-
new Object[] { "firefox", "60.0", "WIN10" }, new Object[] { "internet explorer", "11.0", "WIN7" },
74-
new Object[] { "chrome", "60.0", "OS X 10.11" }, new Object[] { "chrome", "70.0", "macOS 10.13" },
75-
new Object[] { "firefox", "60.0", "WIN7" }, };
73+
return new Object[][] {
74+
new Object[] { "internet explorer", "11.0", "Windows 8.1" },
75+
new Object[] { "chrome", "60.0", "Windows 8.1" },
76+
new Object[] { "firefox", "60.0", "Windows 8.1" }, };
7677
}
7778

7879
public WebDriver getWebDriver() {
@@ -89,13 +90,15 @@ protected void setUp(String browser, String version, String os, String methodNam
8990
capabilities.setCapability(CapabilityType.VERSION, version);
9091
capabilities.setCapability(CapabilityType.PLATFORM, os);
9192
capabilities.setCapability("name", methodName);
92-
capabilities.setCapability("build", "TestNG Parallel Test");
93+
capabilities.setCapability("build", "10.33.13.34");
9394
capabilities.setCapability("name", "TestNG Parallel");
9495
capabilities.setCapability("screen_resolution", "1024x768");
9596
capabilities.setCapability("network", true);
9697
capabilities.setCapability("video", true);
9798
capabilities.setCapability("console", true);
9899
capabilities.setCapability("visual", true);
100+
capabilities.setCapability("fixedIP", "10.33.13.34");
101+
System.out.println("capabilities"+capabilities);
99102

100103
String username = Configuration.readConfig("LambdaTest_UserName");
101104
String accesskey = Configuration.readConfig("LambdaTest_AppKey");

0 commit comments

Comments
 (0)