Search code examples
inputstreamgatlingassertionscalar

How does Gatling make size assertions on responsebody


I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this. I have a file download function. In JMeter, i can use Size Assertion to assert the size of ResponseBody. Does anyone know how to implement it in Gatling? Thanks in advance


Solution

  • Not sure what you're trying to very exactly.

    Just body binary length? => use a header check and verify the Content-Length header. Body integrity => use a md5 or sha1 check