Skip to content

Commit daa7699

Browse files
authored
Merge pull request #19 from aquality-automation/add_possibility_to_set_number_of_threads_for_parallel_run
Add possibility to set number of threads for parallel run
2 parents 9f84ff1 + 2170801 commit daa7699

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Template for [aquality-selenium-java](https://github.com/aquality-automation/aqu
2727
Scenarios from feature files can be executed with TestNG plugin for IDE (Intellij Idea, Eclipse)
2828
or with Maven command ```mvn clean test``` where you can specify all necessary arguments.
2929

30+
If executed with Maven, tests will be run in ```4``` threads. To change the amount of threads add ```-Ddata.provider.thread.count``` property to the command.
31+
E.g. ```mvn clean test -Ddata.provider.thread.count=10```.
32+
3033
### Reporting
3134
Allure Framework is used as a reporting tool. Report data will be placed in ```target/allure-results/``` folder (you can change it in ```allure.properties``` file).
3235

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
<properties>
2626
<aspectj.version>1.8.10</aspectj.version>
27+
<data.provider.thread.count>4</data.provider.thread.count>
2728
</properties>
2829

2930
<dependencies>
@@ -77,6 +78,12 @@
7778
<argLine>
7879
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
7980
</argLine>
81+
<properties>
82+
<property>
83+
<name>dataproviderthreadcount</name>
84+
<value>${data.provider.thread.count}</value>
85+
</property>
86+
</properties>
8087
</configuration>
8188

8289
<dependencies>

0 commit comments

Comments
 (0)