Question

I am using SoapUI 2.5.1 - evaluation version

In a testcase, how to save the response messages along with requests in a SoapUI project ?

Here is what is happening currently: When I create a Web service SoapUI project and send SOAP request for an operation, I get a response XML. Now after saving the soapUI and exiting the tool - when I open it again I see the response XML tab as empty. alt text

Why only request gets saved and not responses - Is it a bug in SoapUI ?

Thanks -Arun

Was it helpful?

Solution

As Thomas Bratt indicates, the response is not saved because in most cases, it doesn't make sense to do so. SoapUI is intended for testing; if you want to save your test results, you'll have to do that explicitly.

To save a specific response message, use the context menu of the response editor, (or press Ctrl+S), and save it to file. You can load it back if you want, using the same context menu (or press Ctrl+L).

OTHER TIPS

The response is not saved because it may vary between calls.

I think the logic is that only the requests need to be saved. The responses are generated by the server automatically each time.

For example, a 'get time' SOAP method would return a different result each time. I use SOAP-UI at work for communicating with a SOAP server that brokers video connection requests and returns an error code. The error code is different each time so it does not make sense to save it.

You can use the context menu of the request to create a test case. This will let you check the response against the WSDL schema and also assert that the response does not contain a SOAP fault.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top