对于使用soapui的maven来说是新手,
我正在寻找一个解决方案,使用eclipse运行maven中的soapui构建以及需要maven pdf报告。
如果是,请指导我实现执行
期待您的宝贵意见,实现项目完成会更有帮助
完成步骤:
soapui版本5.3.1
1.Soapui项目名称:testmavenproject.xml(具有db和功能测试用例)
2.maven项目创建:
pom.xml文件
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.codebind</groupId>
<artifactId>maven-soapui</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
</project>
3.Jenkins创造了工作
答案 0 :(得分:0)
也许这是一个迟到的答案,但我建议你逐步使用这个tutorial它确实有帮助。 至于jenkins整合:
作为对您问题的回答:
答案 1 :(得分:-1)
1)添加soupui maven pulgin pom.xml
<!--Add the repository for where Maven can find the soapUI Plugin-->
<pluginRepositories>
<pluginRepository>
<id>eviwarePluginRepository</id>
<url>http://www.eviware.com/repository/maven2/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<!--This is the version of soapUI to grab from plugin repo-->
<!--At the time of writing the 3.0.1 plugin had not been created-->
<version>2.5.1</version>
<configuration>
<!--The location of your soapUI setting file-->
<projectFile>/home/test/test.xml</projectFile>
<!--Where to place the output of the run-->
<outputFolder>/home/test/output/</outputFolder>
<!--Make the jUnit results file-->
<junitReport>true</junitReport>
</configuration>
<executions>
<execution>
<id>soapUI</id>
<!--Run as part of the test phase in the Maven lifecycle-->
<phase>test</phase>
<goals>
<!--Run the test phase of eviware:maven-soapui-plugin-->
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
2)通过调用&#34; mvn eviware:maven-soapui-plugin:test&#34;
运行soapUI测试更多细节:http://blog.karit.geek.nz/2009/08/using-soapui-to-do-testing-as-part-of.html