Forum Discussion

JShah's avatar
JShah
Contributor
14 years ago

Running soap UI tests in Maven Build

Hello,

I have been working on Running soap UI tests in Maven Build.

1.I followed this link
http://soapui.org/Test-Automation/maven-2x.html

2.downloaded the soapui-maven-plugin
http://sourceforge.net/projects/soapui/ ... en-plugin/


can you guys explain me how to do the project setup,placing the files and how to generate POM file.


can you guys clearly post all the steps for the setup.

Thanks,
Krish

1 Reply

  • Hi Krish,

    here comes a very simple maven2 pom.xml file using the soapUI Pro maven plugin:

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mycompany.app</groupId>
    <artifactId>my-app</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>Maven Quick Start Archetype</name>
    <url>http://maven.apache.org</url>
    <pluginRepositories>
    <pluginRepository>
    <id>eviwarePluginRepository</id>
    <url>http://www.eviware.com/repository/maven2/</url>
    </pluginRepository>
    </pluginRepositories>
    <build>
    <plugins>
    <plugin>
    <groupId>eviware</groupId>
    <artifactId>maven-soapui-pro-plugin</artifactId>
    <version>4.0.0</version>
    <executions>
    <execution>
    <phase>test</phase>
    <goals>
    <goal>test</goal>
    </goals>
    <configuration>
    <projectFile>Dummy-soapui-project</projectFile>
    <soapuiProperties>
    <property>
    <name>soapui.logroot</name>
    <value>${project.build.directory}/soapui-logs/</value>
    </property>
    </soapuiProperties>
    </configuration>
    </execution>
    </executions>
    </plugin>
    </plugins>
    </build>
    </project>

    Hopefully this helps you forward..

    regards!

    /Ole
    SmartBear Software