juju44
10 years agoNew Contributor
rawResponseData is null in a LoadTest
Hi,
I have a TestCase containing a REST Step and Groovy Script Step.
The REST Step return a picture (Content-Type: image/png)
The script needs to get the full response of the first REST step, including headers, as a byte array. (because i'am using a library later)
This is the beginning of the scritp :
def image = testRunner.testCase.testSteps['getGrid'].testRequest.response.rawResponseData log.info(image)
The test suite works fine on a unitary launch.
But when i create a LoadTest the script step fail because image var is null.
Is there an other way to get the rawResponseData ?
Thanks & Regards