Contributions
SoapUIMockServiceRunner
Hello, I have created a soupui project containing a mock service with a mock response. There is also a test suite which calls the mock service. I have started mock service and sent a request to it and it all worked fine. However I want to do this programmatically in a unit test to get this included in a maven 2 build. So I use a SoapUIMockServiceRunner object which is configured with the soapui project file. It works fine to start this from code, the log output is exactly the same as when using mockservicerunner.bat. Then I want to use SoapUITestCaseRunner (configured with the same project file) to send a request to the mock service. This works when I run the test inside soapUI but causing an error when running the code. This is what is printed in soapui.log when this error occurs: [tt:2nj0im5j]2008-05-13 22:54:22,442 INFO [WsdlProject] Loaded project from [file:/C:/temp/test-soapui-project.xml] 2008-05-13 22:54:22,442 INFO [SoapUITestCaseRunner] Running soapUI tests in project [testMock] 2008-05-13 22:54:22,458 INFO [SoapUITestCaseRunner] Running soapUI suite [TestSuite 1], runType = SEQUENTIAL 2008-05-13 22:54:22,458 INFO [SoapUITestCaseRunner] Running soapUI testcase [TestCase 1] 2008-05-13 22:54:22,458 INFO [SoapUITestCaseRunner] running step [Test Request] 2008-05-13 22:54:23,364 INFO [HttpClientSupport$Helper] Initializing SSL 2008-05-13 22:54:23,552 WARN [jetty] EXCEPTION java.lang.NoSuchMethodError: javax.wsdl.Definition.getAllServices()Ljava/util/Map; at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlUtils.findBindingForOperation(WsdlUtils.java:142) at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlUtils.isRpc(WsdlUtils.java:282)[/tt:2nj0im5j] From the test-report: [tt:2nj0im5j]Response Headers: {Connection=close, #status#=HTTP/1.1 500 Internal Server Error, Server=Jetty(6.1.5)} at com.eviware.soapui.tools.SoapUITestCaseRunner.throwFailureException(SoapUITestCaseRunner.java:377) at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:345) at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:114)[/tt:2nj0im5j] If anybody has any idea about what might be wrong or any code examples that would be interesteing. best regards.7.5KViews0likes6Comments