[ptt-users] Exception in soapUI test with jar-dependency

Jon Disen jon.disen at abeldrm.com
Mon Sep 17 03:01:35 PDT 2007


Hello,

I have problems running a soapUI testcase which includes a groovy-script
using the ant-task SQLExec. If I start soapUI from TestMaker and runs the
test from there, everything works fine.

 

I have declared the jar's (ant-launcher-1.6.5.jar  and ant-1.6.5.jar) in the
<resources> tag in the test-scenario xml file like this:

   <resources>

      <jar path="./lib/soapui/bin/ext/ant-launcher-1.6.5.jar"/>

      <jar path="./lib/soapui/bin/ext/ant-1.6.5.jar"/>

      <soapui path="Quintic-soapui-project2.xml"/>

   </resources> 

 

The console output says:

Trying Quintic-soapui-project2.xml

Warning: SOAPUI not installed

Continue test without validating SOAPUI

The test is valid.

                -              The functional test is running     -

                -              Test Resources                 -

XML Scenario:   C:\PushToTest_TestMaker\RequestNewSubscriptionTest.xml

JAR File:               ./lib/soapui/bin/ext/ant-launcher-1.6.5.jar

JAR File:               ./lib/soapui/bin/ext/ant-1.6.5.jar

SOAPUI File:       Quintic-soapui-project2.xml

                -              Loading Scenario
-

The node localhost is valid

The node localhost has loaded the scenario

Node localhost: Test done 0 times

                -              Functional Test results                   -

The node localhost had finished the test with some errors

Functional test failed.

The local TestNode output is:

Running a functional test

Executing time 0

Trying .\localhost\Quintic-soapui-project2.xml

- Creating new settings at
[C:\PushToTest_TestMaker\TestNetwork\TestNode\soapui-settings.xml]

- Loaded project from
[C:\PushToTest_TestMaker\TestNetwork\TestNode\.\localhost\Quintic-soapui-pro
ject2.xml]

Triying suite TestNewValidSubscription

Using com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase at 1c88f2b

- org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed, Script1.groovy: 2: unable to resolve class
org.apache.tools.ant.Project

 @ line 2, column 1.Script1.groovy: 3: unable to resolve class
org.apache.tools.ant.taskdefs.SQLExec

 @ line 3, column 1.

2 errors

 

Functional test failed.

The local TestNode error is:

java.lang.reflect.InvocationTargetException

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

                at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.execute(Script
Runner.java:982)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.runJustOne(Scr
iptRunner.java:667)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.TestusecaseRunner.runOneTim
e(TestusecaseRunner.java:383)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner.runFunct
ionaltest(TestscenarioRunner.java:288)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner.access$0
00(TestscenarioRunner.java:91)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner$Function
alTest.run(TestscenarioRunner.java:272)

Caused by: java.lang.Exception: SOAPUI Test failed

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.runSOAPUI(Scri
ptRunner.java:314)

                ... 10 more

java.lang.reflect.InvocationTargetException

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

                at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.execute(Script
Runner.java:982)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.runJustOne(Scr
iptRunner.java:667)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.TestusecaseRunner.runOneTim
e(TestusecaseRunner.java:383)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner.runFunct
ionaltest(TestscenarioRunner.java:288)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner.access$0
00(TestscenarioRunner.java:91)

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner$Function
alTest.run(TestscenarioRunner.java:272)

Caused by: java.lang.Exception: SOAPUI Test failed

                at
com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.runSOAPUI(Scri
ptRunner.java:314)

                ... 10 more

Any idea what is wrong?

 

Best regards,

Jon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cake.pushtotest.com/pipermail/users/attachments/20070917/a85abdd4/attachment-0001.htm


More information about the Users mailing list