在jmeter中安装webdriver插件时未捕获异常

时间:2015-09-16 12:39:54

标签: selenium selenium-webdriver webdriver jmeter

我正在尝试将webdriver插件添加到jmeter。我已经下载并添加了名为' JMeterPlugins-WebDriver-1.1.1'的webdriver插件。到Jmeter2.7。但是当我在GUI模式下运行jmeter批处理文件时,我得到了一个未被捕获的异常:

以下是我得到的错误:

Uncaught Exception java.lang.NoSuchMethodError: kg.apc.jmeter.gui.GuiBuilderHelper.strechButtonToComponent(Ljavax/swing/JComponent;Ljavax/swing/JButton;)V. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory. See log file for details.

2 个答案:

答案 0 :(得分:1)

  

您需要使用Java 7或更高版本运行JMeter 2.12或更高版本才能使用插件。

始终使用最新版本的jmeter,以利用重大修复和性能改进。

答案 1 :(得分:0)

我使用Maven(或Gradle)启动Jmeter,因此我觉得它更加一致:https://github.com/djangofan/launch-jmeter

使用我的Gradle启动器时要小心,因为支持Jmeter的gradle插件尚未成熟。