jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: when is a sample not a sample?
Date Tue, 09 Apr 2013 19:05:45 GMT
On 9 April 2013 07:25, Stott, Charlie <CStott@tnsi.com> wrote:

> Hi,
>
> I am wondering if and how it is possible to exclude the results of a
> specific sample (or at least disregard it) from the results.
>
> We have a dual stripe system which can be tested in online or offline
> mode.  To automate the decision we can request a status page, and act on
> the results.  Not all our test systems have dual stripes, so the request
> fails.  However, this is a valid situation.
>
> I always want to lookup the status page, but only if it exists and only if
> it responds a certain way do I want it to affect the test run.
>
> I am finding the situation where it is not available is being recorded as
> a test failure.
>
> Effectively, I want to perform the request as a pre-processor of another
> sample, but it seems overkill to write it in java/beanshell/someotherlang
> code.  Is there anything like a HTTP Request pre-processor, or a flag I can
> set somewhere that says ignore this sample on error?
>

You can use the Response Assertion to reset the failure flag.
That's used (for example) when checking for 404 responses, which by default
are failures.

Just use an assertion test that's bound to succeed.


> Thanks in advance,
> Charlie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message