views:

56

answers:

0

I wrote a suite of tests using soapui and need to transfer it to another person to run when I leave. I wrote a script that helps me run all the tests on the command line and it works fine on my system.

When we try to run it on his system however, we get a few exceptions and cannot find the difference between how it is run on my machine vs his. Here is the error output on his system:

17:11:43,742 ERROR [SoapUIProTestCaseRunner] java.lang.NoClassDefFoundError: org/custommonkey/xmlunit/DifferenceListener
17:11:43,743 ERROR [SoapUI] An error occured [org/custommonkey/xmlunit/DifferenceListener], see error log for details
java.lang.NoClassDefFoundError: org/custommonkey/xmlunit/DifferenceListener
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at com.eviware.soapui.impl.wsdl.teststeps.assertions.AbstractTestAssertionFactory.buildAssertion(AbstractTestAssertionFactory.java:97)
at com.eviware.soapui.impl.wsdl.teststeps.assertions.TestAssertionRegistry.buildAssertion(TestAssertionRegistry.java:108)
at com.eviware.soapui.impl.wsdl.support.assertions.AssertionsSupport.addWsdlAssertion(AssertionsSupport.java:62)
at com.eviware.soapui.impl.wsdl.support.assertions.AssertionsSupport.<init>(AssertionsSupport.java:54)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.initAssertions(RestTestRequest.java:99)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.<init>(RestTestRequest.java:69)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.buildTestRequest(RestTestRequestStep.java:212)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.<init>(RestTestRequestStep.java:99)
at com.eviware.soapui.impl.wsdl.teststeps.registry.RestRequestStepFactory.buildTestStep(RestRequestStepFactory.java:66)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.createTestStepFromConfig(WsdlTestCase.java:296)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.<init>(WsdlTestCase.java:97)
at com.eviware.soapui.impl.wsdl.WsdlTestCasePro.<init>(SourceFile:28)
at com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.buildTestCase(SourceFile:63)
at com.eviware.soapui.impl.wsdl.WsdlTestSuite.<init>(WsdlTestSuite.java:76)
at com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.<init>(SourceFile:26)
at com.eviware.soapui.impl.wsdl.WsdlProjectPro.buildTestSuite(SourceFile:799)
at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(SourceFile:186)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:212)
at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(SourceFile:121)
at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:32)
at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:16)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:283)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:138)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:80)
at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:48)
Caused by: java.lang.ClassNotFoundException: org.custommonkey.xmlunit.DifferenceListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 29 more

Can you please let me know what we have done wrong or forgot to transfer? Pretty sure I just need to add org/custommonkey/xmlunit/DifferenceListener to the classpath but I'm not sure exactly what I add since I didn't make the DifferenceListener file.