soapui maven插件可以并行执行多个项目吗?

时间:2017-03-20 10:15:46

标签: maven soapui

我的soapui项目包含多个项目文件。 Maven插件配置如下。有什么方法可以让所有执行并行发生?

  arr.Add("xyz");
  arr.Add(23);
  arr.Add("abc"); 

1 个答案:

答案 0 :(得分: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>

添加运行,只需执行maven命令:

mvn test com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.6.4.2:test-multi