Forum Discussion
omatzura
19 years agoSuper Contributor
Hi!
This should definitely be possible, it's the main use-case for the MockResponse TestStep.. you need to
1) add a MockResponse step to your testcase after the request
2) configure which interface/operation it should mock and the response it should return.
- You can add assertions for the incoming request just like for the response in a testrequest step.
When running the TestCase, soapUI Pro will start a listener when it comes to your MockResponse step and wait for the incoming request as configured (ie port/interface/operation).. once received it will return the configured response and move on to the next step in your TestCase..
Hope this gets you started, please post again otherwise!
regards,
/Ole
eviware.com
This should definitely be possible, it's the main use-case for the MockResponse TestStep.. you need to
1) add a MockResponse step to your testcase after the request
2) configure which interface/operation it should mock and the response it should return.
- You can add assertions for the incoming request just like for the response in a testrequest step.
When running the TestCase, soapUI Pro will start a listener when it comes to your MockResponse step and wait for the incoming request as configured (ie port/interface/operation).. once received it will return the configured response and move on to the next step in your TestCase..
Hope this gets you started, please post again otherwise!
regards,
/Ole
eviware.com