12 | JMeter | CMD |

  Рет қаралды 8,472

Automation Step by Step

Automation Step by Step

3 жыл бұрын

All FREE courses - automationstepbystep.com/
How to run JMeter from command line
- GUI consumes memory, slower
- integrate with any external process CI CD
How to run JMeter test from command line
How to log results
How to see command line help and options
How to run from any location on your system (add in Path env variables)
Step 1 - Open Command line > Goto JMeter’s bin folder
Run the command
Windows
jmeter -n -t “location of your test file” -l “location of results file”
Linux / Mac
sh jmeter -n -t “location of your test file” -l “location of results file”
Join Automation Step By Step channel: kzbin.info...
Stories by Raghav - automationstepbystep.com/stor...
My Udemy Courses - automationstepbystep.com/udem...
Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can.
#JMeterBeginnerTutorials
_______ ONLINE COURSES TO LEARN _______
automationstepbystep.com/onli...
GitHub - github.com/Raghav-Pal/
Udemy - www.udemy.com/user/raghav-pal-3/
Training by Raghav at your venue - raghav.qna@gmail.com
Training schedule - automationstepbystep.com/trai...
----------- UI TESTING -----------
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework with RIDE- bit.ly/2Px6Ue9
Robot Framework with Eclipse - bit.ly/2N8DZxb
Protractor - bit.ly/2KtqVkU
TestProject - bit.ly/2DRNJYE
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
Katalon Studio API Testing - bit.ly/2BwuCTN
----------- MOBILE TESTING -----------
Appium - bit.ly/2ZHFSGX
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
Kubernetes - bit.ly/2MJIlMK
------------VIRTUALISATION------------
Virtualization on windows - bit.ly/2SItIL9
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
GitLab - bit.ly/2kQPGyQ
----------- PERFORMANCE TESTING -----------
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Performance Testing - bit.ly/2wEXbLS
----------- PROGRAMMING -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
GROOVY - bit.ly/2FvWV5C
JAVASCRIPT - bit.ly/2KJDZ8o
PYTHON - bit.ly/2Z4iRye
----------- IDE -----------
Visual Studio Code - bit.ly/2V15yvt
----------- BUILD TOOLS -----------
Maven - bit.ly/2NJdDRS
Gradle - bit.ly/30l3h1B
----------- OTHERS -----------
Redis- bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday- bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
Ask Raghav - bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
---------- Connect with Raghav -----------
Website - automationstepbystep.com/
LifeCharger - lifecharger.org/
Udemy Courses - www.udemy.com/user/raghav-pal-3/
Facebook - / automationstepbystep
Twitter - / learnwithraghav
KZbin - / automationstepbystep
Never Stop Learning
Raghav

