aspose file tools*
The moose likes Testing and the fly likes Test JSP pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Test JSP pages" Watch "Test JSP pages" New topic
Author

Test JSP pages

Leandro Oliveira
Ranch Hand

Joined: Nov 07, 2002
Posts: 298
Could some one list some of the technologies that are used for testing JSP?
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Google can: http://www.google.com/search?q=testing+jsps


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
It depends on what you want to test. From a client perspective, to check that the pages are generating the correct content, HttpUnit might suit your needs. For unit testing JSP tags that you've built, TagUnit might give you something extra over just testing the tag handler classes with JUnit. For more complex in-container testing of Servlets and JSPs, try Cactus. For performance/stress testing, check out JMeter.
Basically, there are lots of tools but it depends on what you want to do.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30309
    
150

And of course, try and move as much code out of the jsp and into regular classes as possible.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Test JSP pages