Liberty_Informa
12 years agoRegular Contributor
Re: Hanging cron jobs
Thanks for this fantastic tip.
Now I have following code in the groovy test step
THe problem with thic code is that testStepResult is not recognised. THe error is MissingPropertyException. No such property. Please suggest what change should I make to make it working.
Help appreciated!
Now I have following code in the groovy test step
import com.eviware.soapui.impl.wsdl.*;
def householdVar = context.expand( '${<<testcaseName>>#Response#declare namespace <<All namespaces>>}' )
log.info householdVar
filePath = '<<Path till where file will be created>>'
fos = new FileOutputStream( filePath + testStepResult.testStep.label + '.txt', true )
pw = new PrintWriter( fos )
testStepResult.writeTo( pw )
pw.close()
fos.close()
THe problem with thic code is that testStepResult is not recognised. THe error is MissingPropertyException. No such property. Please suggest what change should I make to make it working.
Help appreciated!