jenkis报错:ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project wuliu_auto_pro_atp: Execution default-test of goal org.apache.maven.plugins:ma
ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project wuliu_auto_pro_atp: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was an error in the forked process [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: Suite file /home/www/.jenkins/workspace/wuliu-mid-basic/testNgXML/BaseDataOnline.xml is not a valid file
解决办法如下,只需修改pom文件即可,亲测有效:
第一种解决方法:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<skipTests>true</skipTests>
</configuration>
</plugin>
第二种解决方法:
1、testng.xml is not a valid file的原因是pom文件中testng.xml的路径不对,修改其路径为你自己的文件所在位置即可
浙公网安备 33010602011771号