Running SOAP Test in mvn to log the request and response
Running a SOAP test using the below command
mvn -f tests/pom.xml clean verify "testName"
The log would look like the below
11:41:01,940 INFO [SoapUIProTestCaseRunner] running step [Order Gen]
11:41:01,940 INFO [SoapUIProTestCaseRunner] running step [Create Order]
11:41:01,940 INFO [SoapUIProTestCaseRunner] running step [Query Order]
How do I log both request and response even for success case? Currently, the request and response is only logged on failure. Setting, postQueryString="true" didnt help. Can you please help? Thank you
<con:testStep type="restrequest" name="Create Order"> <con:settings/> <con:config service="HostedBatch" methodName="SomeMethodName" resourcePath="XXXXX" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <con:restRequest name="SomeRequestName" mediaType="application/json; charset=ISO-8859-1" postQueryString="true">```
Even the below call didn't help. mvn -f tests/pom.xml "-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true" "-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true" "-Dcom.sun.xml.internal.ws.transport.http.HttpAdapter.dump=true" "-Dcom.sun.xml.internal.ws.transport.http.HttpAdapter.dumpTreshold=999999" clean verify "testName"