SOAP UI : Groovy script to Store request files in local directory
//Path and File name to store request
def requestFile = "C://request.xml"
//Reading request content into an object
def request = context.expand( '${MyRequestName#Request}' )
//Accesing file created
def file = new File(requestFile)
//Writing request into the file created
file.write(request, "UTF-8")
//Path and File name to store request
def requestFile = "C://request.xml"
//Reading request content into an object
def request = context.expand( '${MyRequestName#Request}' )
//Accesing file created
def file = new File(requestFile)
//Writing request into the file created
file.write(request, "UTF-8")
No comments:
Post a Comment