This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Testing and the fly likes Tools for testing  struts applications... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Tools for testing  struts applications..." Watch "Tools for testing  struts applications..." New topic

Tools for testing struts applications...

Yan Lee
Ranch Hand

Joined: Sep 15, 2003
Posts: 94
I want to test the struts code that I write. I have the
following related questions:
1. What are the good tools out there that are easy to use
and open source?
2. Is JUnit the best option for testting struts-apps? How
can one write JUnit tests for struts apps?
Thanks in advance for the help.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32819

Yes, Junit is the best option. Struts Test Case is an extension of Junit for struts. It builds on Mock Objects (builds dummy objects so the server doesn't need to be running) and Cactus (actually run your code on the server.) You can choose which way to use struts test case or use both.
You can also just use pure Junit. I use junit and mock objects to test the individual pieces of my struts action.
[ December 29, 2003: Message edited by: Jeanne Boyarsky ]

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Tools for testing struts applications...
It's not a secret anymore!