ZK , 

It will mark the sampler as red? 

I have tried another solution that works just perfect:

Using beanshell: prev.setResponseCode("400") (or using any other error code
which will fail the sampler) that would mark the sampler as red.

Br,

Erez 

-----Original Message-----
From: ZK [mailto:[email protected]] 
Sent: Tuesday, April 21, 2015 2:50 PM
To: [email protected]
Subject: Re: Fail a sampler through beanshell Postprocessor

Hi,
using a 'beanshell assertion'

try:
Failure=true;
FailureMessage= "Test FAILED";
print(FailureMessage);


ZK



--
View this message in context:
http://jmeter.512774.n5.nabble.com/Fail-a-sampler-through-beanshell-Postproc
essor-tp5722290p5722292.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
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