How to save response while saving SoapUI project

I am using SoapUI 2.5.1 - evaluation version

In a test file, how to store the response messages along with the requests in the SoapUI project?

This is what is currently happening: When I create a SoapUI web service project and send a SOAP request for an operation, I get an XML response. Now after saving soapUI and exiting the tool - when I open it again, I see the XML response tab as blank. alt text http://i44.tinypic.com/2588qid.jpg

Why only the request is saved and not the responses - Is this a bug in SoapUI?

Thanks -Arun

+3


a source to share


2 answers


As Thomas Bratt points out, the answer doesn't persist because it doesn't make sense most of the time. SoapUI is for testing; if you want to save the test results, you have to do so explicitly.



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

+5


a source


The answer is not saved as it may differ between calls.

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



For example, the SOAP method "get time" will return different results each time. I'm using a SOAP interface to work with a SOAP server that makes video calls and returns an error code. The error code is different every time, so saving it is meaningless.

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

+3


a source







All Articles