@@ -8,31 +8,64 @@ Some samples/tests have documentataion otherwise read the code. The [Java EE 7 E
88
99Samples are tested on Wildfly and GlassFish using the Arquillian ecosystem.
1010
11- Only one profile can be active at a given time otherwise there will be dependency conflicts.
11+ Only one container profile and one profile for browser can be active at a given time otherwise there will be dependency conflicts.
1212
13- There are 4 available profiles:
13+ There are 4 available container profiles:
1414
1515* `` wildfly-managed-arquillian ``
16+
1617 The default profile and it will install a Wildfly server and start up the server per sample.
1718 Useful for CI servers.
1819
1920* `` wildfly-remote-arquillian ``
21+
2022 This profile requires you to start up a Wildfly server outside of the build. Each sample will then
2123 reuse this instance to run the tests.
2224 Useful for development to avoid the server start up cost per sample.
2325
2426* `` glassfish-embedded-arquillian ``
27+
2528 This profile uses the GlassFish embedded server and runs in the same JVM as the TestClass.
2629 Useful for development, but has the downside of server startup per sample.
2730
2831* `` glassfish-remote-arquillian ``
32+
2933 This profile requires you to start up a GlassFish server outside of the build. Each sample will then
3034 reuse this instance to run the tests.
3135 Useful for development to avoid the server start up cost per sample.
3236
37+ Similarly, there are 6 profiles to choose a browser to test on:
38+
39+ * `` browser-firefox ``
40+
41+ To run tests on Mozilla Firefox. If its binary is installed in the usual place, no additional information is required.
42+
43+ * `` browser-chrome ``
44+
45+ To run tests on Google Chrome. Need to pass a `` -Darq.extension.webdriver.chromeDriverBinary `` property
46+ pointing to a `` chromedriver `` binary.
47+
48+ * `` browser-ie ``
49+
50+ To run tests on Internet Explorer. Need to pass a `` -Darq.extension.webdriver.ieDriverBinary `` property
51+ pointing to a `` IEDriverServer.exe `` .
52+
53+ * `` browser-safari ``
54+
55+ To run tests on Safari. If its binary is installed in the usual place, no additional information is required.
56+
57+ * `` browser-opera ``
58+
59+ To run tests on Opera. Need to pass a `` -Darq.extension.webdriver.opera.binary `` property pointing to a Opera executable.
60+
61+ * `` browser-phantomjs ``
62+
63+ To run tests on headless browser PhantomJS. If you do not specify the path of phantomjs binary via
64+ `` -Dphantomjs.binary.path `` property, it will be downloaded automatically.
65+
3366To run them in the console do:
3467
35- 1 . In the terminal, `` mvn -Pwildfly-managed-arquillian test `` at the top-level directory to start the tests
68+ 1 . In the terminal, `` mvn -Pwildfly-managed-arquillian,browser-firefox test `` at the top-level directory to start the tests
3669
3770When developing and runing them from IDE, remember to activate the profile before running the test.
3871
0 commit comments