Ed,
> my group at work has recently begun using the XP programming methodology
> [...]
> However, a large part of our system is designed around servlets and my
> question is this: Is there either an add-on for servlets for JUnit that will
> allow us to write automated tests? If not, does anyone have any suggestions
> on how to mimic the web server environment in a way that would allow the
> creation of automated, stand-alone tests for servlets? If someone has used
> XP on a servlet project and can offer advice it would be appreciated.
The simplest answer is to have part of the test script deploy the
servlet on a test server and then use Java's Http classes to request
pages, post form data, etc. However, to do it *right* I'd suggest
having an augmented version of the Http classes that will preserve the
exact strings passed back and forth, for testing (comparing the header
strings, etc) and analysis in the case of failed tests.
Steven J. Owens
[EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html