Forum Discussion
redfish4ktc2
11 years agoSuper Contributor
First, I suggest you to use soapui 4.5.1 (4.5.2 maven artifacts are not officially released, see https://www.soapui.org/forum/viewtopic.php?f=2&t=19103 and https://www.soapui.org/forum/viewtopic.php?f=5&t=21261)
about question 1
add soapui dependency to your project (and soapui-pro if needed)
do not put any jar in SOAPUIHome/bin/ext folder, I suggest you to you plugin dependencies configuration
about question 2
I had a look on your pom
you must use the maven-soapui-extension plugin (version 4.5.1.x, not 2.5.1), because choosing the junit report is not available in SmartBear plugins
add your project as dependency of the soapui plugin to make the junit report available
try this, I guess you will have other modification to do later, but this should be a good start
possible modifications (because currently, the jar won't be available when running the tests)
- have a maven multi modules build: a module for the junit report, and a module for testing the plugin with the junit report
- a single project as now, but use integration tests with the maven invoker plugin to test the junit report with the soapui plugin
about question 1
add soapui dependency to your project (and soapui-pro if needed)
do not put any jar in SOAPUIHome/bin/ext folder, I suggest you to you plugin dependencies configuration
about question 2
I had a look on your pom
you must use the maven-soapui-extension plugin (version 4.5.1.x, not 2.5.1), because choosing the junit report is not available in SmartBear plugins
add your project as dependency of the soapui plugin to make the junit report available
try this, I guess you will have other modification to do later, but this should be a good start
possible modifications (because currently, the jar won't be available when running the tests)
- have a maven multi modules build: a module for the junit report, and a module for testing the plugin with the junit report
- a single project as now, but use integration tests with the maven invoker plugin to test the junit report with the soapui plugin
<dependencies>
<dependency>
<groupId>eviware</groupId>
<artifactId>soapui</artifactId>
<version>4.5.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.github.redfish4ktc.soapui</groupId>
<artifactId>maven-soapui-extension-plugin</artifactId>
<version>4.5.1.4</version>
<dependencies>
<dependency>
<groupId>your.groupId</groupId>
<artifactId>your.artifactId</artifactId>
<version>your.version</version>
</dependency>
</dependencies>
<configuration>
<runnerType>PRO</runnerType>
<projectFile>/Users/kumareshd/Developer/SOAPUIExamples/Addition-soapui-project.xml</projectFile>
<outputFolder>/Users/kumareshd/Developer/SOAPUIExamples/Result/</outputFolder>
<junitReport>true</junitReport>
<soapuiProperties>
<property>
<name>soapui.junit.reportCollector</name>
<value>com.soapui.extension.JunitReportDump</value>
</property>
</soapuiProperties>
</configuration>
<executions>
<execution>
<id>soapUI</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>