我的jmeter webdriver采样器无法打开。这是错误:
2019-07-09 18:55:00,153 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
at org.openqa.selenium.firefox.Preferences.checkPreference(Preferences.java:225) ~[selenium-firefox-driver-3.14.0.jar:?]
at org.openqa.selenium.firefox.Preferences.setPreference(Preferences.java:155) ~[selenium-firefox-driver-3.14.0.jar:?]
at org.openqa.selenium.firefox.Preferences.setPreference(Preferences.java:126) ~[selenium-firefox-driver-3.14.0.jar:?]
at org.openqa.selenium.firefox.Preferences.readDefaultPreferences(Preferences.java:105) ~[selenium-firefox-driver-3.14.0.jar:?]
at org.openqa.selenium.firefox.Preferences.<init>(Preferences.java:66) ~[selenium-firefox-driver-3.14.0.jar:?]
at org.openqa.selenium.firefox.FirefoxProfile.<init>(FirefoxProfile.java:82) ~[selenium-firefox-driver-3.14.0.jar:?]
at org.openqa.selenium.firefox.FirefoxProfile.<init>(FirefoxProfile.java:72) ~[selenium-firefox-driver-3.14.0.jar:?]
at org.openqa.selenium.firefox.FirefoxProfile.<init>(FirefoxProfile.java:61) ~[selenium-firefox-driver-3.14.0.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.FirefoxDriverConfig.createProfile(FirefoxDriverConfig.java:39) ~[jmeter-plugins-webdriver-3.0.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.FirefoxDriverConfig.createBrowser(FirefoxDriverConfig.java:98) ~[jmeter-plugins-webdriver-3.0.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.FirefoxDriverConfig.createBrowser(FirefoxDriverConfig.java:22) ~[jmeter-plugins-webdriver-3.0.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.getPreparedBrowser(WebDriverConfig.java:233) ~[jmeter-plugins-webdriver-3.0.jar:?]
at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.threadStarted(WebDriverConfig.java:220) ~[jmeter-plugins-webdriver-3.0.jar:?]
at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:762) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:994) ~[jorphan.jar:5.1.1 r1855137]
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:977) ~[jorphan.jar:5.1.1 r1855137]
at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:730) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:718) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]
2019-07-09 18:55:00,154 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2019-07-09 18:55:00,154 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)
答案 0 :(得分:0)
您的番石榴版本旧且不兼容,您需要在JMeter lib文件夹中对其进行更新
关闭JMeter更改版本,
Download guava-23.0.jar并将其放在JMeter lib文件夹中
从lib文件夹中删除/更改旧guava-19.0.0.jar的扩展名