Java web application testing tools.
I've been investigating web application testing tools, both for unit testing of web components such as Struts Actions and for functional testing. I read about JUnit extensions Cactus and HttpUnit in Hightower and Lesieki's book Java Tools for Extreme Programming. I learned about StrutsTestCase and JUnitDoclet from Matt Raible's gold-mine of example Ant code: the AppFuse project. That was enough to get me started.
I put together a simple test app with Cactus and StrutsTestCase and was pleased to find how easy it is to invoke Cactus from an Ant script and have Cactus start Jetty, run my tests within the Jetty, and shutdown Jetty when the tests complete. Cactus is going to make it really easy for us to unit test our Servlets, Filters, JSP pages, and Struts Actions. Cactus uses HttpUnit and HttpUnit makes it easy to make sense out of the responses that come back from the web layer, see the HttpUnit cookbook page for an example if this. I wish I had done this a long time ago, how did I live without this stuff!
So, I'm all set for unit testing. Now I need to figure out what to do for functional testing. HttpUnit, MaxQ, and Canoo look promising. I found the bewilderingly long list of functional testing tools at opensourcetesting.org. What open source or commercial tools have you used for functional testing of web applications?
Posted by Jason Carreira on July 27, 2003 at 02:08 AM EDT #
Posted by Gerhard on July 27, 2003 at 09:26 AM EDT #
Posted by Dave Johnson on July 27, 2003 at 11:20 AM EDT #
Posted by Nikhil on July 27, 2003 at 06:18 PM EDT #
Posted by Dave Johnson on July 28, 2003 at 11:18 AM EDT #
Posted by Pascal Thivent on July 29, 2003 at 02:02 AM EDT #
Posted by Lance on July 29, 2003 at 03:37 PM EDT #