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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to