Thanks Rao and Rupert,
I realy appriciate your response on this. I have supliment question. Actiually I am also storing the request along with the response by using the below code you suggested. But in my request xml , it store the path of custome properties instead of actual value used in the request. Is there anyway I could save the request with actual data. thanks in advanve for your help.
import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep
def folderPath = 'D:/TearDown/' + testSuite.name + '_' + System.currentTimeMillis() + File.separator
new File(folderPath).mkdirs()
// for each testCase in the testSuite
testSuite.testCases.each { testCaseName, testCase ->
// path for this testCase
def folderPathSuite = folderPath + testCaseName + File.separator
new File(folderPathSuite).mkdir()
// for each testStep
testCase.testSteps.each { testStepName, testStep ->
log.info testStep.class
if (testStep.class == WsdlTestRequestStep){
// define a file
def file1 = new File(folderPathSuite + testStepName + '_request.xml')
def file2 = new File(folderPathSuite + testStepName + '_response.xml')
// get the response and write to file
file1.write(testStep.getProperty('Request').getValue())
file2.write(testStep.getProperty('Response').getValue())
}
}
}