Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

rawResponseData is null in a LoadTest

$
0
0

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

 


Viewing all articles
Browse latest Browse all 20990

Trending Articles