JMeter Tutorial 05 - How to run JMeter test from Command Line

preview_player
Показать описание
Learning:
GUI mode is not good for heavy load testing, since it consumes a lot of memory and resources. GUI mode of JMeter is designed for test recording, development and debugging purpose.
So, it is recommended to do the performance testing in non GUI mode(using command line) in JMeter.
You can use the below command in command prompt to run JMeter test in non GUI mode:
Command : jmeter -n -t [test JMX file] -l [test log file]
where:
-n : By this, JMeter identifies to run the test in non-gui mode
-t : Name of JMX file that contains Test script
-l : Name of JTL/CSV file where you want to capture the results

==================================================================

JMeter Tutorial Playlist:

Git and GitHub Tutorial Playlist:

Automation Anywhere Tutorial Playlist:

Рекомендации по теме
Комментарии
Автор

How do I stop the running of jmeter from cmd line?

lovenelza
Автор

These videos are better than Pluralsight for this topic. Thanks!!

flogginga_dead_horse
Автор

I run my test in non gui mode and i encountered a fatal error. When I checked the jmeter.log I saw that it got stuck at keystroke line. How do I fix this?

lovenelza
Автор

Madam i have problem to run non GUI mode on command prompt.I am beginner to learning jmeter."findstr" and java version version not found.This type of error are seen on cmd..But i have java version 12..so please help me.

nitinsurwade
Автор

getting error as "file doesnt exist or cannot be opened", what can be done for this?

kangulapavan
Автор

During rum from command line, it shows an error as that
'C : is not recognized as an internal or external coand, operable program or batch file
What should i do??

jerryberry
Автор

Madam, I am getting error Error in NonGUIDriver when i use jmeter with -e, -o option. can you please help with the fix.

mibolife
Автор

I'm getting the success message but the result folder is not getting created.


jmeter -n -t -l

vigneshpani
Автор

Thanks for informative video, I am getting error when running from CLI - "Could not open test.jmx" on macbook. I had passed all required params correctly and had set rwx permission on the file as well but no luck. Any pointers?

akashdeep
Автор

i am not able to run through comand line my comand is:
C:\Users\HP>java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

C:\Users\HP>d:

D:\>cd

-n -t -l
'findstr' is not recognized as an internal or external command,
operable program or batch file.
Not able to find Java executable or version. Please check your Java installation.
errorlevel=2
Press any key to continue . . .

plz can anyone solve this problem

moshiurrahman
Автор

Thanks for the video - I did all the steps which you are following but I'm getting error message while execute the program in cmd.. please assist if possible..

Error message:
WARN StatusConsoleListener The use of package scanning to locate plugins is deprecated and will be removed in a future release

kaliraj
Автор

i love your videos... i guess you are working realtime

LearnWithNeeraj
Автор

error:
Error in NonGUIDriver Could not find the TestPlan class!
An error occurred: Error in NonGUIDriver Could not find the TestPlan class!
errorlevel=1

Ammulu