Below are some resources. http://myfaces.apache.org/tomahawk/testing/selenium.html http://wiki.apache.org/myfaces/Automated_Testing
You can also see the Selenium based test used to test MyFaces and Tomahawk components. http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/test/selenium/ To run the test: o Checkout the source o cd to tomahawk/example/simple o execute the command mvn package cargo:start -P Selemium From more information see http://myfaces.apache.org/tomahawk/testing/selenium.html Paul Spencer lightbulb432 wrote:
How would you go about testing a JSF application? Would you test both the session beans and the HTML output (using HttpUnit and/or HtmlUnit) from the JSF pages, or just one or the other? I ask because it seems like the session beans and HTML output tests might be testing for roughly the same things (because the session beans expose functionality used to create the HTML), so wouldn't there be redundancy in the tests? Or is that a good thing? What are best practices in this regard?