| The JavaTest class is a simple sampler which is intended for
use when developing test plans. The sampler generates results internally, so
does not need access to any external resources such as web, ftp or LDAP
servers. In addition, because the exact values of most of the SampleResult
can be directly set, it is possible to easily test most Assertions that use
the sample results.
During each sample, this client will sleep for some amount of time. The
amount of time to sleep is determined from the two parameters Sleep_Time and
Sleep_Mask using the formula:
totalSleepTime = Sleep_Time + (System.currentTimeMillis() % Sleep_Mask)
Thus, the Sleep_Mask provides a way to add a random component to the sleep
time.
The sampler is able to define the precise values of:
- responseCode
- responseMessage
- Label
- success/fail status
The elapsed time and end-time cannot be directly controlled.
Note: this class was derived from
SleepTest .
author: ANO version: $Version: 1.3 $ $Date: 2007-01-07 18:10:21 +0000 (Sun, 07 Jan 2007) $ |