org.testng.TestNGException: Cannot find class in classpath错误解决办法

执行testng test出现下面的错误:
org.testng.TestNGException:
Cannot find class in classpath: interfacetest.testcase.article.ArticleTestV1
解决办法:
project-clean
一般网上都是给的这个建议,但是在本机上执行了还是不行, 另外pom.xml文件还显示错误,执行maven install显示的下载包的
maven地址跟pom.xml文件中的maven库地址不一样,此时可以看下setting.xml文件中的maven库地址是否跟pom.xml文件中
的地址是否与一致,如果不一致得保证一致;
window-prefrences:

org.testng.TestNGException: Cannot find class in classpath错误解决办法_第1张图片

org.testng.TestNGException: Cannot find class in classpath错误解决办法_第2张图片


你可能感兴趣的:(org.testng.TestNGException: Cannot find class in classpath错误解决办法)