cancan
12 years agoOccasional Contributor
Creating log files from mock service
Hi everybody,
we are trying to test a tool with the help of soapui. When I send a message from these tool, I can get back answer from the mock service.
However I cannot save or create these log files with request or response in my computer, what I mean is, that the created log files are empty
I have done in OnRequest Script till now:
def timestamp = System.currentTimeMillis()
def directory = "c:\\dump"
def requestFile = new File(directory, "request_${timestamp}.xml")
context.requestContent = context.expand( context.requestContent )
requestFile.write(context.requestContent)
CAN YOU PLEASE HELP ME?
ps: mockRequest or messageExchange are not accepted in OnRequest or AfterRequest Script!
we are trying to test a tool with the help of soapui. When I send a message from these tool, I can get back answer from the mock service.
However I cannot save or create these log files with request or response in my computer, what I mean is, that the created log files are empty
I have done in OnRequest Script till now:
def timestamp = System.currentTimeMillis()
def directory = "c:\\dump"
def requestFile = new File(directory, "request_${timestamp}.xml")
context.requestContent = context.expand( context.requestContent )
requestFile.write(context.requestContent)
CAN YOU PLEASE HELP ME?
ps: mockRequest or messageExchange are not accepted in OnRequest or AfterRequest Script!