Forum Discussion

rakeshg's avatar
rakeshg
Occasional Contributor
11 years ago

need help generating reports using soapUI Pro and Maven

Hi-
I am using soapUI pro with Maven plugin and cann't seem to generate reports. Here is my pom.xml file. Any ideas?

Thanks much
Rakesh


<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">
<packaging>pom</packaging>
<modelVersion>4.0.0</modelVersion>
<groupId>com.ticketmaster.cop.tests</groupId>
<artifactId>SoapUI-BVTs</artifactId>
<version>Resale</version>
<description/>
<properties>
<testlink.enable>false</testlink.enable>
<!-- default: jetqa2 -->
<!-- <cop.env>jetqa2</cop.env> -->
</properties>
<dependencies>
<dependency>
<groupId>eviware</groupId>
<artifactId>maven-soapui-pro-plugin</artifactId>
<version>4.5.0</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.2.0</version>
</dependency>
</dependencies>
<build>
<defaultGoal>test</defaultGoal>
<pluginManagement>
<plugins>
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-pro-plugin</artifactId>
<version>4.5.0</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<projectFile>${basedir}/${soapui.file}</projectFile>
<exportAll>true</exportAll>
<reportName>Project Report</reportName>
<reportFormat>HTML</reportFormat>
<outputFolder>.</outputFolder>
<projectProperties/>
<junitReport>yes</junitReport>
<soapuiProperties>
<property>
<name>soapui.ext.libraries</name>
<value>ext</value>
</property>
<property>
<name>soapui.scripting.library</name>
<value>scripts</value>
</property>
<property>
<name>soapui.home</name>
<value>${env.SOAPUI_HOME}/bin</value>
</property>
</soapuiProperties>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.fifesoft</groupId>
<artifactId>rsyntaxtextarea</artifactId>
<version>1.4.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
<modules>
<module>OrderWE</module>
<module>JDS</module>
<module>Wallet</module>
</modules>
<profiles>
<profile>
<id>COP-Resale-BVTs(IntQA)</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>environment</name>
<value>intqa</value>
</property>
</activation>
<properties>
<cop.env>intqa102</cop.env>
<testlink.tpid>394679</testlink.tpid>
<testlink.enable>true</testlink.enable>
<testlink.tbid>1840</testlink.tbid>
</properties>
</profile>
<profile>
<id>COP-Resale-BVTs(JetQA)</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>environment</name>
<value>jetqa</value>
</property>
</activation>
<properties>
<cop.env>jetqa1</cop.env>
</properties>
</profile>
<profile>
<id>COP-Resale-BVTs(IntDev102)</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>environment</name>
<value>intdev</value>
</property>
</activation>
<properties>
<cop.env>intdev102</cop.env>
</properties>
</profile>
</profiles>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.5</version>
<inherited>true</inherited>
<configuration>
<outputName>Automation-Execution Report</outputName>
<outputDirectory>${basedir}/report</outputDirectory>
<reportsDirectory>${basedir}/report/soapui</reportsDirectory>
</configuration>
</plugin>
</plugins>
</reporting>
</project>
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Hi,
    did you reproduce the problem with the last soapui version (4.6.1)?

    AFAIK, the most important thing about soapui reports with maven is to correcty configured the soapui.home property (using the soapuiProperties parameter); see this post: viewtopic.php?f=2&t=3142&p=11355#p11254
    As you already configure it, could you confirm that "${env.SOAPUI_HOME}/bin" expansion correctly refers to your soapui installation bin directory?
  • rakeshg's avatar
    rakeshg
    Occasional Contributor
    I am running the soapUI project thru the Jenkins - so I am not reallly sure where soapUI installation will be. I copied the snippet of <soapuiProperties> section of pom.xml file from another post here.
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    so check the path define in your soapuihome env variable and found where soapui is installed on your machine (if not, install it - use the zip distribution, you only have to unzip soapui in any location you want)
    otherwise, report generation won't work with the maven plugin