14 years ago
Getting "unable to resolve class" with scriptom
Hi,
I'm a newbie at using LoadUI and SoapUI. The testcase I'm trying to run reads data from an excel spreadsheet and update the information in the request message sent to server. I'm getting the following error when trying to execute the testcase in loadUI b/c of the scriptom module I used. Is there a way to add the classpath to loadUI similar to soapUI?
Thanks in advance.
I'm a newbie at using LoadUI and SoapUI. The testcase I'm trying to run reads data from an excel spreadsheet and update the information in the request message sent to server. I'm getting the following error when trying to execute the testcase in loadUI b/c of the scriptom module I used. Is there a way to add the classpath to loadUI similar to soapUI?
startup failed:
Script3.groovy: 1: unable to resolve class org.codehaus.groovy.scriptom.ActiveXObject
@ line 1, column 1.
import org.codehaus.groovy.scriptom.ActiveXObject
^
org.codehaus.groovy.syntax.SyntaxException: unable to resolve class org.codehaus.groovy.scriptom.ActiveXObject
@ 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:88)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:148)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:232)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:141)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:42)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
at com.eviware.loadui.components.soapui.SoapUISamplerComponent$SoapUITestCaseRunner.run(SoapUISamplerComponent.java:975)
at com.eviware.loadui.components.soapui.SoapUISamplerComponent.sample(SoapUISamplerComponent.java:831)
at com.eviware.loadui.impl.component.categories.RunnerBase.doSample(RunnerBase.java:496)
at com.eviware.loadui.impl.component.categories.RunnerBase.access$700(RunnerBase.java:70)
at com.eviware.loadui.impl.component.categories.RunnerBase$Worker.run(RunnerBase.java:773)
at com.eviware.loadui.util.dispatch.CustomThreadPoolExecutor$Worker.run(CustomThreadPoolExecutor.java:188)
at java.lang.Thread.run(Unknown Source)
1 error
17:40:31:500 Cancelling due to failed test step
Thanks in advance.