Forum Discussion

GerardOakley's avatar
GerardOakley
New Contributor
13 years ago

Can I export soapUI results?

I am an analyst using Soap UI Pro 4.0.1. I am testing webservices and get results in XML. However, because of the large set of data in the test results, I would like to see it in XLS. Is there a way to export the file to XLS or save the results and open with another application?

3 Replies

  • meldoobs's avatar
    meldoobs
    Occasional Contributor
    i've been saving my responses to a .txt file using the following code in a groovy script (you need to replace myTestStepName and have project level property called Location with the file path you want to save to)

    //get testSuite name
    def filename = testRunner.testCase.testSuite.name

    //get directory from Project Properties
    def directory = testRunner.testCase.testSuite.project.getPropertyValue( "Location" )

    //define the file location and name
    def outputFile = new File(directory, "${filename}.txt")

    //start writing stuff to it

    outputFile.append( context.expand('${myTestStepName#Response}') )