The code accompanying the slides Enterprise Build and Test in the Cloud is available at the appfuse-selenium github page.
Provides a Selenium test environment for Maven projects, Appfuse as an example. Allows to run Selenium tests as part of the Maven build, either in an specific container and browser or launching the tests in parallel in several browsers at the same time.
For more information check my slides on Enterprise Build and Test in the Cloud and the blog entries Enterprise Build and Test in the Cloud with Selenium I and Enterprise Build and Test in the Cloud with Selenium II.
By default it’s configured to launch 3 browsers in parallel, Internet Explorer, Firefox 2 and 3
Check src/test/resources/testng.xml for the configuration.
In the single browser option you could do
-
Testing in Jetty 6 and Firefox
-
mvn install
-
-
Testing in Internet Explorer
-
mvn install -Pjetty6x,iexplore
-
-
Testing with any browser
-
mvn install
-Pjetty6x,otherbrowser -DbrowserPath=path/to/browser/executable
-
-
Start the server (no tests
running, good for recording tests)-
mvn package cargo:start
-