aspose file tools*
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: 12806
    
    5
I have used HttpClient from the Apache Commons project. You can simulate quite complex sequences of requests simulating real users with it.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling a servlet from a test harness