aspose file tools*
The moose likes Testing and the fly likes testing JSP applications with JUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "testing JSP applications with JUnit" Watch "testing JSP applications with JUnit" New topic
Author

testing JSP applications with JUnit

tommy here
Greenhorn

Joined: Jun 24, 2004
Posts: 1
I want to test a JSP application deployed in apache tomcat server using JUnit. I have tested console Java applications using JUnit but have no idea about how to test JSP applications using JUnit.

Plz guide me .
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Hello Tommy and welcome to the JavaRanch!
First of all I'd like to point you to our naming policy (which does not allow obviously fake display names) and to Your Profile where you can edit the displayed name. Thanks for cooperating

Originally posted by tommy here:
I want to test a JSP application deployed in apache tomcat server using JUnit. I have tested console Java applications using JUnit but have no idea about how to test JSP applications using JUnit.

You can't test JSP code with JUnit. What you can do is use TagUnit for testing your custom taglibs and one of Jakarta Cactus/HttpUnit/jWebUnit/JUnitEE for testing your web application when it's deployed on the server.

Take a look at the abovementioned projects' tutorials for a general overview of how they're used.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: testing JSP applications with JUnit