Forum Discussion

ArnoldF's avatar
ArnoldF
New Contributor
7 years ago

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

  • lakshmiarun's avatar
    lakshmiarun
    SmartBear Alumni (Retired)

    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

  • ArnoldF's avatar
    ArnoldF
    New Contributor

    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?