encrypt
14 years agoOccasional Contributor
Mocking Webservice with the maven plugin
Hi all,
I am hoping you can help me. I am trying to use soapUI to mock a webservice.
All of teh tuturials I have so far found have the tests in the soapUI file, all I want is for teh maven plugin to mock the webservice so I can run the tests from JUnit.
I currently have it set up thus:
I figure I want soapUI to start at the pre-integration stage, and then failsafe will kick off its test at integreation test.
The only thing is, the mocked webservice doesnt seem to exist at the expected location.
I can run this all manually from the standalone soapUI just having an issue automating it.
Thanks
I am hoping you can help me. I am trying to use soapUI to mock a webservice.
All of teh tuturials I have so far found have the tests in the soapUI file, all I want is for teh maven plugin to mock the webservice so I can run the tests from JUnit.
I currently have it set up thus:
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>4.0</version>
<configuration>
<projectFile>${basedir}/src/test/resources/Mock-Transaction-Processor-soapui-project.xml</projectFile>
<printReport>true</printReport>
<exportAll>true</exportAll>
<outputFolder>${project.build.directory}/soapui</outputFolder>
</configuration>
<executions>
<execution>
<id>soap-integration-test</id>
<phase>pre-integration-test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
I figure I want soapUI to start at the pre-integration stage, and then failsafe will kick off its test at integreation test.
The only thing is, the mocked webservice doesnt seem to exist at the expected location.
I can run this all manually from the standalone soapUI just having an issue automating it.
Thanks