org.testng.TestNGException: Cannot find class in classpath错误解决办法
生活随笔
收集整理的這篇文章主要介紹了
org.testng.TestNGException: Cannot find class in classpath错误解决办法
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
執(zhí)行testng test出現(xiàn)下面的錯(cuò)誤:
org.testng.TestNGException:
Cannot find class in classpath: interfacetest.testcase.article.ArticleTestV1
解決辦法:
project-clean
一般網(wǎng)上都是給的這個(gè)建議,但是在本機(jī)上執(zhí)行了還是不行, 另外pom.xml文件還顯示錯(cuò)誤,執(zhí)行maven install顯示的下載包的
maven地址跟pom.xml文件中的maven庫地址不一樣,此時(shí)可以看下setting.xml文件中的maven庫地址是否跟pom.xml文件中
的地址是否與一致,如果不一致得保證一致;
window-prefrences:
總結(jié)
以上是生活随笔為你收集整理的org.testng.TestNGException: Cannot find class in classpath错误解决办法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 后向散射
- 下一篇: [codeforces 1364B]