Knowledge
9 years agoContributor
Setting excepted data to MockService before sending the initial request
Hi,
In one of my test scenarios, a SoapUI REST test step sends a request to REST web service that in turn sends another request (based on the original request) to a SoapUI REST Mock Service.
(Note: The test case and REST Mock Service pertinent to the same SoapUI project)
In the SoapUI REST Mock Service I need to check an incoming request in order to make sure that this request contains valid data.
In generall, I can do it using Groovy script in “OnRequest script” or in “AfterRequest script”.
The question is: How I can set (or transfer, or load) expected data to the REST Mock Service before sending initial rest request?
Thanks