jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronan Klyne <ronan.kl...@groupbc.com>
Subject Re: Is there a way to stop a test if a specific value van not be found?
Date Wed, 14 Oct 2009 07:23:48 GMT
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 <ronan.klyne@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


Mime
View raw message