Can not load JMeter test plan on newest JMeter version - jmeter.protocol.java.config.gui.JavaConfigGui: Error setting class

最后都变了- 提交于 2021-02-10 13:16:09

问题


I want to load JMeter test plan to the newest version of JMeter 3.

The original version of test plan was written on 2.11. I have added all needed plugins to lib folder:

  • Standard set
  • Extras Set
  • ExtrasLib

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:

And how it should look:

All samplers are missed.

Here is snippet from stack trace:

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 

It works only at 2.11 version of JMeter. Not at 2.13 or 3.

Is it correct behaviour? Or I am missing something important for loading jmx file?


回答1:


You need to add the JARs to JMeter CLASSPATH.

Then it will work - At least in my case.




回答2:


You most probably did not copy to lib folder a jar that contains the class:

  • com.fx.test.sampler.rmi.search.post.PostFreightSearchSampler


来源:https://stackoverflow.com/questions/37624187/can-not-load-jmeter-test-plan-on-newest-jmeter-version-jmeter-protocol-java-co

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!