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

  Рет қаралды 33,328

Quality Assurance Lab

Quality Assurance Lab

5 жыл бұрын

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:
• JMeter Tutorial
Git and GitHub Tutorial Playlist:
• Git and GitHub Tutorial
Automation Anywhere Tutorial Playlist:
• Automation Anywhere A1...
Subscribe for more tutorials - / @qualityassurancelab7764

Пікірлер: 29
@flogginga_dead_horse4022
@flogginga_dead_horse4022 3 жыл бұрын
These videos are better than Pluralsight for this topic. Thanks!!
@LearnWithNeeraj777
@LearnWithNeeraj777 2 жыл бұрын
i love your videos... i guess you are working realtime
@venkataramanajerripothu7367
@venkataramanajerripothu7367 2 жыл бұрын
Thank you so much mam
@akashdeep6355
@akashdeep6355 4 жыл бұрын
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?
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
Hi, please check below pointers- In the command line, first we need to move to JMeter -> Bin folder and then enter the command Full path of the test.jmx file eg "D:\jmeterProject\test.jmx" should be provided under the command
@akashdeep6355
@akashdeep6355 4 жыл бұрын
@@qualityassurancelab7764 Yes, I am running command from bin folder and had given absolute path of jmx file. I am using macbook and my command is - macbook1:bin advk$ sh jmeter -n -t /Users⁩/advk/⁨apache-jmeter-5.1.1⁩/⁨bin⁩/⁨examples⁩/Jmeter_CLITest.jmx -l /Users⁩/advk⁩/⁨apache-jmeter-5.1.1⁩/⁨bin⁩/⁨examples⁩/CLITestResultsCSV.csv pls suggest.
@nitinsurwade989
@nitinsurwade989 4 жыл бұрын
@@qualityassurancelab7764 yes i am doing that.but not done.
@mibolife9384
@mibolife9384 4 жыл бұрын
Madam, I am getting error Error in NonGUIDriver java.lang.IllegalArgumentException when i use jmeter with -e , -o option. can you please help with the fix.
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
Hi, are you able to run this command - jmeter -n -t [test JMX file] -l [test log file] ? Did you get the error while generating HTML reports? Could you please share the exact command where you get the error?
@kangulapavan5890
@kangulapavan5890 3 жыл бұрын
getting error as "file doesnt exist or cannot be opened",what can be done for this?
@qualityassurancelab7764
@qualityassurancelab7764 3 жыл бұрын
Please share the command you used
@jerryberry7188
@jerryberry7188 4 жыл бұрын
During rum from command line,it shows an error as that 'C : \apche-jmeter-5.2.1\apche-jmeter-5.2.1\bin is not recognized as an internal or external coand,operable program or batch file What should i do??
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
Hi, could you please share the command you used?
@nitinsurwade989
@nitinsurwade989 4 жыл бұрын
i m also sme probem.are you solve it
@nitinsurwade989
@nitinsurwade989 4 жыл бұрын
@@qualityassurancelab7764 D:\apache-jmeter-5.3\bin>jmeter -n -t D:\apache-jmeter-5.3\bin\examples\Jm.jmx -l D:\apache-jmeter-5.3\bin\examples\Result.csv '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 . . .
@nitinsurwade989
@nitinsurwade989 4 жыл бұрын
@@qualityassurancelab7764 can you call me on my number.
@kaliraj286
@kaliraj286 11 ай бұрын
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
@nitinsurwade989
@nitinsurwade989 4 жыл бұрын
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.
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
Please follow the below steps: Right Click My Computer -> click Properties -> Advanced System Settings > Environment Variables -> System Variables -> Select Path variable and click on Edit -> Add the value -> C:\Windows\System32
@nitinsurwade989
@nitinsurwade989 4 жыл бұрын
@@qualityassurancelab7764 Thank you very muchhhhhhhhh madammmmmmm.
@nitinsurwade989
@nitinsurwade989 4 жыл бұрын
i am using jmeter 5.3
@moshiurrahman895
@moshiurrahman895 4 жыл бұрын
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 D:\apache-jmeter-5.1.1\apache-jmeter-5.1.1\bin D:\apache-jmeter-5.1.1\apache-jmeter-5.1.1\bin>jmeter -n -t D:\apache-jmeter-5.1.1\apache-jmeter-5.1.1\bin\examples\CSVSample.jmx -l D:\apache-jmeter-5.1.1\apache-jmeter-5.1.1\bin\examples esult1.csv '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
@nitinsurwade989
@nitinsurwade989 4 жыл бұрын
i am also same problem.are you solve that
@qualityassurancelab7764
@qualityassurancelab7764 4 жыл бұрын
@@nitinsurwade989 , @Moshiur Rahman - Please follow the below steps: Right Click My Computer -> click Properties -> Advanced System Settings > Environment Variables -> System Variables -> Select Path variable and click on Edit -> Add the value -> C:\Windows\System32
@Ammulu1423
@Ammulu1423 3 жыл бұрын
error: Error in NonGUIDriver java.lang.IllegalStateException: Could not find the TestPlan class! An error occurred: Error in NonGUIDriver Could not find the TestPlan class! errorlevel=1
@Ammulu1423
@Ammulu1423 3 жыл бұрын
you should mention how to genarte jmx file also know we need to know what is use of that atleatst please it is not like continuation then..
@vigneshpani4909
@vigneshpani4909 Жыл бұрын
I'm getting the success message but the result folder is not getting created. jmeter -n -t C:\Users\Vignesh\Application\apache-jmeter-5.5\apache-jmeter-5.5\Results\Measurepm-production-login-test.jmx -l C:\Users\Vignesh\Application\apache-jmeter-5.5\apache-jmeter-5.5\Results\Result\Book.csv
No empty
00:35
Mamasoboliha
Рет қаралды 9 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 68 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
JMeter tutorial 07 - How to read data from CSV File | Parameterization in JMeter
16:12
JMeter Intermediate Tutorial 1 - How to run JMeter test from Jenkins
18:13
Automation Step by Step
Рет қаралды 95 М.
13 | JMeter | HTML Reports from GUI & CMD |
22:08
Automation Step by Step
Рет қаралды 37 М.
No empty
00:35
Mamasoboliha
Рет қаралды 9 МЛН