Пікірлер: 25
@haticehalis4046
@haticehalis4046 11 ай бұрын
Dankeschön. Sehr kurz und gut erklärt...👍
@RaghavPal
@RaghavPal 11 ай бұрын
Herzlich willkommen
@naveenreddy5525
@naveenreddy5525 3 жыл бұрын
You are doing good job sir kepp going like this only sir lots of love from Andhra
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks a lot Naveen
@uniquetechnicalmaster6506
@uniquetechnicalmaster6506 11 ай бұрын
@@RaghavPal Sir I have 2 script test1.jmx and test2.jmx I want to run both script parallel in NON GUI Mode on Windows. I have no idea how to run it. I have only idea to run one script from non gui which I learnt from you. jmeter -n "test1.jmx" -l "results.csv" Please please guide me.
@SurajVerma255
@SurajVerma255 3 жыл бұрын
Big fan sir ji❤️
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks Suraj
@UCIUbaf3b8lN7Q5GA8qO
@UCIUbaf3b8lN7Q5GA8qO Жыл бұрын
Hello Raghav, do you know why by command line, jMeter won't generate in the .CSV file the post put delete requests? It captures only get request, thank you!
@RaghavPal
@RaghavPal Жыл бұрын
Hi Gabriel, will need to check in more details, what commands are you using
@Karthickmasanmasan
@Karthickmasanmasan Жыл бұрын
When attempted, in console i got error msg as D:\Programs\Jmeter2022\apache-jmeter-5.5\apache-jmeter-5.5\bin>jmeter -n -t "templates\ConfigElements.jmx" -l "redbus2report.csv" An error occurred: The file D:\Programs\Jmeter2022\apache-jmeter-5.5\apache-jmeter-5.5\bin\templates\ConfigElements.jmx doesn't exist or can't be opened errorlevel=1. can you check and assist at this point
@RaghavPal
@RaghavPal Жыл бұрын
Hi Karthick, Pls check if the location of file is correct, In case there are any spaces in the path put the complete path in quotes " "
@Karthickmasanmasan
@Karthickmasanmasan Жыл бұрын
@@RaghavPal Thank you Raghav, as stated there was a mistake in my written syntax. Rectified the same. Thanks.
@uniquetechnicalmaster6506
@uniquetechnicalmaster6506 11 ай бұрын
@Raghval Sir I have 2 script test1.jmx and test2.jmx I want to run both script parallel in NON GUI Mode on Windows. I have no idea how to run it. I have only idea to run one script from non gui which I learnt from you. jmeter -n "test1.jmx" -l "results.csv" Please please guide me.
@RaghavPal
@RaghavPal 11 ай бұрын
To run two JMeter scripts in parallel in non-GUI mode on Windows, you can use the following steps: 1. Open a command prompt as an administrator. 2. Navigate to the bin directory of your JMeter installation. 3. Run the following command for each JMeter script you want to run: ``` jmeter -n -t -l ``` For example, to run the script `test1.jmx` and save the results to a file called `results1.csv`, you would run the following command: ``` jmeter -n -t test1.jmx -l results1.csv ``` To run the script `test2.jmx` and save the results to a file called `results2.csv`, you would run the following command: ``` jmeter -n -t test2.jmx -l results2.csv ``` You can also run multiple JMeter scripts in parallel by using a batch file. A batch file is a text file that contains a list of commands. To create a batch file, open a text editor and save the file with the extension `.bat`. The following is an example of a batch file that can be used to run two JMeter scripts in parallel: ``` @echo off jmeter -n -t test1.jmx -l results1.csv jmeter -n -t test2.jmx -l results2.csv ``` To run the batch file, double-click on it or open a command prompt and run the following command: ``` start test.bat ``` This will start the two JMeter scripts in parallel and save the results to the specified files. I hope this helps
@uniquetechnicalmaster6506
@uniquetechnicalmaster6506 11 ай бұрын
@@RaghavPal thank you sir
@user-cn1ko9yr7l
@user-cn1ko9yr7l Жыл бұрын
Hello sir, please help i have followed all the process which you have mentioned in the video but, when i click on run button after entering all the path in cmd the test is not stopping its continuously on running mode. can anyone pls help what is the solution. i have checked heap memory also that is also fine. but my test is not stopping. please answer i need it urgently
@RaghavPal
@RaghavPal Жыл бұрын
Hi Priya There are a few possible reasons for this, and I will try to help you troubleshoot the issue. One possibility is that the test is waiting for a condition to be met before it stops. This could be something like a specific number of requests being made or a specific amount of time passing. You can check the code for the test to see if this is the case Another possibility is that the test is in an infinite loop. This means that the test is constantly repeating the same steps over and over again. If this is the case, the test will never stop running. Finally, it is also possible that the test is hung. This means that the test is not responding and is essentially frozen. If this is the case, you may need to restart the computer To troubleshoot this issue, you can try the following: 1. Check the code for the test. Make sure that the test is not waiting for a condition to be met before it stops. 2. Run the test in debug mode. Debug mode will allow you to step through the code for the test and see where it is getting stuck. 3. Restart the computer. This may fix the issue if the test is hung If you have tried all of these things and the test is still not stopping, you may need to contact the author of the test for help Here are some additional tips for troubleshooting test failures: * Check the logs. The logs will often contain information about why the test failed. * Use a debugger. A debugger can help you to step through the code for the test and see where it is getting stuck. * Contact the author of the test. If you are unable to troubleshoot the issue yourself, you may need to contact the author of the test for help. I hope this helps! Let me know if you have any other questions. Specifically for JMeter, there are a few things you can check: * Make sure that the test is configured to stop after a certain number of iterations or time period. You can do this by setting the Loop Controller or Timer elements in the test plan. * Check the Shutdown element in the test plan. This element specifies how JMeter should stop the test. Make sure that the Shutdown element is configured to stop the test after a certain number of iterations or time period. * Check the JMeter.properties file. This file contains a number of configuration settings for JMeter. Make sure that the shutdown.timeout property is set to a value that is greater than the time it takes the test to run. If you have checked all of these things and the test is still not stopping, you may need to contact the JMeter support team for help.
@aslampathan2321
@aslampathan2321 3 жыл бұрын
If one wants to start this carriers in testing. What he can start with sir???
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Aslam, pls check this : Career in Automation Testing kzbin.info/www/bejne/bJ2ofIWDlLeLpac kzbin.info/www/bejne/nXLWppSZgsaBnrc kzbin.info/www/bejne/rJOUfZ2BoNuqeac Career in Testing, Interviews, Fake Resume, Experience kzbin.info/www/bejne/ol6adKWAmdV-pq8 kzbin.info/www/bejne/hZzXhnyfobtpbsk kzbin.info/www/bejne/l3XSeJanbpqdhLs kzbin.info/www/bejne/jaGXYYybhcqHi6M
@giridharan3678
@giridharan3678 3 жыл бұрын
Sir ...can u pls ..suggest resource..for Real-time devops aws ci cd pipeline project..for free ....to put on to resume ........
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Giri, I will need to check on this
@giridharan3678
@giridharan3678 3 жыл бұрын
@@RaghavPal ok .sure . 👍
@naveenreddy5525
@naveenreddy5525 3 жыл бұрын
Waiting for 13 jmeter class sir
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Naveen, can find all here - kzbin.info/aero/PLhW3qG5bs-L_FSu9I7KlJGavyRaIaP1EC
@naveenreddy5525
@naveenreddy5525 3 жыл бұрын
@@RaghavPal thank you so much bro I learned full jmeter because of u only broooo❤️
13 | JMeter | HTML Reports from GUI & CMD |
22:08
Automation Step by Step
Рет қаралды 37 М.
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 210 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 24 МЛН
6 | JMeter | Assertions |
13:27
Automation Step by Step
Рет қаралды 10 М.
10 | JMeter |  Config Elements for HTTP test |
12:07
Automation Step by Step
Рет қаралды 9 М.
JMeter Beginner Tutorials | Tips n Tricks 5 💡 How to use JSON Extractor
14:14
Automation Step by Step
Рет қаралды 46 М.
JMeter Beginner Tutorial | How to create SOAP API Request
17:58
Automation Step by Step
Рет қаралды 34 М.
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 210 МЛН