Forum Discussion

scierniak's avatar
Occasional Contributor
7 years ago

Why testrunner report files don't store request body when using "Run TestCase" type ?



When executing some SOAPUI tests having steps of type "Run TestCase" using testrunner, why the report files generated do not contain the body of POST requests ? is there an option to log them ?  Into the UI, I can see the request body in Raw request.


Example from UI (Raw request):


POST xxxxxxxxxxxxxxxxxxx/xml HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml;charset=UTF-8
Content-Length: 1627
Host: xxxxxxxxxxxxxxxxxxx 
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="" xmlns:ds="" xmlns:xlink="" xmlns:xsi="">


Example from testrunner report file:


----------------- Properties ------------------------------
StatusCode: 200
Method: POST
HTTP Version: HTTP/1.1
Endpoint: https://xxxxxxxxxxxxxxxxxxx
URL: https:/xxxxxxxxxx/xml

---------------- Request ---------------------------
Host: [xxxxxxxxxxxxxxxxxxx]
Content-Length: [1591]
Accept-Encoding: [gzip,deflate]
User-Agent: [Apache-HttpClient/4.1.1 (java 1.5)]
Connection: [Keep-Alive]
Content-Type: [application/xml]

---------------- Response --------------------------
#status#: [HTTP/1.1 200 OK]
Content-Length: [1528]
Content-Encoding: [gzip]
Content-Type: [application/soap+xml; charset=utf-8]

<soap:Envelope xmlns:soap="">


2 Replies

  • scierniak's avatar
    Occasional Contributor



    I found the solution to my problem, it is posted into But  in my case, I was running my project in Jenkins through the soapui maven plugin and it was not showing payload when running on a slave without any soapui tool installed.


    So the solution has been to define the option "settingsFile" in my pom.xml in order to reference a soapui-settings.xml file having the option "Vaidate Requests" set to true. Not sure, why Maven plugin has a dependency with the tool itself ?


    I hope it will help someone



    • nmrao's avatar
      Champion Level 3
      Well, setting "Vaidate Requests" likely will have a hit if you need to test negative tests such as to see how server side behaves if a an invalid request is fired.