Forum Discussion
djangofan
13 years agoContributor
Ok, I am much closer to getting it working (see GitHub link above). I am executing the "mock" step just before the "test" step, but strangely, the "mock" step blocks and says "Press any key to terminate..." and doesn't execute the "test" goal until you hit the key and it terminates. So, how do I get the "mock" service to keep running until the "test" goal finishes?
09:56:47,356 INFO [JettyMockEngine] Started mockService [MockService] on port [8088] at path [/mockTimeServiceSOAP]
09:56:47,357 INFO [SoapUIMockServiceRunner] MockService started on port 8088 at path [/mockTimeServiceSOAP]
09:56:47,358 INFO [SoapUIMockServiceRunner] Started 1 runner
Press any key to terminate...
09:57:10,358 INFO [JettyMockEngine] Stopped MockService [MockService] on port [8088]
09:57:10,359 INFO [SoapUIMockServiceRunner] MockService stopped, handled 0 requests
09:57:10,360 INFO [SoapUIMockServiceRunner] time taken: 23942ms
[INFO]
[INFO] --- maven-soapui-plugin:4.5.0:test (default-cli) @ soapui-test ---
[DEBUG] Configuring mojo eviware:maven-soapui-plugin:4.5.0:test from plugin realm ClassRealm[plugin>eviware:maven-soapui-plugin:4.5.0, parent: sun.misc.Launcher$AppClassLoader@21353d27]
[DEBUG] Configuring mojo 'eviware:maven-soapui-plugin:4.5.0:test' with basic configurator -->
[DEBUG] (f) endpoint = http://127.0.0.1:8088/mockTimeServiceSOAP
[DEBUG] (f) globalProperties = [gmessage=Hello Global!]
[DEBUG] (f) host = http://127.0.0.1:8088
[DEBUG] (f) junitReport = true
[DEBUG] (f) outputFolder = C:\Eclipse64\workspace\soapui-test\target/soapui-reports
[DEBUG] (f) printReport = true
[DEBUG] (f) projectFile = C:\Eclipse64\workspace\soapui-test/src/test/resources/timeservice-soapui-project.xml
[DEBUG] (f) projectProperties = [pmessage=Hello Project!]
[DEBUG] (f) settingsFile = C:\Users\u0163410/soapui-settings.xml
[DEBUG] (f) soapuiProperties = {soapui.scripting.library=src/test/resources, soapui.logroot=C:\Eclipse64\workspace\soapui-test\target/soapui-logs/}
[DEBUG] (f) testCase = RequestTime TestCase
[DEBUG] (f) testSuite = TimeServiceSuite
[DEBUG] -- end configuration --
soapUI 4.5.0 Maven2 TestCase Runner
09:57:10,403 INFO [SoapUITestCaseRunner] Setting global property [gmessage] to [Hello Global!]
Setting soapui.scripting.library value src/test/resources
Setting soapui.logroot value C:\Eclipse64\workspace\soapui-test\target/soapui-logs/
09:57:10,411 INFO [WsdlProject] Loaded project from [file:/C:/Eclipse64/workspace/soapui-test/src/test/resources/timeservice-soapui-project.xml]
09:57:10,419 INFO [SoapUITestCaseRunner] Setting project property [pmessage] to [Hello Project!]
09:57:10,421 INFO [SoapUITestCaseRunner] Running soapUI tests in project [timeservice]
09:57:10,421 INFO [SoapUITestCaseRunner] Running TestCase [RequestTime TestCase]
09:57:10,429 INFO [SoapUITestCaseRunner] Running soapUI testcase [RequestTime TestCase]
09:57:10,489 INFO [SoapUITestCaseRunner] running step [RequestTime]
09:57:10,840 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
09:57:10,840 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /mockTimeServiceSOAP HTTP/1.1
09:57:10,885 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
09:57:10,888 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
09:57:11,005 INFO [SoapUITestCaseRunner] Assertion [SOAP Response] has status FAILED
09:57:11,006 ERROR [SoapUITestCaseRunner] ASSERTION FAILED -> error: </p> does not close tag <body>.
09:57:11,006 ERROR [SoapUITestCaseRunner] ASSERTION FAILED -> </p> does not close tag <body>.
09:57:11,006 INFO [SoapUITestCaseRunner] Assertion [Contains] has status FAILED
09:57:11,006 ERROR [SoapUITestCaseRunner] ASSERTION FAILED -> Missing token [16:25] in Response