Forum Discussion

jmcquaid's avatar
jmcquaid
New Contributor
13 years ago

Exporting all results to xml file

Hi,
I'm trying to export all of the results from a soapui run to an xml file, so I can take the file and create the report I need. The problem is, this only works from within Soapui, but not when the tests are run from the command line- eg:
testrunner.bat -a -fC:\Users\james\Desktop -FXML C:\soapui-ttc\james\james-project-soapui-project.xml

I've tried using the parameters listed here, but no luck:
http://www.soapui.org/Test-Automation/f ... tests.html

Does anyone know if this can be done?
  • jmcquaid's avatar
    jmcquaid
    New Contributor
    Just found the solution:
    you pass the parameter: -R"Data Export"

    testrunner.bat -a -fC:\Users\james\Desktop\temp -R"Data Export" -FXML -EDefault C:\soapui-ttc\james\quick-test-api\quick-test-soapui-project.xml
  • Did you check it with soapui-pro 4.5.1?

    In my case running testrunner.bat with such params:
    testrunner.bat -R"Data Export" -FXML "my-soapui-project.xml"

    causes error in SoapUI:
    java.lang.NullPointerException
    at com.eviware.soapui.reporting.engine.export.XmlExporter.export(SourceFile:21)
    at com.eviware.soapui.reporting.engine.export.ExportReportEngine$GeneratableExportReport.generate(SourceFile:111)
    at com.eviware.soapui.SoapUIProTestCaseRunner.generateReports(SourceFile:230)
    at com.eviware.soapui.SoapUIProTestCaseRunner.runProject(SourceFile:209)
    at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:407)
    at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:158)
    at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:89)
    at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:58)

    the exported file is created, but error in SoapUI causes script executing testrunner.bat to abort.

    is there any more detailed explanation of possible parameters for -R and -F?
    http://www.soapui.org/Test-Automation/f ... tests.html is less than I expect