Forum Discussion
4 Replies
Sort By
- nmraoChampion Level 3One way could be to pass the value as http header and details can be found in the below thread:
http://stackoverflow.com/questions/37456599/soapui-mock-service-response-based-on-calling-test-case/37522649#37522649- nefsirNew Contributor
Yes, that's one way for sure but I issue request from SoapUI to SUT and SUT is sending request to MockService.
I can't add anything in this SUT -> MockService request...- nmraoChampion Level 3Not sure what you mean by that. As long as it is part of header, the mocker service should be able read the same. It was not just limited for SoapUI. May be you want to clarify otherwise.
- KarelHusaChampion Level 2
I use some of the elements of the request to carry the testing information.
Especially if different mock services share a same set of XML elements, than all of them are handled with the same Groovy script.
The groovy script does the work: parses the request message, reads the information with XPath and does what required (chooses the response message, populates some values, sets HTTP headers, waits a specific delay etc.).
Karel
Related Content
- 10 years ago
- 8 years ago
Recent Discussions
- 3 days ago