This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 12675
    
    5
I have used HttpClient from the Apache Commons project. You can simulate quite complex sequences of requests simulating real users with it.
Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling a servlet from a test harness
 
Similar Threads
Diagnosing possible network issues
test harness for SCJD assignment?
Anyone got an elegant solution?
Test Harness
problem with finder method