diff --git a/config/parallel.testng.xml b/config/parallel.testng.xml index 24c4721..65ad743 100644 --- a/config/parallel.testng.xml +++ b/config/parallel.testng.xml @@ -1,6 +1,6 @@ - + diff --git a/config/suite.testng.xml b/config/suite.testng.xml index 365fdba..2c4a61b 100644 --- a/config/suite.testng.xml +++ b/config/suite.testng.xml @@ -1,7 +1,7 @@ - + @@ -18,7 +18,7 @@ - + diff --git a/pom.xml b/pom.xml index 96dc165..f05c140 100644 --- a/pom.xml +++ b/pom.xml @@ -12,8 +12,8 @@ UTF-8 - 1.6 - 1.6 + 1.7 + 1.7 2.19.1 @@ -54,6 +54,22 @@ org.apache.maven.plugins maven-surefire-plugin 2.18.1 + + methods + 20 + + config/single.testng.xml + config/local.testng.xml + config/parallel.testng.xml + config/suite.testng.xml + + + + suitethreadpoolsize + 5 + + + diff --git a/src/test/java/com/browserstack/BrowserStackTestNGTest.java b/src/test/java/com/browserstack/BrowserStackTestNGTest.java index 81682b3..50d2f75 100644 --- a/src/test/java/com/browserstack/BrowserStackTestNGTest.java +++ b/src/test/java/com/browserstack/BrowserStackTestNGTest.java @@ -55,6 +55,8 @@ public void setUp(String config_file, String environment) throws Exception { if (accessKey == null) { accessKey = (String) config.get("key"); } + String buildName = System.getenv("BROWSERSTACK_BUILD_NAME"); + capabilities.setCapability("build", buildName); if (capabilities.getCapability("browserstack.local") != null && capabilities.getCapability("browserstack.local") == "true") {