maven执行特定testng的方法

在pom文件中如下plugin      指定somkeoneTestng.xml和somketwoTestng.xml即可

 

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
     <configuration>   
        <!--<testFailureIgnore>true</testFailureIgnore>-->   
        <suiteXmlFiles>  
            <suiteXmlFile>somkeoneTestng.xml</suiteXmlFile>
            <suiteXmlFile>somketwoTestng.xml</suiteXmlFile>  
              
        </suiteXmlFiles>  
    </configuration>  
</plugin>

 

posted @ 2017-08-30 17:57  雾火  阅读(418)  评论(0编辑  收藏  举报