Automated Testing

MyFaces uses the testing tools in the build process. Tools like JUnit, Selenium and HostedQA used via Maven plugins.

JUnit

[WWW] JUnit is used via the Maven Surefire plugin during the testing phase of the build process. Source code for unit test are usually located in the src/test directory of each project.

Selenium

[WWW] Selenium from OpenQA is a testing tool that is run in an browser. Among other thing, it is used to test navigation and the HTML generated by MyFaces. Please refer to Tomahawk's testing section on the MyFaces website for more information on how Selenium is used and configured.

Additional Documentation

HostedQA

[WWW] HostedQA is a web-based quality assurance solution from [WWW] Autoriginate. Please refer to Tomahawk's testing section on the MyFaces website for more information on how HostedQA is used and configured.

Additional Documentation

Running with Sun's RI

Tomahawk's example can run using Sun's reference implementation (RI). To this, simply add -Djsf=ri to the maven command line.

As an example, to build and run simple example using the Sun RI issue the following command from tomahawk/examples/simple directory.

   mvn clean package cargo:start -P selenium -Djsf=ri

You can this point the browser to the following URL to run the Selenium test suite:

last edited 2006-12-04 02:59:23 by PaulSpencer