JMeter Beginner Tutorial 9 - How to run jmeter from Command Line (non GUI mode)

preview_player
Показать описание
How to run jmeter from Command Line (non GUI mode)
Why to execute non-gui mode ?
-gui - consumes more resources / memory
-gui - not recommended for heavy load testing
-command line - can be integrated with other systems -Jenkins/CI …

Step 1 : Goto command line - goto jmeter - bin
Step 2 : Command :

jmeter -n -t (location of your jmeter test script) -l (location of the result file)

-n - non gui mode
-t - location of jmeter script
-l - location of result file

jmeter -h - to get help on jmeter commands

jmeter -? - to get information on jmeter command options

_______ ONLINE COURSES TO LEARN ________

------------ UI TESTING ------------

------------ API TESTING ------------

------------ MOBILE TESTING ------------

------------ CI | CD | DEVOPS ------------

------------ VERSION CONTROL SYSTEM ------------

------------ PERFORMANCE TESTING ------------

------------ JAVA ------------

------------ MAVEN ------------

------------ OTHERS ------------

------------ Follow ------------

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

Hi Raghav,
First of all i am thankful to u for giving us these learning course. now i want to tell u something that some difficulties to understand the videos because u know we are beginners and your 1 to 4 videos are understood but 5 to 7 video is not understandable so please do something for it to make easer to us. I think my openion on the course will help you to make effective and uderstandable to all. And after the changes you will be shine. note(and please add some hindi conversion for understand lable)

gopalverma
Автор

Hi raghav, when i run my jmeter test from command line the simple test is not stopping or running successfully, simple 1 http request is taking long time getting below summary Waiting for possible message on port 4445
summary + 5 in 00:00:02 = 2.0/s Avg: 453 Min: 398 Max: 511 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
summary + 77 in 00:00:30 = 2.5/s Avg: 392 Min: 293 Max: 614 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
summary = 82 in 00:00:33 = 2.5/s Avg: 396 Min: 293 Max: 614 Err: 0 (0.00%)
summary + 76 in 00:00:30 = 2.5/s Avg: 391 Min: 299 Max: 615 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
summary = 158 in 00:01:03 = 2.5/s Avg: 393 Min: 293 Max: 615 Err: 0 (0.00%)
summary + 77 in 00:00:30 = 2.6/s Avg: 391 Min: 301 Max: 513 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
summary = 235 in 00:01:33 = 2.5/s Avg: 393 Min: 293 Max: 615 Err: 0 (0.00%)
summary + 74 in 00:00:30 = 2.5/s Avg: 400 Min: 307 Max: 512 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
summary = 309 in 00:02:02 = 2.5/s Avg: 394 Min: 293 Max: 615 Err: 0 (0.00%)

mishkakamtikar
Автор

Thank You very much Raghav ji for sharing your knowledge with us. It would be very helpful if you explain us in validating the HTML Reporting also.

saisumith
Автор

Thanks Raghav... very good and easy to understand tutorials on JMeter. Was very helpful.

manishsharma
Автор

Thank you Ragav for the jmeter tutorial. Really appreciate it.

jithink
Автор

Very very helpful sir. Thanks a lot for this.
Waiting for many more info on this.

ankittn
Автор

Hi Raghav, Great video for learners. Redirect the path of the directory where the Jmeter is located in our system but the jmx file and csv file is located outside of the downloaded(apache-jmeter-5.1) in the jmeter folder . 
1.Create a Jmeter folder in d drive and downloaded jmeter into this folder.
2.Create a test plan as you said in the UI test video and save and run the command as you said in the video.

-n -t \Jmeter\MyFirstScript.jmx -l \Jmeter\ViewResults.csv
Mar 21, 2019 4:30:50 PM <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root Windows RegCreateKeyEx(...) returned error code 5.
Creating summariser <summary>
Created the tree successfully using \Jmeter\MyFirstScript.jmx
Starting the test @ Thu Mar 21 16:30:50 IST 2019 (1553166050927)
Waiting for possible message on port 4445
summary + 13 in 00:00:08 = 1.5/s Avg: 4103 Min: 2330 Max: 5247 Err: 0 (0.00%) Active: 10 Started: 10 Finished: 0
summary + 27 in 00:00:12 = 2.2/s Avg: 5130 Min: 3722 Max: 6408 Err: 0 (0.00%) Active: 0 Started: 10 Finished: 10
summary = 40 in 00:00:21 = 1.9/s Avg: 4796 Min: 2330 Max: 6408 Err: 0 (0.00%)
Tidying up ... @ Thu Mar 21 16:31:12 IST 2019 (1553166072490)
... end of run

it runs fine but I didn't see any results in CSV file.What is the issue please?

hariprasadyadavali
Автор

Hello dear friend. Can I disable listener for command or must remove?
thanks for this excellent class...

cibelless
Автор

Thanks - just getting into testing. Very helpful.

johnmurphy
Автор

Thank you very much for sharing your knowledge with us!

alexdan
Автор

Thanks for showing how it's done on both Windows and Mac

rashed
Автор

Hi Raghav

Thanks for the video's...I want to run my jmeter scripts one another one with wait time between scripts 10 min. Please help.

rameshvulli
Автор

You are a very good teacher. Thank you for another great overview.

donaldmclaughlin
Автор

Great video! Can you please guide how to generate column names in the exported CSV file for better understanding? thanks!

meutesting
Автор

Hi Raghav

My doubt is realted to above video.

I cnt find command prompt in Bin folder.. External I went to command prompt but I cnt find "jmeter" in it
External means window search <<cmd.

akhileshbhoir
Автор

Hi i am getting these two errors while entering the jmeter -n -t (file location) -l (file location) command, 1. main ERROR Null object returned for File in Appenders 2. main ERROR Unable to locate appender "jmeter-log" for logger config "root" .


Please help me!

NazCookingDelights
Автор

Hi Raghav, I am getting "jmeter -h" does not recognized as internal or External Command. Can you please guide me? --TIA

pranayrahate
Автор

hi raghav,
im running my test on non gui and it continues to run without stop. no end of run message it continues to print summary report. could you tell me what i can do to fix this problem

ahmedyoussrymahmoud
Автор

Hi Raghav,

I am able to run the jmx file from command prompt and able to save the summary report in CSV file.
Any idea how can I save the request response of the test in CSV file from command prompt directly...??

harshitajain
Автор

One thing more is it complete jmeter video series or not anything else left

nomanashiq