Skip to content

Commit b193d76

Browse files
authored
Merge pull request #45 from kamal-kaur04/change-profile-names
modified profile name in pom.xml and readme
2 parents 9195e18 + e745b18 commit b193d76

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Master branch contains **Selenium 3** samples, for **Selenium 4 - W3C protocol**
1616

1717
### Running your tests
1818

19-
- To run local tests, run `mvn test -P local`
20-
- To run the test suite having cross-platform with parallelization, run `mvn test -P parallel`
19+
- To run local tests, run `mvn test -P sample-local-test`
20+
- To run the test suite having cross-platform with parallelization, run `mvn test -P sample-test`
2121

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

@@ -32,8 +32,8 @@ Master branch contains **Selenium 3** samples, for **Selenium 4 - W3C protocol**
3232

3333
### Running your tests
3434

35-
- To run local tests, run `gradle localTest`
36-
- To run the test suite having cross-platform with parallelization, run `gradle parallelTest`
35+
- To run local tests, run `gradle sampleLocalTest`
36+
- To run the test suite having cross-platform with parallelization, run `gradle sampleTest`
3737

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

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ tasks.withType(JavaCompile) {
2121
options.encoding = 'UTF-8'
2222
}
2323

24-
task parallelTest(type: Test) {
24+
task sampleTest(type: Test) {
2525
useTestNG() {
2626
dependsOn cleanTest
2727
useDefaultListeners = true
28-
suites "config/parallel.testng.xml"
28+
suites "config/sample-test.testng.xml"
2929
}
3030
}
3131

32-
task localTest(type: Test) {
32+
task sampleLocalTest(type: Test) {
3333
useTestNG() {
3434
dependsOn cleanTest
3535
useDefaultListeners = true
36-
suites "config/local.testng.xml"
36+
suites "config/sample-local-test.testng.xml"
3737
}
3838
}
File renamed without changes.
File renamed without changes.

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<selenium.version>3.141.59</selenium.version>
2020
<json-simple.version>1.1.1</json-simple.version>
2121
<browserstack-local-java.version>1.0.6</browserstack-local-java.version>
22-
<config.file>config/local.testng.xml</config.file>
22+
<config.file>config/sample-local-test.testng.xml</config.file>
2323
</properties>
2424

2525
<dependencies>
@@ -75,15 +75,15 @@
7575

7676
<profiles>
7777
<profile>
78-
<id>local</id>
78+
<id>sample-local-test</id>
7979
<build>
8080
<plugins>
8181
<plugin>
8282
<groupId>org.apache.maven.plugins</groupId>
8383
<artifactId>maven-surefire-plugin</artifactId>
8484
<configuration>
8585
<suiteXmlFiles>
86-
<suiteXmlFile>config/local.testng.xml</suiteXmlFile>
86+
<suiteXmlFile>config/sample-local-test.testng.xml</suiteXmlFile>
8787
</suiteXmlFiles>
8888
</configuration>
8989
</plugin>
@@ -92,15 +92,15 @@
9292
</profile>
9393

9494
<profile>
95-
<id>parallel</id>
95+
<id>sample-test</id>
9696
<build>
9797
<plugins>
9898
<plugin>
9999
<groupId>org.apache.maven.plugins</groupId>
100100
<artifactId>maven-surefire-plugin</artifactId>
101101
<configuration>
102102
<suiteXmlFiles>
103-
<suiteXmlFile>config/parallel.testng.xml</suiteXmlFile>
103+
<suiteXmlFile>config/sample-test.testng.xml</suiteXmlFile>
104104
</suiteXmlFiles>
105105
</configuration>
106106
</plugin>

0 commit comments

Comments
 (0)