A failure is where a sampler fails totally (e.g. no DNS for hostname,
404) or where an assertion fails.

A pre-processor cannot directly cause a sample failure to be generated.
[Well, I suppose it may mess with the sampler sufficiently to cause it to fail].

Assertions can change the sample to failed; so can a BeanShell Post-Processor:

prev.setSuccessful(false);

A failed sample can also be generated by using the Java Request and
setting the response code to something other than "OK".

On 21/06/07, aidy lewis <[EMAIL PROTECTED]> wrote:
Hi,

I have a load test that I am unable to complete until I can load
appropriate data in the db. Is there anyway within the BeanShell
pre-processor where I can force a failure to appear in a Listener? I
have looked through the JMeter API.

Cheers

Aidy

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



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

Reply via email to