我使用插件SmartBear SoapUI的版本5.1.3" com.smartbear.soapui"在maven下。是否可以仅定义xml文件文件夹的名称而不是标记的完整路径来运行同一文件夹的项目列表?
答案 0 :(得分:1)
您可以使用refish plugin执行位于文件夹中的所有项目。或者现有的soapui-maven-plugin包含多个执行部分(每个执行一个soapui项目xml文件)
答案 1 :(得分:0)
使用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