Hi,

Our QA department, and some of our developers have also been interested in
stress testing. We looked at e-Test, and a few others, and I inquired on
this list a while ago about it as well.

After some searching and testing, I found the best solution to us testing
specific portions of our site for load-balancing was to write a simple
class that accepted a number of threads to execute. It then loops through
that number, creating new Thread objects, each one starting up immediately.
It uses another class that implements runnable, and that class implements
the run() method. In that method, we simply create a new object of the
particular portion of our site we want to test, and set its properties,
call its methods, etc. Each thread started does the same thing.

I was able to use this simple equation to pound our login process with
1000s of threads. Ofcourse, using Java might be a bit slower than a native
C program, but it worked. I was able to see some logins not actually
logging in (due to database connection issues).

My point is, while a program like e-test is awesome for a full blown QA
type of testing of the site (and automation testing), a task I learned
while working at Borland was to write test automation code to control the
applicatoin being tested. I realize load testing is a bit different, but in
the latter case, you just create multiple threads doing the same thing (for
web site testing).

If anyone has a different take on this, I would love to hear it. I think
this approach works well because it allows me to automate load-testing on
specific portions of our site, and it doesn't require the user interface
interaction that other test tools do (for automation). While it wont allow
our QA team to "break" the input boxes of forms on our pages, and test if
links work, it will allow us to hit the specific server code that the JSP
pages use directly to do the same time.



Kevin Duffey
Software Engineer
[EMAIL PROTECTED]

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to