cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate report for response in XML using command line.

ArnoldF
New Contributor

How to generate report for response in XML using command line.

I've tried this:

cmd.exe /C testrunner.bat "-sTCCS_TestSuite 1" "-cTxCompliance_TestCase 1" -a -fC:\Users\workspace_rest_api\TCCS\log -R"Data Export"  -FXML "-EDefault environment" -S "C:\Users\AppData\Roaming\Microsoft\Windows\Network Shortcuts\REST-Project-2-soapui-project.xml"

 

Output:

This file contains the Response result I needed but it is in txt file instead of xml. How can this output file be in xml?

TCCS_TestSuite_1-TxCompliance_TestCase_1-TCCS_REST__Request_1-0-UNKNOWN.txt

2 REPLIES 2
lakshmiarun
Staff

Re: How to generate report for response in XML using command line.

HI,

 

Thank you for posting in our forum.

 

I guess there is a error in your command line. Please try

 

cmd.exe /C testrunner.bat "-sTCCS_TestSuite 1" "-cTxCompliance_TestCase 1" -a -fC:\Users\workspace_rest_api\TCCS\log "-R Data Export"  -FXML "-EDefault environment" -S "C:\Users\AppData\Roaming\Microsoft\Windows\Network Shortcuts\REST-Project-2-soapui-project.xml"

 

Best,

Lakshmi

-------------Lakshmi

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
ArnoldF
New Contributor

Re: How to generate report for response in XML using command line.

Thanks for your reply. I tried your suggestion but still getting response output as text.

TCCS_TestSuite_1-TxCompliance_TestCase_1-TCCS_REST__Request_1-0-UNKNOWN.txt

 

And under the folder TCCSTestSuite-1 > TxComplianceTestCase-1:

empty_report.xml

metrics.xml

testCase.xml

TestCaseTestStepParameters.xml

TestCaseTestStepResults.xml

But none of these files contains the response. Only the txt file above contains the response.

Instead of this "TCCS_TestSuite_1-TxCompliance_TestCase_1-TCCS_REST__Request_1-0-UNKNOWN.txt" file that contains the response, can this be in "XML" instead?

 

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors