【问题标题】:Folder projects SmartBear soapui maven plugin文件夹项目 SmartBear soapui maven 插件
【发布时间】:2016-05-11 11:46:24
【问题描述】:

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

【问题讨论】:

    标签: soapui


    【解决方案1】:

    您可以使用refish plugin 来执行位于文件夹中的所有项目。或者现有的具有多个执行部分的soapui-maven-plugin(每次执行都使用一个soapui项目xml文件)

    【讨论】:

    • 插件 redfish4ktc 不稳定。具有多个执行部分的第二个解决方案涉及每次我有一个新脚本 SoapUI 时更改 pom.xml
    【解决方案2】:

    使用 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
    

    【讨论】:

      猜你喜欢
      • 2012-02-29
      • 1970-01-01
      • 2012-04-12
      • 1970-01-01
      • 2013-10-16
      • 2011-08-25
      • 2011-12-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多