Why testrunner report files don't store request body when using "Run TestCase" type ?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why testrunner report files don't store request body when using "Run TestCase" type ?
Hello,
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="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header>
...
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="http://schemas.xmlsoap.org/soap/envelope/">
.....
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I found the solution to my problem, it is posted into https://community.smartbear.com/t5/SoapUI-NG/Request-Body-not-shown-raw-tab/td-p/26460. 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
Simon
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
