Oz *_*aim 1 unit-testing soapui pom.xml maven-3
我有2个不同的SoapUI测试项目,我想在构建期间运行(我正在使用maven-soapui-plugin 3.6.1和Maven 3).目前我只能执行一个项目(请参阅我的pom.xml文件)...假设我想执行2个SoapUI测试项目并控制它们的执行顺序......这样做的正确语法是什么?
我当前的pom.xml文件:
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<projectFile>${project.basedir}\src\test\resources\soapui\Web-Service-automatic-testing-soapui-project.xml</projectFile>
<outputFolder>${project.basedir}\src\test\resources\soapui\output</outputFolder>
<junitReport>true</junitReport>
</configuration>
<executions>
<execution>
<id>soapUI</id>
<!--Run as part of the test phase in the Maven lifecycle-->
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
您可以为SoapUI插件指定多个执行.例如:
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<outputFolder>${project.basedir}\src\test\resources\soapui\output</outputFolder>
<junitReport>true</junitReport>
</configuration>
<executions>
<execution>
<id>soapUI1</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<projectFile>${project.basedir}\src\test\resources\soapui\Web-Service-automatic-testing-soapui-project1.xml</projectFile>
</configuration>
</execution>
<execution>
<id>soapUI2</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<projectFile>${project.basedir}\src\test\resources\soapui\Web-Service-automatic-testing-soapui-project2.xml</projectFile>
</configuration>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)