Skip to content

Commit 6a47b27

Browse files
committed
java 10 and selenium 3
Signed-off-by: Varun Garg <[email protected]>
1 parent 8e008b9 commit 6a47b27

File tree

6 files changed

+45
-48
lines changed

6 files changed

+45
-48
lines changed

pom.xml

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

55
<groupId>com.browserstack</groupId>
@@ -12,38 +12,40 @@
1212

1313
<properties>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
<maven.compiler.source>1.6</maven.compiler.source>
16+
<maven.compiler.target>1.6</maven.compiler.target>
1517
<surefire.version>2.19.1</surefire.version>
1618

1719
<test.file></test.file>
1820
<config.file>default</config.file>
1921
</properties>
2022

2123
<dependencies>
22-
<dependency>
23-
<groupId>org.testng</groupId>
24-
<artifactId>testng</artifactId>
25-
<version>6.9.10</version>
26-
</dependency>
27-
<dependency>
28-
<groupId>commons-io</groupId>
29-
<artifactId>commons-io</artifactId>
30-
<version>1.3.2</version>
31-
</dependency>
32-
<dependency>
33-
<groupId>org.seleniumhq.selenium</groupId>
34-
<artifactId>selenium-java</artifactId>
35-
<version>2.52.0</version>
36-
</dependency>
37-
<dependency>
38-
<groupId>com.browserstack</groupId>
39-
<artifactId>browserstack-local-java</artifactId>
40-
<version>0.1.0</version>
41-
</dependency>
42-
<dependency>
43-
<groupId>com.googlecode.json-simple</groupId>
44-
<artifactId>json-simple</artifactId>
45-
<version>1.1.1</version>
46-
</dependency>
24+
<dependency>
25+
<groupId>org.testng</groupId>
26+
<artifactId>testng</artifactId>
27+
<version>6.9.10</version>
28+
</dependency>
29+
<dependency>
30+
<groupId>commons-io</groupId>
31+
<artifactId>commons-io</artifactId>
32+
<version>1.3.2</version>
33+
</dependency>
34+
<dependency>
35+
<groupId>org.seleniumhq.selenium</groupId>
36+
<artifactId>selenium-java</artifactId>
37+
<version>3.12.0</version>
38+
</dependency>
39+
<dependency>
40+
<groupId>com.browserstack</groupId>
41+
<artifactId>browserstack-local-java</artifactId>
42+
<version>0.1.0</version>
43+
</dependency>
44+
<dependency>
45+
<groupId>com.googlecode.json-simple</groupId>
46+
<artifactId>json-simple</artifactId>
47+
<version>1.1.1</version>
48+
</dependency>
4749
</dependencies>
4850

4951
<build>

src/test/java/com/browserstack/BrowserStackTestNGTest.java

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,20 @@
11
package com.browserstack;
2-
import com.browserstack.local.Local;
32

4-
import java.io.File;
53
import java.io.FileReader;
6-
import java.io.IOException;
7-
import java.io.InputStream;
84
import java.net.URL;
95
import java.util.HashMap;
10-
import java.util.Map;
11-
import java.util.ArrayList;
12-
import java.util.List;
136
import java.util.Iterator;
7+
import java.util.Map;
8+
9+
import com.browserstack.local.Local;
10+
1411
import org.json.simple.JSONObject;
15-
import org.json.simple.JSONArray;
1612
import org.json.simple.parser.JSONParser;
17-
1813
import org.openqa.selenium.WebDriver;
19-
import org.openqa.selenium.remote.RemoteWebDriver;
2014
import org.openqa.selenium.remote.DesiredCapabilities;
21-
22-
import org.testng.annotations.BeforeMethod;
15+
import org.openqa.selenium.remote.RemoteWebDriver;
2316
import org.testng.annotations.AfterMethod;
24-
import org.testng.annotations.Test;
25-
import org.testng.annotations.Parameters;
26-
import org.testng.annotations.DataProvider;
27-
import org.testng.annotations.Factory;
28-
import org.testng.Assert;
17+
import org.testng.annotations.BeforeMethod;
2918

3019

3120
public class BrowserStackTestNGTest {

src/test/resources/conf/local.conf.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "testng-browserstack",
88
"name": "local_test",
99
"browserstack.debug": true,
10-
"browserstack.local": true
10+
"browserstack.local": true,
11+
"browserstack.selenium_version": "3.12.0"
1112
},
1213

1314
"environments": {

src/test/resources/conf/parallel.conf.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"capabilities": {
77
"build": "testng-browserstack",
88
"name": "parallel_test",
9-
"browserstack.debug": true
9+
"browserstack.debug": true,
10+
"browserstack.selenium_version": "3.12.0"
1011
},
1112

1213
"environments": {
@@ -17,6 +18,7 @@
1718
"browser": "firefox"
1819
},
1920
"safari": {
21+
"os": "OS X",
2022
"browser": "safari"
2123
},
2224
"ie": {

src/test/resources/conf/single.conf.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"capabilities": {
77
"build": "testng-browserstack",
88
"name": "single_test",
9-
"browserstack.debug": true
9+
"browserstack.debug": true,
10+
"browserstack.selenium_version": "3.12.0"
1011
},
1112

1213
"environments": {

src/test/resources/conf/suite.conf.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"capabilities": {
77
"build": "testng-browserstack",
88
"name": "suite_test",
9-
"browserstack.debug": true
9+
"browserstack.debug": true,
10+
"browserstack.selenium_version": "3.12.0"
1011
},
1112

1213
"environments": {
@@ -17,6 +18,7 @@
1718
"browser": "firefox"
1819
},
1920
"safari": {
21+
"os": "OS X",
2022
"browser": "safari"
2123
},
2224
"ie": {

0 commit comments

Comments
 (0)