Running SOAP Test in mvn to log the request and response

Viewed 20

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.

<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">```


Can you please help?
Thank you
0 Answers
Related