A prototype BeanShell sampler has been added to CVS.

This allows samplers to execute BeanShell scripts or files.

To use it, you first need to download the BeanShell jar from www.beanshell.org and put 
it in the lib directory.

The sampler sets the following variables for the script:

Label
Filename

ResponseCode = "200"
ResponseMessage = "OK"
IsSuccess = true

These last 3 are used to set the values in the sample.
The responseData is set from the 'value' of the script, which is the last statement 
evaluated.

Silly Example:

ResponseCode="199"
ResponseMessage="No Answer"
27*1001

See the BeanShell web-site for info.
It should be possible to invoke arbitrary methods, but I've not tried.
(might be another solution to Matt's problem)

I suppose a BeanShell function might be useful too ...

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to