|
15 | 15 | <maven.compiler.source>1.8</maven.compiler.source> |
16 | 16 | <maven.compiler.target>1.8</maven.compiler.target> |
17 | 17 | <cucumber.version>6.9.1</cucumber.version> |
| 18 | + <testng.version>7.4.0</testng.version> |
18 | 19 | <selenium-java.version>3.141.59</selenium-java.version> |
19 | 20 | <browserstack-local-java.version>1.0.6</browserstack-local-java.version> |
20 | 21 | <json-simple.version>1.1.1</json-simple.version> |
|
34 | 35 | <version>${slf4j.version}</version> |
35 | 36 | </dependency> |
36 | 37 |
|
| 38 | + <dependency> |
| 39 | + <groupId>org.testng</groupId> |
| 40 | + <artifactId>testng</artifactId> |
| 41 | + <version>${testng.version}</version> |
| 42 | + <scope>test</scope> |
| 43 | + </dependency> |
37 | 44 | <dependency> |
38 | 45 | <groupId>io.cucumber</groupId> |
39 | 46 | <artifactId>cucumber-java</artifactId> |
40 | 47 | <version>${cucumber.version}</version> |
41 | 48 | <scope>test</scope> |
42 | 49 | </dependency> |
| 50 | + <dependency> |
| 51 | + <groupId>io.cucumber</groupId> |
| 52 | + <artifactId>cucumber-testng</artifactId> |
| 53 | + <version>${cucumber.version}</version> |
| 54 | + <scope>test</scope> |
| 55 | + </dependency> |
43 | 56 | <dependency> |
44 | 57 | <groupId>org.seleniumhq.selenium</groupId> |
45 | 58 | <artifactId>selenium-java</artifactId> |
|
87 | 100 | <build> |
88 | 101 | <plugins> |
89 | 102 | <plugin> |
90 | | - <groupId>org.codehaus.mojo</groupId> |
91 | | - <artifactId>exec-maven-plugin</artifactId> |
92 | | - <version>3.0.0</version> |
| 103 | + <groupId>org.apache.maven.plugins</groupId> |
| 104 | + <artifactId>maven-surefire-plugin</artifactId> |
| 105 | + <version>3.0.0-M5</version> |
93 | 106 | <configuration> |
94 | | - <classpathScope>test</classpathScope> |
95 | | - <mainClass>com.browserstack.TestRunner</mainClass> |
96 | | - <cleanupDaemonThreads>false</cleanupDaemonThreads> |
97 | | - <systemProperties> |
98 | | - <property> |
99 | | - <key>cucumber.publish.quiet</key> |
100 | | - <value>true</value> |
101 | | - </property> |
102 | | - <property> |
103 | | - <key>cucumber.plugin</key> |
104 | | - <value>html:target/cucumber-html-reports.html</value> |
105 | | - </property> |
106 | | - <property> |
107 | | - <key>caps</key> |
108 | | - <value>src/test/resources/conf/single.conf.json</value> |
109 | | - </property> |
110 | | - <property> |
111 | | - <key>features</key> |
112 | | - <value>src/test/resources/features/test</value> |
113 | | - </property> |
114 | | - </systemProperties> |
| 107 | + <suiteXmlFiles> |
| 108 | + <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile> |
| 109 | + </suiteXmlFiles> |
| 110 | + <argLine> |
| 111 | + -Ddataproviderthreadcount=1 |
| 112 | + </argLine> |
| 113 | + <systemPropertyVariables> |
| 114 | + <caps>src/test/resources/conf/single.conf.json</caps> |
| 115 | + <cucumber.publish.quiet>true</cucumber.publish.quiet> |
| 116 | + <cucumber.features>src/test/resources/features/test</cucumber.features> |
| 117 | + </systemPropertyVariables> |
115 | 118 | </configuration> |
116 | 119 | </plugin> |
117 | 120 | </plugins> |
|
122 | 125 | <build> |
123 | 126 | <plugins> |
124 | 127 | <plugin> |
125 | | - <groupId>org.codehaus.mojo</groupId> |
126 | | - <artifactId>exec-maven-plugin</artifactId> |
127 | | - <version>3.0.0</version> |
| 128 | + <groupId>org.apache.maven.plugins</groupId> |
| 129 | + <artifactId>maven-surefire-plugin</artifactId> |
| 130 | + <version>3.0.0-M5</version> |
128 | 131 | <configuration> |
129 | | - <classpathScope>test</classpathScope> |
130 | | - <mainClass>com.browserstack.TestRunner</mainClass> |
131 | | - <cleanupDaemonThreads>false</cleanupDaemonThreads> |
132 | | - <systemProperties> |
| 132 | + <suiteXmlFiles> |
| 133 | + <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile> |
| 134 | + </suiteXmlFiles> |
| 135 | + <argLine> |
| 136 | + -Ddataproviderthreadcount=4 |
| 137 | + </argLine> |
| 138 | + <systemPropertyVariables> |
| 139 | + <caps>src/test/resources/conf/parallel.conf.json</caps> |
| 140 | + <cucumber.publish.quiet>true</cucumber.publish.quiet> |
| 141 | + <cucumber.features>src/test/resources/features/test</cucumber.features> |
| 142 | + </systemPropertyVariables> |
| 143 | + <properties> |
133 | 144 | <property> |
134 | | - <key>cucumber.publish.quiet</key> |
135 | | - <value>true</value> |
| 145 | + <name>parallel</name> |
| 146 | + <value>methods</value> |
136 | 147 | </property> |
137 | | - <property> |
138 | | - <key>cucumber.plugin</key> |
139 | | - <value>html:target/cucumber-html-reports.html</value> |
140 | | - </property> |
141 | | - <property> |
142 | | - <key>caps</key> |
143 | | - <value>src/test/resources/conf/parallel.conf.json</value> |
144 | | - </property> |
145 | | - <property> |
146 | | - <key>parallel-count</key> |
147 | | - <value>3</value> |
148 | | - </property> |
149 | | - <property> |
150 | | - <key>features</key> |
151 | | - <value>src/test/resources/features/test</value> |
152 | | - </property> |
153 | | - </systemProperties> |
| 148 | + </properties> |
154 | 149 | </configuration> |
155 | 150 | </plugin> |
156 | 151 | </plugins> |
|
161 | 156 | <build> |
162 | 157 | <plugins> |
163 | 158 | <plugin> |
164 | | - <groupId>org.codehaus.mojo</groupId> |
165 | | - <artifactId>exec-maven-plugin</artifactId> |
166 | | - <version>3.0.0</version> |
| 159 | + <groupId>org.apache.maven.plugins</groupId> |
| 160 | + <artifactId>maven-surefire-plugin</artifactId> |
| 161 | + <version>3.0.0-M5</version> |
167 | 162 | <configuration> |
168 | | - <classpathScope>test</classpathScope> |
169 | | - <mainClass>com.browserstack.TestRunner</mainClass> |
170 | | - <cleanupDaemonThreads>false</cleanupDaemonThreads> |
171 | | - <systemProperties> |
172 | | - <property> |
173 | | - <key>cucumber.publish.quiet</key> |
174 | | - <value>true</value> |
175 | | - </property> |
176 | | - <property> |
177 | | - <key>cucumber.plugin</key> |
178 | | - <value>html:target/cucumber-html-reports.html</value> |
179 | | - </property> |
180 | | - <property> |
181 | | - <key>caps</key> |
182 | | - <value>src/test/resources/conf/local.conf.json</value> |
183 | | - </property> |
184 | | - <property> |
185 | | - <key>features</key> |
186 | | - <value>src/test/resources/features/localtest</value> |
187 | | - </property> |
188 | | - </systemProperties> |
| 163 | + <suiteXmlFiles> |
| 164 | + <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile> |
| 165 | + </suiteXmlFiles> |
| 166 | + <argLine> |
| 167 | + -Ddataproviderthreadcount=1 |
| 168 | + </argLine> |
| 169 | + <systemPropertyVariables> |
| 170 | + <caps>src/test/resources/conf/local.conf.json</caps> |
| 171 | + <cucumber.publish.quiet>true</cucumber.publish.quiet> |
| 172 | + <cucumber.features>src/test/resources/features/localtest</cucumber.features> |
| 173 | + </systemPropertyVariables> |
189 | 174 | </configuration> |
190 | 175 | </plugin> |
191 | 176 | </plugins> |
|
0 commit comments