Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMeter - Could not find the TestPlan class

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).

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).

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.

When I tried ruuning it -
java -jar ApacheJMeter.jar -n -t flume_http_test.jmx

I am getting this error ERROR - jmeter.JMeter: Error in NonGUIDriver java.lang.RuntimeException: Could not find the TestPlan class!

Any Suggestions?

Thanks in Advance

like image 909
Himanshu Avatar asked Sep 12 '13 08:09

Himanshu


3 Answers

Possible you incorrect save your test plan. Try to open your flume_http_test.jmx i guess it contains only http request element without test plan element. Try to save your test with test plan element selected. http://joxi.ru/E2pvg4GSeLblrY

like image 62
Renat Avatar answered Oct 24 '22 00:10

Renat


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:

enter image description here

like image 13
Marged Avatar answered Nov 19 '22 07:11

Marged


I too had the same error message. After creating the Test Plan and successful trial run on a Windows machine in GUI mode, I uploaded the JMX file to a Linux server to run in Command line mode.

After much searching and messing around I found that it was because I left the Test Plan name of the script to the default "Test Plan"!? When I changed it to "My Test Plan", for example, then saved and uploaded to the Linux server it ran successfully.

like image 3
Jason Avatar answered Nov 19 '22 09:11

Jason