Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to test JSP  RSS feed

 
David Spades
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know any good tool/framework to test JSP?
thanks
 
E Armitage
Rancher
Posts: 989
9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google will turn up many tools like htmlunit, httpunit, e.t.c.
Hopefully these JSPs have no Java code inside them, because they really shouldn't. If you are using some other framework on top of those JSPs then look at the testing apis (if any) provided by that framework first.
 
David Spades
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so, htmlunit and httpunit is still the tool used to do this? I was hoping that there's a new more modern tool out there. okay, that's fine. I'm assuming that any custom tags or spring tags in jsp won't make the jsp untestable by httpunit/htmlunit? how about selenium?
thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpUnit is obsolete. HtmlUnit is up-to-date and quite capable. It doesn't matter what you use to create HTML, as HtmlUnit basically acts as a programmatic browser, accessing your site via HTTP.

You might also want to check out jWebUnit, which puts a somewhat higher-level API on top of HtmlUnit, and can also drive Selenium (which is a more GUI-driven tool than the HtmlUnit and jWebUnit APIs).
 
David Spades
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so, selenium and htmlunit are both capable to test jsp tags in jsp? thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!