On 2/15/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote:
Thanks, Craig.  As you probably know, I posted a similar message over on the Struts-Shale list.
 
So it appears that, unlike Cactus, the Shale Test Framework doesn't run in the Web containers, correct?

That's correct ... it is designed for out-of-the-container unit testing with something like JUnit.  You'd want something like Cactus for in-container tests.

  Is there any testing framework I can use that will run in the Web container so that I can effectively initiate a J2EE round-trip test starting with my JSF managed bean's action method?

One possibility to consider for end-to-end testing of webapps is an automated client framework that behaves like a web app user, and has facilities for examining the HTML (or whatever) that the app returns in order to determine correctness or not.  There are a variety of approaches to this -- I use HtmlUnit for this in the Shale Use Cases example app (see the "systest" target in build.xml).  The other Struts guys seem to like Canoo.

Brendan Conner
Contractor - IT National Data
847-248-1519 (Office)


Craig

Reply via email to