You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Marco Pas <ma...@gmail.com> on 2009/10/14 08:43:21 UTC

Re: Is there a way to stop a test if a specific value van not be found?

Do you use a standard HTTP Sampler for that? Great tip by the way!! Thanks a
lot!

2009/10/13 Ronan Klyne <ro...@groupbc.com>

> Marco Pas wrote:
>
>> Hi there, i was wondering if there is a way to stop a specific test and
>> logging this as an error to the logs?
>>
>> I can succesfully terminate a test with an if-controller but then the
>> tests stops and there is no logging done to a listener.
>> Can i somewho dump a message to a listener so i can see in the logfiles
>> that i aborted the test for a specific reason?
>>
>>  You can add a sampler with a name of "ERROR: ${error_reason}", and the
> variable 'error_reason' will be substituted in. I use this technique to
> record various snippets of information in the test logs so that I can check
> later that I'm looking at the right results set.
>
> Ronan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Is there a way to stop a test if a specific value van not be found?

Posted by sebb <se...@gmail.com>.
On 14/10/2009, Ronan Klyne <ro...@groupbc.com> wrote:
> Marco Pas wrote:
>
> > Do you use a standard HTTP Sampler for that? Great tip by the way!! Thanks
> a
> > lot!
> >
> >
>  I'd use a BSF sampler with no code - it'll do nothing and be very quick to
> run.

A Java Request sampler would be even quicker.

>
> > 2009/10/13 Ronan Klyne <ro...@groupbc.com>
> >
> >
> >
> > > Marco Pas wrote:
> > >
> > >
> > >
> > > > Hi there, i was wondering if there is a way to stop a specific test
> and
> > > > logging this as an error to the logs?
> > > >
> > > > I can succesfully terminate a test with an if-controller but then the
> > > > tests stops and there is no logging done to a listener.
> > > > Can i somewho dump a message to a listener so i can see in the
> logfiles
> > > > that i aborted the test for a specific reason?
> > > >
> > > >  You can add a sampler with a name of "ERROR: ${error_reason}", and
> the
> > > >
> > > >
> > > variable 'error_reason' will be substituted in. I use this technique to
> > > record various snippets of information in the test logs so that I can
> check
> > > later that I'm looking at the right results set.
> > >
> > > Ronan
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Is there a way to stop a test if a specific value van not be found?

Posted by Ronan Klyne <ro...@groupbc.com>.
Marco Pas wrote:
> Do you use a standard HTTP Sampler for that? Great tip by the way!! Thanks a
> lot!
>   
I'd use a BSF sampler with no code - it'll do nothing and be very quick 
to run.
> 2009/10/13 Ronan Klyne <ro...@groupbc.com>
>
>   
>> Marco Pas wrote:
>>
>>     
>>> Hi there, i was wondering if there is a way to stop a specific test and
>>> logging this as an error to the logs?
>>>
>>> I can succesfully terminate a test with an if-controller but then the
>>> tests stops and there is no logging done to a listener.
>>> Can i somewho dump a message to a listener so i can see in the logfiles
>>> that i aborted the test for a specific reason?
>>>
>>>  You can add a sampler with a name of "ERROR: ${error_reason}", and the
>>>       
>> variable 'error_reason' will be substituted in. I use this technique to
>> record various snippets of information in the test logs so that I can check
>> later that I'm looking at the right results set.
>>
>> Ronan
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org