Skip to content

Commit b1b74e7

Browse files
committed
fix gradle compile command
1 parent 3c52e31 commit b1b74e7

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Master branch contains **Selenium 3** samples, for **Selenium 4 - W3C protocol**
1919
- To run a single test, run `mvn test -P single`
2020
- To run local tests, run `mvn test -P local`
2121
- To run parallel tests, run `mvn test -P parallel`
22-
- To run the test suite, run `mvn test -P suite`
22+
- To run the test suite having cross-platform with parallelization, run `mvn test -P cross`
2323

2424
Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
2525

@@ -37,7 +37,7 @@ Master branch contains **Selenium 3** samples, for **Selenium 4 - W3C protocol**
3737
- To run a single test, run `gradle singleTest`
3838
- To run local tests, run `gradle localTest`
3939
- To run parallel tests, run `gradle parallelTest`
40-
- To run the test suite, run `gradle suiteTest`
40+
- To run the test suite having cross-platform with parallelization, run `gradle crossTest`
4141

4242
Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
4343

build.gradle

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ plugins {
55
repositories { mavenCentral() }
66

77
dependencies {
8-
compile 'org.testng:testng:6.9.10'
9-
compile 'commons-io:commons-io:1.3.2'
10-
compile 'org.seleniumhq.selenium:selenium-java:3.12.0'
11-
compile 'com.browserstack:browserstack-local-java:0.1.0'
12-
compile 'com.googlecode.json-simple:json-simple:1.1.1'
8+
implementation 'org.testng:testng:7.4.0'
9+
implementation 'commons-io:commons-io:1.3.2'
10+
implementation 'org.seleniumhq.selenium:selenium-java:3.141.59'
11+
implementation 'com.browserstack:browserstack-local-java:1.0.6'
12+
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
1313
}
1414

1515
group = 'com.browserstack'
@@ -52,3 +52,11 @@ task suiteTest(type: Test) {
5252
suites "config/suite.testng.xml"
5353
}
5454
}
55+
56+
task crossTest(type: Test) {
57+
useTestNG() {
58+
dependsOn cleanTest
59+
useDefaultListeners = true
60+
suites "config/cross.testng.xml"
61+
}
62+
}

0 commit comments

Comments
 (0)