Java 在Maven中报告SOAPUI测试
我已经将SOAPUI与Maven集成,这样我的测试用例就可以用Maven build执行 它很好用 但是这种集成不会创建任何格式化的报告,我可以参考这些报告来了解测试结果,比如HTML输出 同样,我在POM.XML中添加了一个插件(如下所示)Java 在Maven中报告SOAPUI测试,java,maven,Java,Maven,我已经将SOAPUI与Maven集成,这样我的测试用例就可以用Maven build执行 它很好用 但是这种集成不会创建任何格式化的报告,我可以参考这些报告来了解测试结果,比如HTML输出 同样,我在POM.XML中添加了一个插件(如下所示) org.apache.maven.plugins maven surefire报告插件 2.6 这将创建报告,但它会为我的项目中的所有junit测试用例创建报告。 我看不到关于SOAPUI测试用例的任何报告 如何使Surefire报告包含SoapUI测
org.apache.maven.plugins
maven surefire报告插件
2.6
这将创建报告,但它会为我的项目中的所有junit测试用例创建报告。我看不到关于SOAPUI测试用例的任何报告
如何使Surefire报告包含SoapUI测试结果?刚刚在我的设置中运行 解决方案是“maven surefire report plugin”将“TEST*.xml”转换为HTML格式,该格式放在“/targets/surefire report”中。因此,请确保“soapui maven plugin”将“soapui maven plugin”的输出放在“/targets/surefire report”目录中 请看下面的样品
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>5.1.2</version>
<executions>
<execution>
<phase>test</phase>
<goals><goal>test</goal></goals>
<configuration>
<projectFile>${baseDirectory}/src/test/integration/resources/Mobile-Ads-soapui-project.xml</projectFile>
<iface>mobileAdsService</iface>
<outputFolder>${baseDirectory}/target/surefire-reports/</outputFolder>
<junitReport>true</junitReport>
<exportwAll>true</exportwAll>
<printReport>true</printReport>
<testFailIgnore>false</testFailIgnore>
</configuration>
</execution>
</executions>
</plugin>
com.smartbear.soapui
soapui maven插件
5.1.2
测试
测试
${baseDirectory}/src/test/integration/resources/Mobile-Ads-soapui-project.xml
移动电话服务
${baseDirectory}/target/surefire报告/
真的
真的
真的
假的
它应该是${basedir}而不是${basedirectory}
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>5.1.2</version>
<executions>
<execution>
<phase>test</phase>
<goals><goal>test</goal></goals>
<configuration>
<projectFile>${baseDirectory}/src/test/integration/resources/Mobile-Ads-soapui-project.xml</projectFile>
<iface>mobileAdsService</iface>
<outputFolder>${baseDirectory}/target/surefire-reports/</outputFolder>
<junitReport>true</junitReport>
<exportwAll>true</exportwAll>
<printReport>true</printReport>
<testFailIgnore>false</testFailIgnore>
</configuration>
</execution>
</executions>
</plugin>