Forum Discussion

Front_Porch_Dig's avatar
Front_Porch_Dig
New Contributor
15 years ago

soapUI integration with Maven 2.0: can't locate Scripting Li

Hi,
we are trying to integrate our soapUI Pro tests with Maven 2.0. We have several scripts in Scripting Library. We’ve set our custom Scripting Library folder in soapUI’s project’s Preferences.
When we run our tests from soapUI everything works fine, but it seems that when we run them during Maven build soapUI cann’t locate Scripting Library folder and we get the following error:

15:21:51,890 ERROR [SoapUI] An error occured [No such property: Utils for class:
Script1], see error log for details
groovy.lang.MissingPropertyException: No such property: Utils for class: Script1

at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptByteco
deAdapter.java:49)
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(
PogoGetPropertySite.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjec
tGetProperty(AbstractCallSite.java:239)
at Script1.run(Script1.groovy:15)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.
run(SoapUIGroovyScriptEngine.java:93)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(W
sdlGroovyScriptTestStep.java:148)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(
WsdlTestCaseRunner.java:207)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(
WsdlTestCaseRunner.java:138)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(
WsdlTestCaseRunner.java:39)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractT
estRunner.java:139)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)
15:21:51,906 ERROR [SoapUITestCaseRunner] InitParametersValues failed, exporting
to [C:\SVNRoot\DIVArchiveWS\divarchive-ws-impl/target/soapui/output\ParametersT
est-DIVArchiveWSHttpBinding_TestSuite-InitParametersValues-0-FAILED.txt]

“Utils” form error message in exception is our groovy script located in Scripting Library folder and it seems like soapUI doesn’t see it.

We are trying to add our soapUI project to Maven’s pom.xml in the following way:

<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>3.6.2-SNAPSHOT</version>
<configuration>
<settingsFile>${basedir}/src/test/resources/soapui-settings.xml</settingsFile>
<projectFile>${basedir}/src/test/resources/project-name-soapui-project.xml</projectFile>
<outputFolder>${basedir}/target/soapui/output</outputFolder>
<printReport>true</printReport>
<junitReport>true</junitReport>
<exportAll>true</exportAll>
<soapuiProperties>
<property>
<name>soapui.logroot</name>
<value>${basedir}/target/soapui/logs/</value>
</property>
<property>
<name>soapui.scripting.library</name>
<value>${basedir}/src/test/groovy/</value>
</property>
</soapuiProperties>
</configuration>
<executions>
<execution>
<id>soap-integration-test</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>



Please, advise what may be the reason of the issue we are experiencing.

Thank you,
Front Porch Digital Support.
  • Hi!

    are you sure the soapui-settings.xml file specified here is the one being used by soapUI? (this file contains the path to the script library)

    regards,

    /Ole
    eviware.com