jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Which Beanshell?
Date Thu, 22 May 2014 17:38:18 GMT
http://jmeter.apache.org/usermanual/component_reference.html#BeanShell_PostProcessor
The variable is called "prev" not SampleResult


On Thu, May 22, 2014 at 8:35 AM, <loadtest@fastmail.fm> wrote:

> Hi,
>
> I am trying to print the response message when the thread is not an HTTP
> success.
>
> if (SampleResult.getResponseCode() != 200)) {
>         print(SampleResult.getResponseMessage());
> }
>
> I've put this in a beanshell assertion, but the test fails if the
> conditional returns false.
>
> I am then thinking this code should be in a beanshell post-processor,
> but then it seems the SampleResult class is not available in this
> post-processor (even with a SampleResult import).
>
> I am wondering where this code should go or whether I am taking the
> wrong approach?
>
> Many Thanks
>
> Paul
>
> ---------------------------------------------------------------------
> 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