Showing results for 
Search instead for 
Did you mean: 

Mock Response - Script returned null

Occasional Contributor

Mock Response - Script returned null

Please could someone advise with the blow query.


I have set up a Mock Response, which succesfully responds to the incomming request. I am trying to extract certain details from the inbound request using the 'SCRIPT' dispatch method. 


I have added the following line, but when I execute it returns 'Script returned [null]'


def holder = new mockRequest.requestContent )

 Am I missed something as I can see the request arriving in the 'Request' window.


Many thanks,

Community Hero

Re: Mock Response - Script returned null

Would you please provide the sample input data and the output expected? That would help better understanding of the issue.