jeudi 15 juin 2017

How to print request and response message in SoapUI result xml

I am trying to execute some tests in SoapUI via command line.

Command example:

C:\Program Files\SmartBear\SoapUI-5.2.1\bin\testrunner.bat -s
"TestSuite 1" -c "Test001" -M -j -f "c:\auto" -r "C:\soapui-project.xml"

And output file is something like that:

<con:testCaseRunLog ...>
    <con:testCaseRunLogTestStep name="step 1 name" status="OK" ... />
    <con:testCaseRunLogTestStep name="step 2 name" status="OK" ... />
    <con:testCaseRunLogTestStep name="step 3 name" status="FAILED" ...>
        <con:message>[LA is valid] XPathContains assertion failed for path [//Row[1]/EXTERNAL_ID[1]] : Exception:Missing content for xpath [//Row[1]/EXTERNAL_ID[1]] in Response</con:message>
    </con:testCaseRunLogTestStep>
</con:testCaseRunLog>

At this time prints only the assertions when failling. I don't understand much of SoapUI but how can I print or configure some log to include soap requests/responses or queries/results(steps with JDBC) in output file for each step?

Examples:

<con:request>...</con:request>
<con:response>...</con:response>

or more tags like:

<con:message>

Aucun commentaire:

Enregistrer un commentaire