JMeter-找不到TestPlan类 [英] JMeter - Could not find the TestPlan class
问题描述
我有一个简单的水槽设置,带有一个HTTP源和一个将POST请求有效负载写入文件的接收器. (此完整设置在Linux计算机上).
I have a simple flume setup with a HTTP souce and a sink that writes the POST request payload to a file. (This complete setup is on a Linux machine).
在那之后,我的任务是对设置进行性能测试.因此,我决定使用JMeter(这是我第一次使用它).
After that my task is to do a performance test on ths setup. So I decided to use JMeter (this is the first time, I am using it).
因此,我在Windows机器上(使用GUI)创建了一个测试计划,然后将其复制到linux环境中的jmeter/bin文件夹中.
So I created a test plan on my windows machine (using GUI) and then copied it to the jmeter/bin folder in the linux enviornment.
当我尝试对其进行命名时-
java -jar ApacheJMeter.jar -n -t flume_http_test.jmx
When I tried ruuning it -
java -jar ApacheJMeter.jar -n -t flume_http_test.jmx
我收到此错误 错误-jmeter.JMeter:NonGUIDriver java.lang.RuntimeException中的错误:找不到TestPlan类!
I am getting this error ERROR - jmeter.JMeter: Error in NonGUIDriver java.lang.RuntimeException: Could not find the TestPlan class!
有什么建议吗?
预先感谢
推荐答案
我今天在JMeter 2.13上遇到了同样的问题.当我使用菜单中的此项保存该文件时,我收到了一个在非GUI模式下接受的jmx文件:
I had the same problem today with JMeter 2.13. When I saved it using this entry from the menu I received a jmx file that was accepted in non-GUI mode:
这篇关于JMeter-找不到TestPlan类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!