无法在最新的JMeter版本上加载JMeter测试计划-jmeter.protocol.java.config.gui.JavaConfigGui:设置类错误 [英] Can not load JMeter test plan on newest JMeter version - jmeter.protocol.java.config.gui.JavaConfigGui: Error setting class
问题描述
我想将JMeter测试计划加载到最新版本的JMeter 3
.
I want to load JMeter test plan to the newest version of JMeter 3
.
测试计划的原始版本写在2.11
上.
我已将所有需要的插件添加到lib
文件夹:
The original version of test plan was written on 2.11
.
I have added all needed plugins to lib
folder:
- 标准套装
- 附加集
- ExtrasLib
将所有需要的项目jar添加到lib
文件夹.
更新的jmeter.properties
文件:
Add all needed project jars to lib
folder.
Updated jmeter.properties
file:
plugin_dependency_paths=../lib/ext/ts/libs
search_paths=../lib/ext/ts/samplers
现在,当我打开项目时,我看到下图:
Now when I open the project I see below picture:
以及它的外观:
所有采样器都错过了.
这是堆栈跟踪的摘录:
2016/06/04 00:51:12 INFO - jmeter.save.SaveService: Loading file: C:\Users\Nazar\Projects\IdeaProjects\fx-performance-tests\jmetertest\FXLoadTesting-rmi.jmx
2016/06/04 00:51:12 ERROR - jmeter.protocol.java.config.gui.JavaConfigGui: Error setting class:'com.fx.test.sampler.rmi.search.post.PostFreightSearchSampler' in JavaSampler Post Freight Search, check for a missing jar in your jmeter 'search_paths' and 'plugin_dependency_paths' properties
2016/06/04 00:51:13 ERROR - jmeter.protocol.java.config.gui.JavaConfigGui: Error setting class:'com.fx.test.sampler.rmi.search.post.PostVehicleSearchSampler' in JavaSampler Post Vehicle Search, check for a missing jar in your jmeter 'search_paths' and 'plugin_dependency_paths' properties
它仅在JMeter的2.11
版本上有效.不在2.13
或3
.
It works only at 2.11
version of JMeter. Not at 2.13
or 3
.
这是正确的行为吗?或者我缺少一些重要的东西来加载jmx
文件?
推荐答案
您需要将JAR添加到JMeter CLASSPATH.
You need to add the JARs to JMeter CLASSPATH.
然后它将起作用-至少在我看来是这样.
Then it will work - At least in my case.
这篇关于无法在最新的JMeter版本上加载JMeter测试计划-jmeter.protocol.java.config.gui.JavaConfigGui:设置类错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!