[RemoteTestNG]检测到TestNG版本7.4.0 java. lang. NoClassDefFoundError:org/openqa/selenium/WebDriver在java. java中的base/java.lang.Class.getDeclaredMethods0(Native Method)。base/java. lang。同学们java中的privateGetDeclaredMethods(Class.java:3402)。base/java。lang。同学们privateGetPublicMethods(Class.java:3427)at java. base/java. lang。同学们getMethods(Class.java:2019)at org .测试内部的XmlMethodSelector。org上的checkMethod(XmlMethodSelector.java:238)。测试内部的XmlMethodSelector。org上的setXmlClasses(XmlMethodSelector.java:257)。测试TestRunner。initRunInfo(TestRunner.java:410)at org .测试TestRunner。init(TestRunner.java:334)at org .测试TestRunner。init(TestRunner.java:292)at org.testng.TestRunner.(TestRunner.java:223)at org.testng.remote.support.RemoteTestNG6_12$1.newTestRunner(RemoteTestNG6_12.java:33)at org.testng.remote.support.RemoteTestNG6_12$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG6_12.java:66)在org .测试ITestRunnerFactory。newTestRunner(ITestRunnerFactory.java:55)at org .测试SuiteRunner $ProxyTestRunnerFactory。newTestRunner(SuiteRunner.java:659)at org .测试SuiteRunner init(SuiteRunner.java:173)at org.testng.SuiteRunner.(SuiteRunner.java:107)at org .测试测试NG。createSuiteRunner(TestNG.java:1300)at org .测试测试NG。createSuiteRunners(TestNG.java:1276)at org .测试测试NG。runSuitesLocally(TestNG.java:1125)at org .测试测试NG。runSuites(TestNG.java:1063)位于 www.example.com © 2019 www.qqqa.com版权所有并保留所有权利。粤ICP备11049999号-1org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.WebDriver at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ... 24 more
1条答案
按热度按时间3vpjnl9f1#
当应用程序试图加载一个类,但Classloader无法在类路径中找到它时,会发生Java ClassNotFoundException。
请参考以下链接:https://www.digitalocean.com/community/tutorials/java-classnotfoundexception-java-lang-classnotfoundexception