Forum Discussion
NOT WORKS. I am using the ReadyAPI v 2.8.
I am unable to read request body.. So unable to return valid response to my Application under test = I am unable to test it = unable to use this tool for testing.
This topic is here sooo loooong.. And no solution? I am surprised. So nobody from SmartBear was working on it? It means, that we are paing for licenses, but no effect?
Please can somebody tell me, how to read POST body request ? because I must return some string value from it back to AUT..
HI vikititor,
In the Dispatch script, a request content can be retrieved as follows:
mockRequest.getRequestContent()
In the latest ReadyAPI version it works for POST, PUT and the other supported HTTP methods.
Please check the screenshot:
Please double-check your configuration and if it still does not work for you as expected, submit a new support case: https://support.smartbear.com/message/?prod=ReadyAPI
- vikititor5 years agoContributor
OK, OK.. on this place dispacher script this works...
But before I will send the response, I need create it.. How to transform readed value from this script to the response script?
Because I just tryed on response script, where this was really not working.
This is my needs.
* read request send to MOCK server, parse some values
* prepare response to AUT using this values
* solution must be thread save, because my AUT sends a lot of requests per seccond. I can not use properties..
- AlexKaras5 years agoChampion Level 3
Hi,
Have you seen my reply here: https://community.smartbear.com/t5/Service-Virtualization-Virtual/how-MOCK-read-request-data-from-attachement/m-p/193441/highlight/true#M692 ?
Does it help?
Related Content
- 10 months agosal21
- 3 years agoSteveGregory