我在Eclipse Kepler中设置了我的Maven项目。 pom.xml文件依赖于TestNg 6.0.1。当我右键单击我的项目时,它会显示选项" Run as TestNG"。但是当我点击它时,Eclipse显示错误:
Exception in thread "main" org.testng.TestNGException:
6.0.1 is not a supported TestNG version
at org.testng.remote.support.ServiceLoaderHelper.getFirst(ServiceLoaderHelper.java:22)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:43)
POM中的依赖关系:
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.0.1</version>
</dependency>