public AssertionResult org.apache.jmeter.assertions.getResult(SampleResult response) { can be fixed with one different statement: long resultSize = resultData// .length; .getBytes(); this is useful for the MailReaderSamplers as per bug 45005 see also bug 45006 (to be able to easily fix this ourselves)
Please explain what is going wrong in a bit more detail - why does it only affect mime messages?
With MIME-messages, SizeAssertion currently takes the body length as "size" and does not include additional attachment(s). However, code above is not correct, it should be: long resultSize = // resultData .length; response.getBytes();
Still not sure I understand. Which sampler are you using?
MailReaderSampler (the enhanced one, but standard version should cause identical problems). We're receiving a MIME-message with attachment, but SizeAssertion doesn't include the attachment size into its counts.
OK. Some samplers don't store the full response data; but in that case they set the bytes count in the response. SizeAssertion did not take this into account. Fixed in SVN: URL: http://svn.apache.org/viewvc?rev=661311&view=rev Log: Bug 45093 - SizeAssertion did not call getBytes()
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2117