Manimaran
12 years agoOccasional Contributor
Test Suite pass, but getting error
Hi,
I have setup test suite with groovy. My suite will run by taking data from excel and execute and write the results in the same excel. After execution i see my test suite is Passed with green color in all test steps. Transaction is properly done in backend too. But at last in the 'soapui log' and in 'error log' i see the below message. CAn anyone help me what could be the problem.
Thu Aug 22 12:59:40 EDT 2013:ERROR:groovy.lang.MissingMethodException: No signature of
method: java.io.File.close() is applicable for argument types: () values: []
Possible solutions: list(), list(java.io.FilenameFilter), use([Ljava.lang.Object;), use(java.lang.Class, groovy.lang.Closure),
use(java.util.List, groovy.lang.Closure), collect(groovy.lang.Closure)
groovy.lang.MissingMethodException: No signature of method: java.io.File.close() is applicable for argument types: () values: []
Possible solutions: list(), list(java.io.FilenameFilter), use([Ljava.lang.Object;), use(java.lang.Class, groovy.lang.Closure),
use(java.util.List, groovy.lang.Closure), collect(groovy.lang.Closure)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at Script1.run(Script1.groovy:23)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:96)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.runTearDownScript(WsdlTestCase.java:882)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalFinally(WsdlTestCaseRunner.java:175)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalFinally(WsdlTestCaseRunner.java:39)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:163)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I have setup test suite with groovy. My suite will run by taking data from excel and execute and write the results in the same excel. After execution i see my test suite is Passed with green color in all test steps. Transaction is properly done in backend too. But at last in the 'soapui log' and in 'error log' i see the below message. CAn anyone help me what could be the problem.
Thu Aug 22 12:59:40 EDT 2013:ERROR:groovy.lang.MissingMethodException: No signature of
method: java.io.File.close() is applicable for argument types: () values: []
Possible solutions: list(), list(java.io.FilenameFilter), use([Ljava.lang.Object;), use(java.lang.Class, groovy.lang.Closure),
use(java.util.List, groovy.lang.Closure), collect(groovy.lang.Closure)
groovy.lang.MissingMethodException: No signature of method: java.io.File.close() is applicable for argument types: () values: []
Possible solutions: list(), list(java.io.FilenameFilter), use([Ljava.lang.Object;), use(java.lang.Class, groovy.lang.Closure),
use(java.util.List, groovy.lang.Closure), collect(groovy.lang.Closure)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at Script1.run(Script1.groovy:23)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:96)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.runTearDownScript(WsdlTestCase.java:882)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalFinally(WsdlTestCaseRunner.java:175)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalFinally(WsdlTestCaseRunner.java:39)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:163)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)