En/na Vincent Partington ha escrit:
Hi,
The class ResponseAssertion (in ApacheJMeter 1.9.1) has the following bit of code:
public AssertionResult getResult(SampleResult response) { AssertionResult result; if (!response.isSuccessful()) { result = new AssertionResult(); result.setError(true); result.setFailureMessage( new String((byte[]) response.getResponseData())); return result; } result = evaluateResponse(response); return result; }
This causes a response assertion to always return "error=true" with the response data as the failure message when an earlier assertion (such as a duration assertion) caused a failure.
Why is this? The other assertion don't do this. Also, if I do the response assertion _before_ the duration assertion this problem does not happen.
Using the response data as the failure message causes problems when the response data is binary (see my earlier post about UTF-8/ISO-8859-1).
Regards, Vincent.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

