aspose file tools*
The moose likes Struts and the fly likes struts and cactus Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts and cactus" Watch "struts and cactus" New topic
Author

struts and cactus

saikiran surya
Greenhorn

Joined: Jun 04, 2004
Posts: 16
Hi All,

Can anyone give me some pointers on how to test my struts applications using cactus? Also is stress/load testing possible with cactus?

Thanks a bunch

kiran.
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Check out StrutsTestCase for JUnit

I haven't used this, but here's their blurb:

"StrutsTestCase for JUnit is an extension of the standard JUnit TestCase class that provides facilities for testing code based on the Struts framework. StrutsTestCase provides both a Mock Object approach and a Cactus approach to actually run the Struts ActionServlet, allowing you to test your Struts code with or without a running servlet engine. Because StrutsTestCase uses the ActionServlet controller to test your code, you can test not only the implementation of your Action objects, but also your mappings, form beans, and forwards declarations. And because StrutsTestCase already provides validation methods, it's quick and easy to write unit test cases.

StrutsTestCase is compliant with both the Java Servlet 2.2 and 2.3 specifications, and supports Struts 1.1, and Cactus 1.5 and JUnit 3.8.1. "
[ June 04, 2004: Message edited by: Carol Enderlin ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts and cactus