This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes Calling a servlet from a test harness Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Calling a servlet from a test harness" Watch "Calling a servlet from a test harness" New topic
Author

Calling a servlet from a test harness

N Goldsmith
Greenhorn

Joined: May 18, 2004
Posts: 22
I want to write a test harness for our servlets (running in Tomcat). I will need to configure the test harness to simulate various volumes of traffic calling our servlets and the rate they are called (burst, steady, etc). What is the best way to simulate user activity like that? Is there a tool (in Eclipse or otherwise) that can be built upon? A browser based solution (JSP, etc)?
Praveen Dharmavaram
Ranch Hand

Joined: Nov 05, 2002
Posts: 59
You can try looking at a tool called "load runner" and "AK Stress". These are the two tools I worked with before.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
I have used HttpClient from the Apache Commons project. You can simulate quite complex sequences of requests simulating real users with it.
Bill
 
Don't get me started about those stupid light bulbs.
 
subject: Calling a servlet from a test harness