美文网首页
TestNG报错:Cannot load class from

TestNG报错:Cannot load class from

作者: Loistein | 来源:发表于2019-03-07 23:10 被阅读0次

    [RemoteTestNG] detected TestNG version 6.8.9

    Exception in thread "main" org.testng.TestNGException:

    Cannot load class from file:

    at org.testng.internal.ClassHelper.fileToClass(ClassHelper.java:519)

    at org.testng.TestNG.configure(TestNG.java:1452)

    at org.testng.remote.AbstractRemoteTestNG.configure(AbstractRemoteTestNG.java:75)

    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:235)

    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)

    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

    解决办法:

    pom.xml中:

    检查maven-surefire-plugin的plugin,检查property,name = listener,value中的多个值不能换行,如果有换行或者空格,删除

    相关文章

      网友评论

          本文标题:TestNG报错:Cannot load class from

          本文链接:https://www.haomeiwen.com/subject/ekohuqtx.html