50ReggieTest
10 years agoOccasional Contributor
Response Size: Why does size() and rawResponseData.length is showing differerent response sizes?
Hi,
I am writing a groovy script that will record the response time of SOAP queries. BUT I am getting different Response sizes between this two lines. I was checking which one of them is accurate. Unfortunately, none of these two is similar to what is shown in the Response Log of my SOAP Response.
log.info PropertyName.size()
and
responseSize = testRunner.runTestStepByName("PropertyName").rawResponseData.length
log.info responseSize
size() is displaying: 51667
rawResponseData.length is displaying: 30716
But the actual Response size from the Response Log is 30588 bytes
Kind regards,