File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

Joined: Jul 11, 2001
Posts: 14112
Google can:

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
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
author & internet detective

Joined: May 26, 2003
Posts: 33102

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

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Test JSP pages
It's not a secret anymore!