struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yee, Richard K,,DMDCWEST" <Ye...@osd.pentagon.mil>
Subject RE: Using Catus versus using StrutsTestcase
Date Tue, 03 Feb 2004 18:18:39 GMT
Al,
StrutsTestCase, as the name implies, has specific classes and methods for
testing struts applications. It is good for testing actionForwards,
validation errors, and ActionForm submissions with struts. It only does out
of container testing however.
Cactus is used for in-container testing of servlets, JSP's, JSP TagLibs,
filters and EJBs. It does not have the classes that enable Struts-specific
features to be exercised. Basically for a JSP you set up a HTTP request with
input parameters and then are able to check the response object and the
content. You can also check the presence of cookies and session data.

Rgds,

Richard


-----Original Message-----
From: Al Rathon [mailto:new_berlin@yahoo.com] 
Sent: Monday, February 02, 2004 2:50 PM
To: struts-user@jakarta.apache.org
Subject: Using Catus versus using StrutsTestcase


Hi: 
I want to write unit tests for testing the struts
portion of a web-app.I am not sure whether I should be
using Cactus or StrutsTestCase. What are the factors
that I should consider while choosing one application
over the other?

Thanks.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message