2017-03-20 129 views
1

我的soapui項目由多個項目文件組成。 Maven插件配置如下。是否有任何方法可以使所有執行並行發生?soapui maven插件可以並行執行多個項目嗎?

<plugin> 
    <groupId>com.smartbear.soapui</groupId> 
    <artifactId>soapui-maven-plugin</artifactId> 
    <version>5.2.1</version> 
    <configuration> 
     <junitReport>true</junitReport> 
     ....... 
    </configuration> 
    <executions> 
     <execution> 
     <id>exec1</id> 
     <phase>test</phase> 
     <goals> 
      <goal>test</goal> 
     </goals> 
     <configuration> 
      <projectFile>project1.xml</projectFile> 
     </configuration> 
     </execution> 
     <execution> 
     <id>exec2</id> 
     <phase>test</phase> 
     <goals> 
      <goal>test</goal> 
     </goals> 
     <configuration> 
      <projectFile>project2.xml</projectFile> 
     </configuration> 
     </execution> 
    </executions> 
</plugin> 

回答

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