ContributionsMost RecentMost LikesSolutionsSaving Test Results to FileHello, I have been saving test results to a file using an event: TestRunListener.afterStep with the following source. def filePath = 'c:/output/' def fileOutputStream = new FileOutputStream(filePath + testStepResult.testStep.label + '.txt', true) def printWriter = new PrintWriter(fileOutputStream) testStepResult.writeTo(printWriter) printWriter.close() fileOutputStream.close() This works great! One question I have though. Is it possible to write out all the same data but leave any password or username information out of the output? All other data is great... Thanks!Re: Error Message Dialog BoxAny word on the above error message. It comes up quite often and is rather annoying.Error Message at start upHello, I am receiving an error message when I start soapUI. Have I registered my key incorrectly? I am running: soapUI 4.5.1 Windows 7 Java 1.7.9Error Message Dialog BoxHow do I disable the error message that is attached. It is something about the soapUI on demand site. The message usually occurs when I first start soapUI but sometimes it just pops up in the middle of a test.Re: Groovy messageExchangeWoops, never mind. I needed to use a "Script Assertion". Thanks!Groovy messageExchangeHello, I am using: soapUI 4.5.1 Linux Mint 13 XFCE x86 Java 1.7.9 I am trying to set SLA time using this: def sla_time_taken = messageExchange.getTimeTaken(); def sla_time = context.expand( '${#Project#sla_time}' ).toInteger(); assert sla_time_taken < sla_time; But I receive an error message: ERROR [SoapUI] An error occured [No such property: messageExchange for class: Script9], see error log for details. I have tried to use an import statement like this: import com.eviware.soapui.model.iface Now adding that import gives me the following error message: ERROR [SoapUI] An error occured [No match found], see error log for details 17:56:01,255 ERROR [SoapUI] An error occured [startup failed: Script10.groovy: 1: unable to resolve class com.eviware.soapui.model.iface @ line 1, column 1. import com.eviware.soapui.model.iface ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class com.eviware.soapui.model.iface @ line 1, column 1. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:148) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1240) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:148) at org.codehaus.groovy.control.CompilationUnit$8.call(CompilationUnit.java:601) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:839) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:544) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:493) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:306) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:287) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:731) at groovy.lang.GroovyShell.parse(GroovyShell.java:743) at groovy.lang.GroovyShell.parse(GroovyShell.java:770) at groovy.lang.GroovyShell.parse(GroovyShell.java:761) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:148) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:93) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:89) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:149) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:274) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) What am I doing wrong? Any assistance would be greatly appreciated. Thanks!