cancel
Showing results for 
Search instead for 
Did you mean: 

org.codehaus.groovy.control.MultipleCompilationErrorsException on updation from 5.2.1 to 5.3.0

SOLVED
Highlighted
New Contributor

org.codehaus.groovy.control.MultipleCompilationErrorsException on updation from 5.2.1 to 5.3.0

I updated my soapui from 5.2.1 to 5.3.0

now when i am running my groovy script, i am receiving following error.

 

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script8.groovy: 3: unable to resolve class com.ecologic.qa.api.GetHostName @ line 3, column 1. import com.ecologic.qa.api.GetHostName; ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class com.ecologic.qa.api.GetHostName @ line 3, column 1. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:146) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1145) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:141) at org.codehaus.groovy.control.CompilationUnit$10.call(CompilationUnit.java:632) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:912) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:574) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:523) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:613) at groovy.lang.GroovyShell.parse(GroovyShell.java:625) at groovy.lang.GroovyShell.parse(GroovyShell.java:652) at groovy.lang.GroovyShell.parse(GroovyShell.java:643) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:136) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:87) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 1 error

 

 

 

This is the groovy code I am using:

 

import com.eviware.soapui.impl.wsdl.WsdlProject;
import com.ecologic.qa.api.GetHostName;

//Set Up IP
WsdlProject project = (WsdlProject) testRunner.getTestCase().getTestSuite().getProject();

String ip = com.ecologic.qa.api.GetHostName.getIP();

project.setPropertyValue("ReplyAddress","http://" + ip + ":8088/mockSOAP");
log.info(project.getPropertyValue("ReplyAddress"));


//Set up environment
com.ecologic.qa.api.SoapUI.GetAPI(testRunner, log, context).PromptForSetup();

//Set up Security
com.ecologic.qa.security.SetSecurityCredentialsGUI.setCredentials(testRunner,log,context);

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
New Contributor

Re: org.codehaus.groovy.control.MultipleCompilationErrorsException on updation from 5.2.1 to 5.3.0

Got the solution.

JAR files were missing in /bin/ext folder. After placing them there, step ran successfully.

View solution in original post

2 REPLIES 2
Highlighted
New Contributor

Re: org.codehaus.groovy.control.MultipleCompilationErrorsException on updation from 5.2.1 to 5.3.0

Got the solution.

JAR files were missing in /bin/ext folder. After placing them there, step ran successfully.

View solution in original post

Highlighted
Occasional Contributor

Re: org.codehaus.groovy.control.MultipleCompilationErrorsException on updation from 5.2.1 to 5.3.0

Why don't you list down the jar names with probably screenshot and versions of your Soap UI and POI

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors