• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jsp Testing

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
can anybody explain me Huv to test Jsp ,Servlets and EJB using JUnit...If any related Urls Pls let me Know..
thankx
priya
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, the general strategy is to make them so simple that they don't need much testing - let them delegate most of the work to plain simple java classes and test those extensively.
Second, you will find some material on those issues on both the articels and extensions sections at www.junit.org.
You can also take a look at http://c2.com/cgi/wiki?ServletTesting - using the FindPage might give you other interesting pages.
And last but not least, you could get yourself a copy of http://www.amazon.com/exec/obidos/tg/detail/-/1558608680/
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One way is to use Cactus to test server side code. Cactus is an extension of JUnit.
Why can't you just use JUnit?
http://jakarta.apache.org/cactus/writing/howto_ejb.html
this is for EJB's but the concept applies for all serverside code.
[ June 08, 2003: Message edited by: Andres Gonzalez ]
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In addition to testing all the separate Java classes, you can also test JSP custom tags with TagUnit or Cactus.
 
reply
    Bookmark Topic Watch Topic
  • New Topic