This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unit test jsps?

 
Marya Doery
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone know a good freeware tool or simple procedure for unit testing jsps?
For example, I have a jsp with one text entry field that is used to search a database. I have several example cases that I know work currently; I can test them by entering them manually and checking that the resulting page is as expected.
Is there some application that can "drive" the jsp with my fixed input and check that the output is correct?
 
Julia Reynolds
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JUNIT has a couple of plugins that you may be able to use:
http://junit.org/extensions.htm
Julia
 
Marya Doery
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I've been investigating HttpUnit (http://httpunit.sourceforge.net). So far it seems to work, but I'm concerned that it may break on the javascript in my pages (the faq says javascript is not supported). I'll have to test it some more. I see that HttpUnit can be made to work with JUnit so that may be an ideal pairing. I'd be curious to know if anyone has experience with any other tools.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic