Use any of the Post Processor (BSF or RegEx Extractor) to check the
response and then you can set the response as failure based on the
comparison using prev object available in the post processor.
if(condition){
prev.setResponseCode("Some response code indicating the failure");
prev.setSuccessfull(false);
}
This will show the reponse as failed in your listener.
Refer the following aritcles for more details:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#BSF_PostProcessor
http://jakarta.apache.org/jmeter/api/org/apache/jmeter/samplers/SampleResult.html
Thanks,
Prasanna
On Fri, May 14, 2010 at 12:14 PM, GautamPr <[email protected]>wrote:
>
> thanks for the reply.......
> One more doubt:While i am sending wrong user id +Password to my login page
> through Jmeter,then also I am getting status of the request as
> success(Green
> triangle with Tick mark). Please guide me to display the proper
> icon(Failure
> icon /Red triangle). Plz help me asap.....
>
> GautamPr wrote:
> >
> > Hi,
> > I am new to Jmeter. Plz help me out.
> > I want to display user defined msgs in jmeter say after passing or
> > failure of the test. Is it possible? if yes, how??
> >
>
> --
> View this message in context:
> http://old.nabble.com/Is-their-any-way-to-display-the-User-defined-messages-in-Jmeter--tp28546431p28555841.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]
>
>