• 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

Servlet Testing

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
rubbery bacon. crispy tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic