This repository was archived by the owner on Nov 17, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpom.xml
491 lines (464 loc) · 23.6 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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
<?xml version="1.0" encoding="UTF-8"?>
<!-- JBoss, Home of Professional Open Source Copyright 2010-2016, Red Hat, Inc. and individual contributors by the @authors tag.
See the copyright.txt in the distribution for a full listing of individual contributors. This is free software; you can redistribute
it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version. This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this
software; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the
FSF site: http://www.fsf.org. -->
<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 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
<version>4.5.18-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>metamer-ftest</artifactId>
<name>RichFaces Metamer Ftest</name>
<properties>
<statelessViews>false</statelessViews>
<!-- arquillian properties -->
<!-- default values according to http://docs.oracle.com/javase/7/docs/technotes/guides/net/ipv6_guide/index.html -->
<jvm.args.ip>-Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=false</jvm.args.ip>
<!-- jvm args for all containers without setting prefered IP -->
<arquillian.container.all.jvm.args>-Xms1024m -Xmx1024m -XX:MaxPermSize=512m -DstatelessViews=${statelessViews}</arquillian.container.all.jvm.args>
<arquillian.container.all.jvm.args.withIP>${arquillian.container.all.jvm.args} ${jvm.args.ip}</arquillian.container.all.jvm.args.withIP>
<!-- following will be set as system properties -->
<arquillian.container.jbossas.7-1.node0>127.0.0.1</arquillian.container.jbossas.7-1.node0>
<arquillian.container.jbossas.7-1.jvm.args>${arquillian.container.all.jvm.args.withIP}
-Djboss.bind.address=${arquillian.container.jbossas.7-1.node0}
-Djboss.bind.address.management=${arquillian.container.jbossas.7-1.node0}
-Djboss.bind.address.unsecure=${arquillian.container.jbossas.7-1.node0}</arquillian.container.jbossas.7-1.jvm.args>
<templates>plain</templates>
<testng.listeners>org.richfaces.tests.metamer.ftest.extension.configurator.transformer.DataProviderTestTransformer,org.richfaces.tests.metamer.ftest.MetamerConsoleStatusTestListener,org.richfaces.tests.metamer.ftest.MetamerFailureLoggingTestListener,org.jboss.test.selenium.listener.BrowserConsoleLogSaverListener</testng.listeners>
<testng.suite.xml>src/test/resources/testng/testng-all.xml</testng.suite.xml>
<metamer-portlet.version>3.2.1.Final</metamer-portlet.version>
<jboss-portal.version>7.1.3.Final</jboss-portal.version>
<!-- enable WS on EAP -->
<eap.ws.enabled>true</eap.ws.enabled>
<!-- graphene wait time configuration in seconds -->
<graphene.waitGuiInterval>2</graphene.waitGuiInterval>
<graphene.waitAjaxInterval>4</graphene.waitAjaxInterval>
<graphene.waitModelInterval>6</graphene.waitModelInterval>
<graphene.waitGuardInterval>4</graphene.waitGuardInterval>
</properties>
<dependencies>
<dependency>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer</artifactId>
<version>${project.version}</version>
<classifier>classes</classifier>
<scope>test</scope>
</dependency>
<!-- Arquillian dependencies -->
<dependency>
<groupId>org.jboss.arquillian.graphene</groupId>
<artifactId>graphene-webdriver</artifactId>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.testng</groupId>
<artifactId>arquillian-testng-container</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.richfaces</groupId>
<artifactId>richfaces-page-fragments</artifactId>
<version>${version.richfaces}</version>
<scope>test</scope>
</dependency>
<!-- Resolution of JAR libraries into WAR archive -->
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-impl-maven</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.descriptors</groupId>
<artifactId>shrinkwrap-descriptors-impl-javaee</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.descriptors</groupId>
<artifactId>shrinkwrap-descriptors-api-base</artifactId>
</dependency>
<!-- TestNG listeners for better console output -->
<dependency>
<groupId>org.richfaces.tests</groupId>
<artifactId>testng-listeners</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<!-- WebDriver Utils -->
<dependency>
<groupId>org.richfaces.tests</groupId>
<artifactId>webdriver-utils</artifactId>
<scope>test</scope>
<version>${project.version}</version>
</dependency>
<!-- TestNG Utils -->
<dependency>
<groupId>org.richfaces.tests</groupId>
<artifactId>testng-utils</artifactId>
<scope>test</scope>
<version>${project.version}</version>
</dependency>
<!-- Utilities from qa-maven-plugin-->
<dependency>
<groupId>org.richfaces.tests</groupId>
<artifactId>richfaces-qa-maven-plugin</artifactId>
<scope>test</scope>
<version>${project.version}</version>
</dependency>
<!-- see the https://community.jboss.org/wiki/WhatsTheCauseOfThisExceptionJavalangClassFormatErrorAbsentCode -->
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<type>pom</type>
<scope>provided</scope>
</dependency>
<!-- for better dates manipulation -->
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<scope>test</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.eu.ingwar.tools</groupId>
<artifactId>arquillian-suite-extension</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
</dependency>
<!-- Command line interface for JBoss containers -->
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-cli</artifactId>
<version>8.2.1.Final</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- saves all activated maven profiles to project property qa.activated.profiles -->
<plugin>
<groupId>org.richfaces.tests</groupId>
<artifactId>richfaces-qa-maven-plugin</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<goals>
<goal>profiles</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<suiteXmlFiles>
<suiteXmlFiles>${testng.suite.xml}</suiteXmlFiles>
</suiteXmlFiles>
<!-- Logging configuration for Selenium , templates, ip -->
<argLine>-Djava.util.logging.config.file=${project.build.testOutputDirectory}/logging.properties
-Dtemplates='${templates}' ${jvm.args.ip}</argLine>
<properties>
<property>
<name>listener</name>
<value>${testng.listeners}</value>
</property>
</properties>
<systemPropertyVariables>
<project.build.directory>${project.build.directory}</project.build.directory>
<logging.props.dir>${project.basedir}/src/test/resources</logging.props.dir>
<activated.maven.profiles>${qa.activated.profiles}</activated.maven.profiles>
<arquillian.container.jbossas.7-1.node0>${arquillian.container.jbossas.7-1.node0}</arquillian.container.jbossas.7-1.node0>
<arquillian.container.jbossas.7-1.jvm.args>${arquillian.container.jbossas.7-1.jvm.args}</arquillian.container.jbossas.7-1.jvm.args>
<arquillian.container.all.jvm.args>${arquillian.container.all.jvm.args}</arquillian.container.all.jvm.args>
<graphene.waitGuiInterval>${graphene.waitGuiInterval}</graphene.waitGuiInterval>
<graphene.waitAjaxInterval>${graphene.waitAjaxInterval}</graphene.waitAjaxInterval>
<graphene.waitModelInterval>${graphene.waitModelInterval}</graphene.waitModelInterval>
<graphene.waitGuardInterval>${graphene.waitGuardInterval}</graphene.waitGuardInterval>
<version.eap>${version.eap}</version.eap>
<eap.ws.enabled>${eap.ws.enabled}</eap.ws.enabled>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-installed</id>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer</artifactId>
<version>${project.version}</version>
<classifier>${metamer.classifier}</classifier>
<type>war</type>
<destFileName>metamer.war</destFileName>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}</outputDirectory>
<overWriteIfNewer>false</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<!-- profile for testing Metamer within Portal env. -->
<profile>
<id>jbossportal-remote-7-1</id>
<properties>
<metamer.classifier>jee6</metamer.classifier>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-remote</artifactId>
<version>${jboss-portal.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.portletbridge.examples</groupId>
<artifactId>metamer-portlet</artifactId>
<version>${metamer-portlet.version}</version>
<type>war</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-metamer-portlet</id>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.jboss.portletbridge.examples</groupId>
<artifactId>metamer-portlet</artifactId>
<version>${metamer-portlet.version}</version>
<type>war</type>
<destFileName>metamer-portlet.war</destFileName>
</artifactItem>
</artifactItems>
<outputDirectory>target</outputDirectory>
<overWriteIfNewer>false</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<arquillian.launch>jbossas-remote-7-1</arquillian.launch>
<runInPortalEnv>true</runInPortalEnv>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- only jbossas-managed-7-1 supported by now -->
<id>ipv6</id>
<activation>
<property>
<name>ipv6</name>
</property>
</activation>
<properties>
<jvm.args.ip>-Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true</jvm.args.ip>
<arquillian.container.jbossas.7-1.node0>[::1]</arquillian.container.jbossas.7-1.node0>
</properties>
</profile>
<profile>
<id>smoke-tests</id>
<activation>
<property>
<name>smoke</name>
</property>
</activation>
<properties>
<testng.suite.xml>src/test/resources/testng/testng-smoke.xml</testng.suite.xml>
</properties>
</profile>
<profile>
<id>update-attributes</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>org.richfaces.tests.metamer.ftest.extension.attributes.collector.ComponentsAttributesCollectorTool</mainClass>
<classpathScope>test</classpathScope>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>tomcat-with-myfaces</id>
<activation>
<property>
<name>myfaces</name>
<value>true</value>
</property>
</activation>
<properties>
<metamer.classifier>tomcat-myfaces</metamer.classifier>
</properties>
</profile>
<!--
Tasks:
* kill containers (GlassFish, Tomcat, AS) and Drivers (IEDriver, ChromeDriver) processes before running tests
* download + unpack drivers (only locally to ${user.home}/selenium/driver)
* download + unpack EAP if some EAP profile activated (locally to ${user.home}/selenium/eap)
* download + unpack Firefox binary if Firefox version specified (only locally, to ${user.home}/selenium/browser)
* set paths to EAP, drivers (IEDriver, ChromeDriver), browser binaries (Firefox)
* fail the build before testing when misconfigured (e.g. when path does not exist)
* on jenkins use specified version of Firefox (version is specified in configuration of the RichFaces QA Maven Plugin)
The profile is activated by default. To disable it, use system property -Dbrowser.disabled
To change the default browser, set property 'browser' to (case insensitive options):
a) for firefox: *firefox* or *ff*
b) for chrome: *chrome*, *cr*
c) for ie: *ie*, *explorer*, *internetExplorer*
e.g.: -Dbrowser=FF, -Dbrowser=cr, -Dbrowser=internetExplorer, -Dbrowser=ff30
All properties beginning with prefix 'qa.' (e.g. 'qa.eap.home' ) are returned from the qa-maven-plugin.
All properties changed by the plugin CAN also BE OVERRIDDEN by specifying a system property, e.g.:
`-DjbossEAP61Home=/some/path/to/eap61Home`
`-Dwebdriver.firefox.bin=/path/to/firefox/firefox.exe`
-->
<profile>
<id>browser</id>
<activation>
<property>
<name>!browser.disabled</name>
</property>
</activation>
<properties>
<jbossEAP61Home>${qa.eap.home}</jbossEAP61Home>
<jbossEAP62Home>${qa.eap.home}</jbossEAP62Home>
<jbossEAP63Home>${qa.eap.home}</jbossEAP63Home>
<jbossEAP64Home>${qa.eap.home}</jbossEAP64Home>
<jbossEAP70Home>${qa.eap.home}</jbossEAP70Home>
<!-- All following properties are used by the qa-maven-plugin.
All default values of propeties can be replaced by setting system property (e.g. -Dbrowser=cr)
-->
<eapVersion>${version.eap}</eapVersion>
<jenkinsFirefoxVersionMinimal>24esr</jenkinsFirefoxVersionMinimal>
<jenkinsFirefoxVersionOptimal>31esr</jenkinsFirefoxVersionOptimal>
<chromeDriverVersion>2.21</chromeDriverVersion>
<seleniumVersion>${version.selenium}</seleniumVersion>
<browser>firefox</browser>
<!-- following properties can disable some parts of the plugin -->
<!--
download and extract needed drivers and browser and set path to them using properties
qa.firefox.bin, qa.chrome.driver.bin, qa.ie.driver.bin. The chosen browser used for ARQ Drone is stored in
qa.webdriver.browser.
-->
<ensure.browser>true</ensure.browser>
<!-- download and extract EAP to project build directory -->
<ensure.eap>true</ensure.eap>
<!-- tasks cleanup, should kill containers' processes before running the tests -->
<ensure.cleanup>true</ensure.cleanup>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.richfaces.tests</groupId>
<artifactId>richfaces-qa-maven-plugin</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<phase>process-test-classes</phase>
<goals>
<goal>process</goal>
</goals>
<configuration>
<jenkinsFirefoxConfigurationFile>../../jenkins-firefox-config.xml</jenkinsFirefoxConfigurationFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<!-- path to Firefox binary -->
<webdriver.firefox.bin>${qa.firefox.bin}</webdriver.firefox.bin>
<!-- path to WebDriver Chrome driver binary -->
<webdriver.chrome.driver>${qa.chrome.driver.bin}</webdriver.chrome.driver>
<!-- path to WebDriver IE driver binary -->
<webdriver.ie.driver>${qa.ie.driver.bin}</webdriver.ie.driver>
<!-- name of the browser, will be passed to Arquillian -->
<arq.extension.webdriver.browser>${qa.webdriver.browser}</arq.extension.webdriver.browser>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>increasedWaitIntervals</id>
<properties>
<graphene.waitGuiInterval>10</graphene.waitGuiInterval>
<graphene.waitAjaxInterval>16</graphene.waitAjaxInterval>
<graphene.waitModelInterval>20</graphene.waitModelInterval>
<graphene.waitGuardInterval>16</graphene.waitGuardInterval>
</properties>
</profile>
</profiles>
</project>