File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Calling a servlet from a test harness

N Goldsmith

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

Joined: Mar 22, 2000
Posts: 13036
I have used HttpClient from the Apache Commons project. You can simulate quite complex sequences of requests simulating real users with it.
I agree. Here's the link:
subject: Calling a servlet from a test harness
It's not a secret anymore!