文件夹项目 SmartBear soapui maven 插件

Folder projects SmartBear soapui maven plugin

我在maven下使用插件SmartBear SoapUI "com.smartbear.soapui" 5.1.3版本。是否可以仅定义 xml 文件夹的名称,而不是 运行 同一文件夹的项目列表的标签的完整路径?

您可以使用 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