在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>