What tools are available to perform unit testing on JSP pages. I'd like to find something
similar to the JUnit tools that are used for unit testing Java classes.
Expert's answerThere are a variety of JSP testing tool options out there. Depending on the specifics of how your application is implemented you will find some are more appropriate and easier to use than others. If your JSP pages use custom tag libraries to implement Java functionality you may be interested in TagUnit which is a tag library for testing custom tags within JSP pages. For testing server-side Java code generally the Cactus framework from Apache can be used and the Cactus site provides instructions for JSP testing in your actual servlet container. JunitEE provides a Junit test runner capable of working with servlets. There is a forum discussion comparing and contrasting Cactus and JUnitEE online at Java Ranch. Commercial options include JTest from ParaSoft and Java Unit Test from AppPerfect. JWebUnit is another testing framework that works together with JUnit to test server side software. Mockrunner works with Junit to test against mock objects without calling the real server infrastructure. HttpUnit is a testing tool designed for black-box testing of web sites which can be used to test against the web responses of your JSPs and servlets and the HttpUnit site also provides a ServletUnit tool for testing servlets in a simulated container. For Struts applications the |