Hi, I am given an assignment on testing servlet.I have gone through the net and after hours of surfing found nothing useful.i am not able to configure the cactus framework in the eclipse .If somebody has code relating this please do forward it to me.please let me know if we can test servlets without using the cactus framework? if yes please send me a sample servlet testcase with explanation. thanks
You don't necessarily need Cactus for testing Servlets. After all, Servlets are just plain old Java classes that happen to extend from HttpServlet. What I usually do for Servlets is good old unit tests that throw mock request and response objects at the Servlet and verify that the Servlet 1) makes the appropriate calls to whatever service layer components you have, and 2) forwards the request to/renders the expected view.