Summary: | size assertion incorrectly processes the size of mime messages | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | Ralf Hauser <hauser> |
Component: | Main | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | michael.tschannen |
Priority: | P2 | ||
Version: | 2.3.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Ralf Hauser
2008-05-29 01:55:24 UTC
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 |