Forum Discussion
nmrao
8 years agoCommunity Hero
Can you elaborate your use case?
InekeBauw
8 years agoOccasional Contributor
I have a testcase with 2 teststeps.
First teststep is a SOAP requests that gives an XML response.
Second teststep is groovy script that will save the XML response.
Groovy script:
def date = new Date()
def dts = date.format("yyyy-MM-dd-HH-mm-ss")
//Write Request to XML File
def myXmlRequest = "C:/Data/Request"+dts+".xml"
def request = context.expand('${SOAP Request}')
def req = new File(myXmlRequest)
req.write(request, "UTF-8")
Is there anyway that you can say in groovy just save the result for the last executed teststep instead of now using context.expand('${SOAP Request}')