17 years ago
can't get soapUI to save response message using groovy script
I'm trying to get soapUI to save the response I get from a webservice to a file, but somehow I keep getting the same error.
The code I use is as follows:
When I run this I get the following error:
What do I need to do to make this work?
The code I use is as follows:
def FileName = new FileWriter( "d:/out.txt" )
def ResponseMessage = testRunner.testCase.testSteps["Message"].testRequest.response.contentAsString
FileName.printIn( ResponseMessage )
When I run this I get the following error:
groovy.lang.MissingMethodException: No signature of method: java.io.FileWriter.printIn() is applicable for argument types: (java.lang.String) values: {" \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n "}
What do I need to do to make this work?