Running soapui via maven

5 Jan

The thing need to perform the build operation whenever a change would be happening in a project the build would be triggered via hudson.Now its possible to connect two big master via router called Maven.Ya.it’s possible!!!pals!

Maven is a good guy which leads all impossible things into success..Actually i had no idea about this hudson-soapui-maven things…after a long war this guys i won a quarter part of it…

The steps are like this;

  • first start with your soapui tool.create project with the help of this link http://soapui.org/Getting-Started/your-first-soapui-project.html
  • After you crossed the first feet of well,next is try the maven to perform the operation.i.e run the soapui project via maven.
  • For this first you need to download the maven2.2 (any version).after that test it via mvn -v
  • Next you need to develop a pom.xml file which is  tell about what you perform .     A sample pom is like this
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<name> Web Service Test Module</name>
<groupId>webservice</groupId>
<artifactId>webservices.test</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<description>web services soapUI integration tests</description>
<build>
<plugins>
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>3.6.1</version>
<executions>
<execution>
<id>USHolidayTests</id>
<goals>
<goal>test</goal>
</goals>
<phase>test</phase>
</execution>
</executions>
<configuration>
<projectFile>src/test/soapui/Ur-soapui-project.xml</projectFile>
<host>www.27seconds.com</host>
<outputFolder>${project.build.directory}/surefire-reports</outputFolder>
<junitReport>true</junitReport>
<printReport>false</printReport>
</configuration>
</plugin>
</plugins>
</build>
</project>
  • that is You are in almost half.In that pom.xml there is a portion called plugin.which does actual process of  soapui project exection

use

mvn soapui:test

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: