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
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply 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: 21
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: 12327
    
    1
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Calling a servlet from a test harness
 
Similar Threads
test harness for SCJD assignment?
Test Harness
Anyone got an elegant solution?
problem with finder method
Diagnosing possible network issues