s> It seems to me that the samples which don't match the desired RE have
s> failed, so I would use an Assertion instead of the Post-Processor.
Yes, but all responses are right. They can have message or can not.
I am counting how many requests contains messages which I need.

So, I can't use assertion in this case.
s> However, if you don't want to do that:

s> The Java Request sampler can be used to generate samples with almost
s> any content you want; this could be used instead of an invalid HTTP
s> sampler.
Thanks, I will try. Seems it is what I need.

s> The check you are doing is more on the lines of an Assertion, except
s> that the Assertion depends on multiple previous samples, not just the
s> last one.

You are right, but in the real plan I have more complex logic. I used
this example to illustrate what I want. :)
s> You could probably use the BeanShell assertion to do this.
s> It could count the number of failures, and flag the last sample as an
s> assertion failure if the count is < 10.
Thank you a lot.

s> On 26/10/2007, Dmitry Kudrenko <[EMAIL PROTECTED]> wrote:
>> Greetings, JMeter community!
>>
>> I start my jmx plans from command line and it writes result in jtl
>> file. Then I build html report using xsl transforming. I have several
>> logical events in my test plan and want to receive notification in my
>> result report.
>>
>> For example I have plan similar with the following:
>> -Loop
>> --HTTP Request
>> ---Timer (1sec)
>> ---RE Extractor (can extract message if it is in the response)
>> --if (isMessageReceived)
>> ---messageCounter++;
>> -if (messageCounter < 10)
>> --Error ! (I want to show this error in the result report)
>>
>> I send HTTP Request using wrong host name (for example: unknown host),
>> set HTTP Request name to error description and receive this error in my
>> result report.
>>
>> Seems it is wrong approach. Can somebody give me advice what should I
>> do for getting error notifications in my report?
>>
>> Thank you.

-- 
Regards,
Dmitry Kudrenko
ARDAS group http://ardas.dp.ua


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

Reply via email to