Bug 42918

Summary: Size assertion "less than" fails if response is 0 bytes
Product: JMeter - Now in Github Reporter: Ivan Rancati <irancati>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P3    
Version: 2.3   
Target Milestone: ---   
Hardware: Other   
OS: Linux   

Description Ivan Rancati 2007-07-17 05:43:04 UTC
2.3 RC3 on Linux Ubuntu, sun jdk1.5.0_10

I am testing a service that downloads files, and I lumped in a controller all
the error cases (where a file is not downloaded).
Some test cases return a small response body which is an error message, some
return a null body.
To double check that no file is actually downloaded, I am using a Size Assertion
and the criteria is "less than 500 bytes"

The small inconvenience is that the test cases with a null response body fail;
I see this error in Assertion Results

"Response was null"

Maybe it's more a specifications issue, but I think "null" should not fail "less
than x bytes"
Comment 1 Sebb 2007-08-11 04:13:10 UTC
Agreed - now fixed in SVN r564895.
Comment 2 The ASF infrastructure team 2022-09-24 20:37:39 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1977