Forum Discussion
There is a way that you can save Request/Response without having to script in Ready API which is what I would recommend. Use the datasink teststep and use property expansion to pick up full request and full response, more information about this here:
https://support.smartbear.com/readyapi/docs/soapui/steps/data-sink.html?#datasink-types
Let me know if this is helpful.
Thanks for the reply, appreciate the helping hand.
I'm sure you're right and it would also be a viable option to work with datasink, but I'd honestly rather stick to fixing the existing groovy script, as I plan to do more with it than just saving. (Also it worked until recently so I feel the solution must be close by.)
Would you perhaps have an idea what could be causing the NPE?
- TSanchez_16 years ago
Staff
ll take a closer look at the script and get back to you.
- 88scythe6 years agoNew Contributor
Extra info: I just noticed that actually, both files (request and response) for the first SOAP call are getting stored.
Only, the request file contains the actual request data, while the response file is empty.
In the SOAP call itself I see a normal, valid reply.
The second SOAP call isn't getting stored (no request file, no response file), while also this request itself is going fine. / I realise that in the screenshot of this topic I had the second SOAP call disabled, but meanwhile I have enabled it again.
I though that maybe the Groovy script tried saving the request / response too soon, but even when adding delay steps of 5 seconds I'm still getting the NPE.