Forum Discussion

AnandPasayat's avatar
AnandPasayat
Occasional Contributor
14 years ago

Way Capture Response in HTML report/CSV file

Hello Everybody,

Do we have any way in SOAPUI that supports capture SAOP Response into HTML report/CSV file/Flat File, that can be used latter for some kind of analysis or report sharing purpose.

Thank you.

Regards,
Anand

1 Reply

  • Anand,

    If you mean by saving response for a test, I am using the simpler way by adding groovy script as below:

    def myOutFile = "C:/TEMP/webservice/Response/filename.xml"
    def response = context.expand( '${testcasename#Response}' )
    def f = new File(myOutFile)
    f.write(response, "UTF-8")

    Hope this will help.

    Regards,
    GS