当我使用chrome drive运行testrunner类时,这个错误是java.lang.noclassdeffounderror:com/google/common/collect/immutablemap

j0pj023g  于 2021-07-12  发布在  Java
关注(0)|答案(0)|浏览(370)

关闭。这个问题需要细节或清晰。它目前不接受答案。
**想改进这个问题吗?**通过编辑这个帖子来添加细节并澄清问题。

昨天关门了。
改进这个问题
功能:登录
场景:使用有效凭据成功登录#./features/login。feature:3 given 用户启动chrome浏览器步骤。用户启动chrome浏览器()java.lang.noclassdeffounderror:com/google/common/collect/immutablemap,网址为org.openqa.selenium.remote.service.driverservice$builder。(driverservice。java:259)在org.openqa.selenium.chrome.chromedriverservice$builder.(chromedriverservice。java:101)在org.openqa.selenium.chrome.chromedriverservice.createdefaultservice(chromedriverservice。java:94)在org.openqa.selenium.chrome.chromedriver.(chromedriver。java:123)在stepdefinitions.steps.user启动浏览器(steps。java:20)在✽.给定用户启动chrome浏览器(./features/login)。feature:5)原因:java.lang.classnotfoundexception:com.google.common.collect.immutablemap at java.net.urlclassloader.findclass(未知源)at java.lang.classloader.loadclass(未知源)at sun.misc.launcher$appclassloader.loadclass(未知源)atjava.lang.classloader.loadclass(未知源代码),位于org.openqa.selenium.remote.service.driverservice$builder.(driverservice。java:259)在org.openqa.selenium.chrome.chromedriverservice$builder上。java:101)在org.openqa.selenium.chrome.chromedriverservice.createdefaultservice(chromedriverservice。java:94)在org.openqa.selenium.chrome.chromedriver.(chromedriver。java:123)在stepdefinitions.steps.user启动浏览器(steps。java:20)在sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)在sun.reflect.nativemethodaccessorimpl.invoke(未知源)在sun.reflect.delegatingmethodaccessorimpl.invoke(未知源)在java.lang.reflect.method.invoke(未知源代码)位于cucumber.runtime.utils$1.call(utils。java:37)at.runtime.timeout.timeout(超时)。java:13)在cumber.runtime.utils.invoke(utils。java:31)在cumber.runtime.java.javastepdefinition.execute(javastepdefinition。java:37)在cumber.runtime.stepdefinitionmatch.runstep(stepdefinitionmatch。java:37)在cumber.runtime.runtime.runstep(runtime。java:298)在cumber.runtime.model.stepcontainer.runstep(stepcontainer。java:44)在cumber.runtime.model.stepcontainer.runsteps(stepcontainer。java:39)在cucumber.runtime.model.cucumberscenario.run(cucumberscenario。java:48)在cucumber.runtime.junit.executionunitrunner.run(executionunitrunner。java:91)在cumber.runtime.junit.featurerunner.runchild(featurerunner。java:63)在cumber.runtime.junit.featurerunner.runchild(featurerunner。java:18)在org.junit.runners.parentrunner$3.run(parentrunner。java:238)在org.junit.runners.parentrunner$1.schedule(parentrunner。java:63) 在org.junit.runners.parentrunner.runchildren(parentrunner。java:236)访问org.junit.runners.parentrunner.access$000(parentrunner。java:53)在org.junit.runners.parentrunner$2.evaluate(parentrunner。java:229)在org.junit.runners.parentrunner.run(parentrunner。java:309)在cumber.runtime.junit.featurerunner.run(featurerunner。java:70)在 cucumber .api.junit.cumber.runchild( cucumber 。java:93)在cumber.api.junit.cumber.runchild(cumber。java:37)在org.junit.runners.parentrunner$3.run(parentrunner。java:238)在org.junit.runners.parentrunner$1.schedule(parentrunner。java:63)在org.junit.runners.parentrunner.runchildren(parentrunner。java:236)在org.junit.runners.parentrunner.access$000(parentrunner。java:53)在org.junit.runners.parentrunner$2.evaluate(parentrunner。java:229)在org.junit.runners.parentrunner.run(parentrunner。java:309)在cumber.api.junit.cumber.run(cumber。java:98)位于org.eclipse.jdt.internal.junit4.runner.junit4testreference.run(junit4testreference)。java:86)在org.eclipse.jdt.internal.junit.runner.testexecution.run(testexecution。java:38)位于org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner)。java:538)位于org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner)。java:760)在org.eclipse.jdt.internal.junit.runner.remotetestrunner.run(remotetestrunner。java:460)在org.eclipse.jdt.internal.junit.runner.remotetestrunner.main(remotetestrunner。java:206)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题