Configure modules with the following configuration for SoapUI and Maven integration.
1. SOAPUI change: Make a Test Suite based on a feature. Please note that users must have a TestSuite with all their SOAP Requests.
2. Note the location of the ***soapui-project.xml file location. We need to provide this path inside the pom.xml for the main project.
3. Navigate to /gdev/home/.m2 and open settings.xml file. Check if you have the url for nexus thirdparty repository. If not, add the below configuration inside
<repository>
<id>local1</id>
<url>http://hostname:8081/nexus/content/repositories/thirdparty</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
4. Change the main project pom.xml of your project to include the following in plugins. This is an example, so please do your change according to your environment.
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<projectFile>/dev/software/soapUI_Projects/4-22-2011_proj/proj-4-22-2011-soapui-project.xml</projectFile>
<host>http://mwdev1.company.com:7001</host>
<endpoint>http://mwdev1.company.com:7001/project-1.0.0/services</endpoint>
<outputFolder>/dev/software/soapUI_Projects/4-22-2011_proj/</outputFolder>
<junitReport>true</junitReport>
<printReport>true</printReport>
<exportAll>true</exportAll>
</configuration>
</plugin>
5. Run maven command , "mvn eviware:maven-soapui-plugin:test".
6. Report could be found in outputFolder.
7. SVN change: Check-in the soapui-project file (e.g. proj-4-22-2011-soapui-project.xml).
8. More info can be found at : http://www.soapui.org/Test-Automation/maven-2x.html.
Note: If you get the OutOfMemory error, please do the following on the linux console.
echo $PATH
From the above command check the maven installation directory and edit mvn in bin folder.
Add export MAVEN_OPTS=-Xmx512m at the first line after comments section.
Hi,
ReplyDeleteThanks for your quality article.
As for the #3, where should I exactly add it?
Point #3 goes into the setting.xml which resides under your maven installation.
ReplyDeletei.e., ${user.home}/.m2/settings.xml (if on linux)
On windows, it may be in c:\Documents and Settings\\.m2 (or search for .m2 folder)