jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From loadt...@fastmail.fm
Subject Which Beanshell?
Date Thu, 22 May 2014 15:35:20 GMT
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
View raw message