JMeter - 找不到 TestPlan 类 [英] JMeter - Could not find the TestPlan class

查看:14
本文介绍了JMeter - 找不到 TestPlan 类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的水槽设置,带有一个 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