Introduction
This document explains how to use the Load test module in JAFFA to perform scalability tests run against
httpunit tests written for your application.
Overview
You may have a web application for which you already have httpunit tests written against it. Now wouldn’t
it be nice to have some tool which will run these unit tests and do some scalability tests and give
an estimate as to how well does your application scale across multiple threads, which simulate the users
using the system.
LoadTest module is the solution to this. With just two xml files ,which include the configuration and
the build file, you can run your httpunit tests and the results are logged in a csv file.
Prerequisite
The LoadTest module is part of the Jaffa tools and hence is packaged into jaffa-tools.jar.
Hence you will require jaffa-tools.jar to run the Load Test .You should have your httpunit tests to test against.
Changes/Requirements to HttpUnit Tests
To comply with the LoadTest module you need to follow certain requirements while writing your httpunit tests.
- All the Test Classes should extend the LoadTestCase class (org.jaffa.tools.loadtest.LoadTestCase)
- Logon is performed via LoadTest module and hence use getWebConversation() and getWebResponse() to get
the WebConversation and WebResponse object .If null , then perform your own custom logon.
|