Forum Discussion

PeterKlim's avatar
PeterKlim
Contributor
12 years ago

Easy way to view failed XML Response with Request

The LoadTest Log (located in the screen where you click the Run button to run a load test) displays Failed steps. I can double-click each one to display the failed XML request. But here are the additional things I would like to do but do not know how or if it is even possible:

1. Find the matching XML response.
2. Find a simple way to collect the failed XML requests and responses into a file or folder.

Any help would be much appreciated!

Peter

3 Replies

  • Hi,

    You can view the matching xml response from the same message viewer. You just need to select response tab. See attached image for example

    Also, you can use the reporting feature if you want to collect the information on a file. I would recommend you to have a look at this link http://www.soapui.org/Load-Testing/expo ... stics.html

    Regards,
    Shadid
    SmartBear Sweden
  • Hi, I was away from this project and never was able to solve this. Now I need to work on this (for another application to test). I did look at the given link, but that seems more for exporting test data.

    My test will submit requests in the form of XML files, and the system I am testing will return an XML response for each one submitted. I need to store each XML response as a file (there will be THOUSANDS) into a folder so a team of testers can review after the test ends. Ideally we would want to set it up so failed responses go into one file while the passing ones go into another.
  • Hi,

    You can have a DataSink testStep added and use file in the DataSink option, and check the append option.
    You can save the response this way.

    To divide the response in two files add a groovy script and set the file path dynamically based on error or response.
    def testStep = testRunner.testCase.getTestStepByName("DataSink")
    testStep.setFileName(String fileName)

    set the file path dynamically based on the response. So if response has error set the error file if proper response set the proper file.
    http://www.soapui.org/apidocs/pro/com/e ... aSink.html


    Thanks,
    Jeshtha