Note that there are some explanatory texts on larger screens.

plurals
  1. POSoapUI Mock integrated in Maven test
    primarykey
    data
    text
    <p>I was wondering how to perform some integration tests for a WSClient. My project is built with maven.</p> <p>In order to test the configuration initialization and some requests I thought it was a good idea to start a SoapUI Mock service. Then I got into that configuration retrieved from some posts.</p> <p>In my pom.xml</p> <pre><code> &lt;plugin&gt; &lt;groupId&gt;eviware&lt;/groupId&gt; &lt;artifactId&gt;maven-soapui-plugin&lt;/artifactId&gt; &lt;version&gt;4.0.1&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;StartupMock&lt;/id&gt; &lt;configuration&gt; &lt;projectFile&gt;src/test/soapui/MyMock-soapui-project.xml&lt;/projectFile&gt; &lt;outputFolder&gt;${project.build.directory}/surefire-reports&lt;/outputFolder&gt; &lt;junitReport&gt;true&lt;/junitReport&gt; &lt;host&gt;http://127.0.0.1:8181&lt;/host&gt; &lt;mockService&gt;DataProviderMock&lt;/mockService&gt; &lt;/configuration&gt; &lt;goals&gt; &lt;goal&gt;test&lt;/goal&gt; &lt;/goals&gt; &lt;phase&gt;test&lt;/phase&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>My MockService called MyMock should have been started on <a href="http://127.0.0.1:8181/somepath" rel="noreferrer">http://127.0.0.1:8181/somepath</a> where my WSClient could send the requests. But I wasn't able to start the mock during the <code>mvn test</code> phase.</p> <p>Is that the apropriate way to test WSClients? In that case, where is the problem or the misconfiguration?</p> <p>EDIT: There is no error. I can't see the mock listening on that port <code>8181</code>. The only messages I see (from soapui.log) are:</p> <pre><code>2012-03-21 10:17:21,011 WARN [SoapUI] Missing folder [D:\proyectos\everest-utils\everest-bridge\trunk\.\ext] for external libraries 2012-03-21 10:17:21,392 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\rromero\soapui-settings.xml] 2012-03-21 10:17:23,205 INFO [WsdlProject] Loaded project from [file:/D:/proyectos/everest-utils/everest-bridge/trunk/src/test/soapui/MyMock-soapui-project.xml] 2012-03-21 10:17:23,891 INFO [SoapUITestCaseRunner] Running soapUI tests in project [DataProvider] 2012-03-21 10:17:23,894 INFO [SoapUITestCaseRunner] Running Project [MyMock], runType = SEQUENTIAL 2012-03-21 10:17:23,900 INFO [SoapUITestCaseRunner] Project [MyMock] finished with status [FINISHED] in 0ms </code></pre> <p>Than you in advance and kind regards,</p> <p>Ruben</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload