【发布时间】:2016-05-11 11:46:24
【问题描述】:
我使用maven下插件SmartBear SoapUI“com.smartbear.soapui”的5.1.3版本。是否可以只定义 xml 文件夹的名称而不是标记处的完整路径来运行同一文件夹的项目列表?
【问题讨论】:
标签: soapui
我使用maven下插件SmartBear SoapUI“com.smartbear.soapui”的5.1.3版本。是否可以只定义 xml 文件夹的名称而不是标记处的完整路径来运行同一文件夹的项目列表?
【问题讨论】:
标签: soapui
您可以使用refish plugin 来执行位于文件夹中的所有项目。或者现有的具有多个执行部分的soapui-maven-plugin(每次执行都使用一个soapui项目xml文件)
【讨论】:
使用 redfish4ktc 你可以做到这一点
例子:
<build>
<plugins>
<plugin>
<groupId>com.github.redfish4ktc.soapui</groupId>
<artifactId>maven-soapui-extension-plugin</artifactId>
<version>4.6.4.2</version>
<executions>
<execution>
<id>soapUI1</id>
<phase>test</phase>
<goals>
<goal>test-multi</goal>
</goals>
<configuration>
<projectFiles>
<scan>
<baseDirectory>./soapui/projects</baseDirectory>
<includes>
<include>**/*_suffix.xml</include>
</includes>
</scan>
</projectFiles>
<outputFolder>./outputfolder</outputFolder>
<junitReport>false</junitReport>
<useOutputFolderPerProject>true</useOutputFolderPerProject>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
添加运行这个只需执行 maven 命令:
mvn test com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.6.4.2:test-multi
【讨论】: