The moose likes Testing and the fly likes Servlet Testing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "Servlet Testing" Watch "Servlet Testing" New topic
Author

Servlet Testing

Pearlo Muthukumaran
Ranch Hand

Joined: Sep 17, 2002
Posts: 79
Hi ,
My testing scenario for Servlet goes like this:
1. Post a XML Document as per application specs to a URL
2. Servlet interacts with the back-end components and produce a
workflow document in XML form.
The simple HTTP Client Test using URLConnection works fine and
servlet is capable of handling all relevant exceptions arising out of various semantic errors introduced in the input XML document
I am using the same setup to simulate a multithreaded test stub using URLConnection in which case very erratic behaviour is exhibited as following
1. 15 requests submitted - only 11 served
2. 15 requests submitted - only 14 served
3. 15 requests submitted - all 15 served
4. 5 requests submitted - only 3 served
5. 5 requests submitted - all 5 served
6. 5 requests submitted - only 4 served
I am puzzled. I have increased necessary database connections in the
pool.
I am not using any standard test setup like HTTPUnit (which I assume also will handle the test the same way - correct me if I am wrong)
My webserver is Tomcat 4.1.24.
Could there be any problem in the client stub or it could be a problem with the server?
Rgds
Muthu
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Servlet Testing
 
Similar Threads
Error : Processing Instruction Target
Web service does not respond if processing took longer than 10 sec.
long post IBM.158
Chapter 6(Session Management) notes (HFSJ) for revision
Sample Questions for 288 - Need answers