-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
320 lines (313 loc) · 10.9 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.applitools.eyes.selenium</groupId>
<artifactId>eyes-cucumber-examples</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>eyes-cucumber-examples</name>
<description>Example Applitools Eyes Selenium Java Tests for Cucumber</description>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<eyes.version>5.65.0</eyes.version>
<testng.version>7.8.0</testng.version>
<cucumber.version>7.11.0</cucumber.version>
<cucumber.filter.tags>@all</cucumber.filter.tags>
<slf4j.version>2.0.6</slf4j.version>
<apache.commons.version>3.12.0</apache.commons.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- Set this to where Chromedriver is installed on your system! -->
<webdriver.chrome.driver>/opt/homebrew/bin/chromedriver</webdriver.chrome.driver>
<webdriver.chrome.headless>false</webdriver.chrome.headless>
<applitools.api.disabled>false</applitools.api.disabled>
</properties>
<dependencies>
<dependency>
<groupId>com.applitools</groupId>
<artifactId>eyes-selenium-java5</artifactId>
<version>${eyes.version}</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng.version}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${cucumber.version}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${cucumber.version}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>${cucumber.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${apache.commons.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>everything</id>
<properties>
<cucumber.filter.tags></cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>some</id>
<properties>
<cucumber.filter.tags>@some</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>notsome</id>
<properties>
<cucumber.filter.tags>@all and not @some and not @web</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>web</id>
<properties>
<cucumber.filter.tags>@web</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>eyes</id>
<properties>
<cucumber.filter.tags>@web and @eyes</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>formauth</id>
<properties>
<cucumber.filter.tags>@formauth</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>dropdowns</id>
<properties>
<cucumber.filter.tags>@dropdowns</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>hovers</id>
<properties>
<cucumber.filter.tags>@hovers</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>shifting</id>
<properties>
<cucumber.filter.tags>@shifting</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>shiftinglist</id>
<properties>
<cucumber.filter.tags>@shiftinglist</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>shiftingimage</id>
<properties>
<cucumber.filter.tags>@shiftingimage</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>shiftingmenus</id>
<properties>
<cucumber.filter.tags>@shiftingmenus</cucumber.filter.tags>
</properties>
</profile>
<profile>
<id>disabled</id>
<properties>
<applitools.api.disabled>true</applitools.api.disabled>
</properties>
</profile>
<profile>
<id>headless</id>
<properties>
<webdriver.chrome.headless>true</webdriver.chrome.headless>
</properties>
</profile>
<profile>
<id>eyesbasic</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>ApplitoolsEyesBasicTest.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>eyestestng</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/testng/eyes-test.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>eyesufg</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/testng/eyes-ufg-test.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>runheroku</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>RunHerokuInternetTests.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>runexample</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>RunExampleTests.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M8</version>
<!--
The Maven Surefire Plugin will run all the tests within your project's src/test/java
folder with filenames matching one of its default inclusion patterns, which includes
the RunCucumberTests.java file. The Runner will then test your Cucumber features.
See: https://maven.apache.org/surefire/maven-surefire-plugin/index.html
The Maven Surefile Plugin documentation describes its supported options for TestNG.
See: https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html
-->
<configuration>
<!--
Setting the parallel configuration to "methods" tells Surefire to run each
invocation of TestNG's test methods in parallel. The TestNG Runner class takes
the name of each Cucumber Scenario as a parameter from the DataProvider set by
the annotation on its scenarios method. This effectively runs your project's
Cucumber Scenarios in parallel with the confirguations below.
-->
<parallel>methods</parallel>
<!--
Set the useUnlimitedThreads configuration to "true" to run as many parallel
tests as your JVM will allow. The default is "false"
Set the threadCount configuration to an integer to specify the maximum number of
parallel tests to run at the same time. The default is 10.
-->
<!-- <useUnlimitedThreads>true</useUnlimitedThreads> -->
<threadCount>3</threadCount>
<testFailureIgnore>true</testFailureIgnore>
<systemPropertyVariables>
<cucumber.filter.tags>${cucumber.filter.tags}</cucumber.filter.tags>
<webdriver.chrome.driver>${webdriver.chrome.driver}</webdriver.chrome.driver>
<webdriver.chrome.headless>${webdriver.chrome.headless}</webdriver.chrome.headless>
<applitools.api.disabled>${applitools.api.disabled}</applitools.api.disabled>
</systemPropertyVariables>
<properties>
<property>
<!-- Controls TestNG's verbosity on a scale of 1 to 10
0 is least detailed,
10 is most detailed,
-1 is debug mode for preserving stack traces and debug logging. -->
<name>surefire.testng.verbose</name>
<value>-1</value>
</property>
</properties>
</configuration>
</plugin>
<!--
The Maven Failsafe Plugin will run all the tests within your project's src/test/java
folder with filenames matching one of its default inclusion patterns. Change the
RunCucumberTests.java file and class name to RunCucumberIT and uncomment the plugin
declaration below in order to run your tests with Filsafe instead of Surefile.
See: https://maven.apache.org/surefire/maven-failsafe-plugin/index.html
The Maven Failsafe Plugin documentation describes its supported options for TestNG.
See: https://maven.apache.org/surefire/maven-failsafe-plugin/examples/testng.html
-->
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.0</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<parallel>methods</parallel>
<useUnlimitedThreads>true</useUnlimitedThreads>
</configuration>
</execution>
</executions>
</plugin>
-->
</plugins>
</build>
</project>