Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
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
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