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

  Рет қаралды 171,294

Automation Step by Step

Automation Step by Step

8 жыл бұрын

JMeter FREE videos - automationstepbystep.com/
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
JMeter Beginner Playlist : bit.ly/2Q0AJG3
JMeter Intermediate Playlist : bit.ly/2M6AiIS
JMeter Advanced Playlist: bit.ly/38T8KR5
______ ONLINE COURSES TO LEARN _______
Visit - automationstepbystep.com/
----------- 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 - bit.ly/2Px6Ue9
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
----------- MOBILE TESTING -----------
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
----------- 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
----------- JAVA -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
----------- MAVEN -----------
Maven - bit.ly/2NJdDRS
----------- 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
----------- Follow -----------
Facebook - / automationstepbystep
Twitter - / automationsbs
KZbin - / automationstepbystep
NeverStopLearning
Raghav

Пікірлер: 362
@jithink4756
@jithink4756 6 жыл бұрын
Thank you Ragav for the jmeter tutorial. Really appreciate it.
@RaghavPal
@RaghavPal 6 жыл бұрын
you're welcome Jithin
@1983manishsharma
@1983manishsharma 6 жыл бұрын
Thanks Raghav... very good and easy to understand tutorials on JMeter. Was very helpful.
@RaghavPal
@RaghavPal 6 жыл бұрын
You're welcome Manish.
@ankittn19
@ankittn19 7 жыл бұрын
Very very helpful sir. Thanks a lot for this. Waiting for many more info on this.
@RaghavPal
@RaghavPal 7 жыл бұрын
I am glad it helped Ankit.
@alexdan111111111111
@alexdan111111111111 6 жыл бұрын
Thank you very much for sharing your knowledge with us!
@RaghavPal
@RaghavPal 6 жыл бұрын
You're welcome Alex
@fred00141
@fred00141 7 жыл бұрын
Very good job!
@johnmurphy5710
@johnmurphy5710 2 жыл бұрын
Thanks - just getting into testing. Very helpful.
@RaghavPal
@RaghavPal 2 жыл бұрын
Glad it was helpful John
@TheJonesin666
@TheJonesin666 6 жыл бұрын
Hi Raghav. Great video!! One question, when you run in non-GUI mode and specify the csv file, it defaults to each individual transaction which is great. Is there any way I can output to .csv the summary data? I'd like the data from the "Summary Report" listener so I can see the likes of the averages etc. Cheers!
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi you can add summary report listener in you test plan and provide a csv location as output and save. When you now run from command line it should generate summary report also. Try it out.
@TheJonesin666
@TheJonesin666 6 жыл бұрын
Thanks mate!!
@donaldmclaughlin1175
@donaldmclaughlin1175 4 жыл бұрын
You are a very good teacher. Thank you for another great overview.
@RaghavPal
@RaghavPal 4 жыл бұрын
Most welcome Donald
@Shimmysensei
@Shimmysensei 7 жыл бұрын
Hi Raghav! Excellent playlist! I have a question: is there any way to generate fancy html reports from a non gui test run? Something like the ones Gatling generates. Thanks! keep rocking
@RaghavPal
@RaghavPal 7 жыл бұрын
Hi Joaquin, thanks, i am glad you got to learning from this playlist. Please watch this - Jmeter Beginner Tutorial 11 - How to create HTML Reports from command line kzbin.info/www/bejne/l3m5Znyfr7xqq5Y&index=11&list=PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c Hope this helps.
@alohaqa7731
@alohaqa7731 6 жыл бұрын
Hi Ragahv, Thanks a ton for all the videos. They are easy to understand and learn. I have an question for non gui mode test, is it necessary to put the test file in bin folder? Actually when I put the test file in bin folder at that time I am able to run the test but when I put the test file outside bin in an another folder I got error message as 'An error occurred: Unknown arg: Programs\JmeterJenkinsIntegration.jmx errorlevel=1'
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Aloha, it is not necessary to put the file in bin folder of jmeter. If you put it anywhere else you need to provide the complete path in your command.
@agniparajuli
@agniparajuli 6 жыл бұрын
Raghav, how do you point load generator to the scenario, how many user can one LG push to the test, where we exactly set properties in Slave and master machine for heap , user and other important things, can you make it clear please
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Agni, I will make a session to cover these.
@LayanSooriyaarachchi
@LayanSooriyaarachchi 5 жыл бұрын
nice explanation !!!
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks Layan
@kattanaveen9548
@kattanaveen9548 2 жыл бұрын
Good stuff in the tutorial
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks a lot
@rashed459
@rashed459 5 жыл бұрын
Thanks for showing how it's done on both Windows and Mac
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Rizvan
@tasleemchougule5970
@tasleemchougule5970 6 жыл бұрын
Hello Sir, I tried to use below command on Windows: jmeter -n -t JMeterCommandLine.jmx -l JCommandLine.csv But I am getting below error. Can you please help? Error in NonGUIDriver java.lang.Runtimeexception: Could not find the TestPlan class!
@RamandeepKaur-pl9kr
@RamandeepKaur-pl9kr 7 жыл бұрын
Hi Raghav, for running scripts via non-GUI mode, do we need to remove listener or can we keep it. Also, my file has name has some spaces. like: \JMeter\apache-jmeter-3.2\bin>jmeter -n -t /c/JMeter/JMeter Scripts/Supplies L gin Recording Controller.jmx -l /c/JMeter/JMeter Scripts/CSVSuppliesResult.csv getting: An error occurred: Unknown arg: Scripts/Supplies rerorlevel=1 Can u clarify me why that error is coming. where i'm making mistake. Thanks in advance.
@RaghavPal
@RaghavPal 7 жыл бұрын
hi Ramandeep, you can try putting the location inside quotes or add \\\ to escape space. You can keep the listener if its required. Its recommended to disable view results tree and other memory consuming listeners like graphs listener while doing actual performance test.
@kalyanipatki3237
@kalyanipatki3237 6 жыл бұрын
Hi Raghav, when we're saving the results in a cab file, where can we check for Content check fails..if any!!
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Kalyani, i hope you are referring to CSV file. You can edit the parameter you like to see in the result file.
@manikumarnaidu6104
@manikumarnaidu6104 7 жыл бұрын
Hi Raghav, To run Jmeter from NON GUI. Is there any other format of jmeter need to download to run from backend...
@RaghavPal
@RaghavPal 7 жыл бұрын
No. the same JMeter should work.
@anujashrestha5165
@anujashrestha5165 6 жыл бұрын
Hi Raghav I would like to thank you for such a great help.. I had one question I hope you could provide me with the answer. How can we analyze the result? I did not get any header for the columns in the csv file.
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Anuja, thanks for watching. You can add this to your command -Jjmeter.save.saveservice.print_field_names=trueOr look at options here - stackoverflow.com/questions/32026513/jmeter-running-command-line-arg-l-doesnt-log-headers?
@anujashrestha5165
@anujashrestha5165 6 жыл бұрын
Thank you.
@harshitajain8564
@harshitajain8564 4 жыл бұрын
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...??
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Harshita, usually saving response data is not recommended as it can increase I/O operations and can also make the result file bulky. Still if you want, can check this - stackoverflow.com/questions/34896087/headless-jmeter-how-to-get-printed-the-response-data-in-the-output-file
@sureshviv6367
@sureshviv6367 4 жыл бұрын
very helpful sir ur all videos so keep post this kind of videos like influx db grafana
@RaghavPal
@RaghavPal 4 жыл бұрын
Sure Suresh, I will do
@sureshviv6367
@sureshviv6367 4 жыл бұрын
@@RaghavPal 🙏
@techinbanking6177
@techinbanking6177 6 жыл бұрын
Hi Raghav, I am getting a header when i do not give the extension(csv) to the results file in the argument but then I need to openit using excel data utility. If I give the csv extension I do not get the header like your case. How do we get a header also so that the results can be more user friendly?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Prashant, you can use force delete flag. Read this - stackoverflow.com/questions/46534539/jmeter-non-gui-mode-doesnt-print-header-line-for-csv-file
@biswabhusan9278
@biswabhusan9278 3 жыл бұрын
Nice video.But I have one doubt can we change the load test scenario in between the Run?If we are executing in NON gui mode.
@RaghavPal
@RaghavPal 3 жыл бұрын
HI Biswa, once you start the test, it will execute as setup
@phoenixmoguns007
@phoenixmoguns007 4 жыл бұрын
HI Bro, I have been following your page for last 2 months for load testing in jmeter, thanks for all your inputs, Tutorial is best of all and given the crisp & clear ideas to me I need one more help, could you please help me, how to measure the Page response time. (For every dropdowns, Select & Save) Jmeter listener (View results) showing the page response time while running the load testing, but i need the actual page response time while using the page manually.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Mohan, thanks for watching, You can use assertions. There is a response assertion where you can put checks on time etc. Now it is on the page level, You cannot find out time of loading every element on the page. kzbin.info/www/bejne/o4nLdGx5qbZ1eZo
@avinashpenugonda
@avinashpenugonda 3 жыл бұрын
HI Raghav, Along with the stats we get with Non-GUI. I would like to see the stats like 99% & Throughput while performing runs with Non-GUI mode. How can I achieve that? Can you please help me. Thanks
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Avinash, you can add aggregate report from GUI and also give a file to save it and can run this from command line. Can also use html dashboard reports for more data - stackoverflow.com/questions/41733613/how-to-print-95-and-99-percentiles-in-the-jmeter-aggregate-report-command-line
@saisumith1022
@saisumith1022 4 жыл бұрын
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.
@RaghavPal
@RaghavPal 4 жыл бұрын
Will plan a session Sai
@saisumith1022
@saisumith1022 4 жыл бұрын
@@RaghavPal Thank you so much. It would be very helpful for us.
@gopalverma4713
@gopalverma4713 Жыл бұрын
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)
@RaghavPal
@RaghavPal Жыл бұрын
Hi Gopal, you can put your queries and issues in the comment section of the specific video
@nomanashiq5598
@nomanashiq5598 7 жыл бұрын
Hello Raghav can you please Is it possible recorded ui test from command line and view result in csv. Or we can use command line for single page performance test then go another page.
@RaghavPal
@RaghavPal 7 жыл бұрын
Hi Noman, do you want to record a test from command line or execute? Recording has to be done on the browser and yes you can run them from command line and also generate csv, html reports. There are videos on this. Please check.
@qaashish5512
@qaashish5512 7 жыл бұрын
hi thanks for sharing this video series. but i got this error. when i run the command D:\apache-jmeter-3.2\apache-jmeter-3.2\bin>jmeter -n -t /apache-jmeter-3.2/apache-jmeter-3.2/bin/examples/Commandline _ Demo.jmx -l /apache-jmeter-3.2/apache-jmeter-3.2/bin/examples/Command_Demo.csv An error occurred: Unknown arg: _ errorlevel=1
@NazCookingDelights
@NazCookingDelights 4 жыл бұрын
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!
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Nazrin, what is your os, it may be due to permisions on the jmeter folder. Pls check if this helps - bz.apache.org/bugzilla/show_bug.cgi?id=62427
@meutesting3147
@meutesting3147 5 жыл бұрын
Great video! Can you please guide how to generate column names in the exported CSV file for better understanding? thanks!
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, you can do that in jmeter.properties file located in jmeter bin folder Or you can set from command line stackoverflow.com/questions/32026513/jmeter-running-command-line-arg-l-doesnt-log-headers
@meutesting3147
@meutesting3147 5 жыл бұрын
@@RaghavPal Thanks for replying! That solved my problem! Thanks again!
@pranayrahate6690
@pranayrahate6690 2 жыл бұрын
Hi Raghav, I am getting "jmeter -h" does not recognized as internal or External Command. Can you please guide me? --TIA
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Pranay, see the path from where you are running the command
@neelimapatnaik4327
@neelimapatnaik4327 2 жыл бұрын
Hi Raghav, How to add Listeners, I actually need Aggregate report on same from non gui mode
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Neelima, can check the Listeners video, if you need something specific as per your needs, try checking online examples
@ahmedyoussrymahmoud5389
@ahmedyoussrymahmoud5389 10 ай бұрын
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
@RaghavPal
@RaghavPal 10 ай бұрын
Ahmed There are a few things you can do to fix the problem of JMeter running without stopping in non-GUI mode: 1. Make sure that you have set the `Loop Controller` element to a finite number of loops. The default value for the `Loop Controller` element is `Forever`, which means that the test will run indefinitely. You can change the value of the `Loop Controller` element to a specific number of loops, or you can set it to `Endless`, which will cause the test to run until it is stopped manually. 2. Make sure that you have set the `Shutdown` timer to a finite amount of time. The `Shutdown` timer is used to stop the test after a certain amount of time has elapsed. The default value for the `Shutdown` timer is `0`, which means that the test will not be stopped by the timer. You can change the value of the `Shutdown` timer to a specific amount of time in seconds. 3. Make sure that you have set the `Stop Test on Error` checkbox. The `Stop Test on Error` checkbox is used to stop the test if an error occurs. The default value for the `Stop Test on Error` checkbox is `false`, which means that the test will continue to run even if an error occurs. You can change the value of the `Stop Test on Error` checkbox to `true` to cause the test to stop if an error occurs. If you have set all of these options and the test is still running without stopping, then it is possible that there is a problem with your JMeter configuration. You can try debugging your JMeter configuration to find the problem. I hope this helps
@chandraprabha3655
@chandraprabha3655 2 жыл бұрын
Hi Rhagav , Thankyou so much for this videos . I am doing performance testing by following your videos but some API's are passing and some are failing (getting 400 response ) showing body parameter is missing even though I am passing correct parameter which I have passed in postman.
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Chandra, will need to check the failures and logs
@sureshaita8234
@sureshaita8234 7 жыл бұрын
hi Raghav, i am big fan of your jmeter videos.can you add jenkins integration with jmeter?
@RaghavPal
@RaghavPal 7 жыл бұрын
Suresh, thanks. I get great motivation from people who are learning and getting helped through this channel. Please watch JMeter Intermediate playlist. You will find the video - JMeter Intermediate Tutorial 1 - How to run JMeter test from Jenkins kzbin.info/aero/PLhW3qG5bs-L-PpK83CC_m_bWd_722tvgk
@cibelless510
@cibelless510 4 жыл бұрын
Hello dear friend. Can I disable listener for command or must remove? thanks for this excellent class...
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Vinicius, You can disable. When running actual performance test do not use any graphical listeners or heavy listeners like View results in Tree, These are good when creating and troubleshooting. Once all is set, just use a simple csv based listeners from command line
@mohanrajpanneerselvam8920
@mohanrajpanneerselvam8920 5 жыл бұрын
Thanks a lot
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Mohan
@ranjitchauhan8993
@ranjitchauhan8993 3 жыл бұрын
Hi Raghav thank you for this video's great effort by you appreciated 👍 , I was moved to load testing project and it was new for me but your videos helped me alot, thank you so much. I need one help if you can, is there a possibility for load testing of an application, can we add a button in Jmeter to increase the number of threads.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Ranjit, you can increase the load in the configuration of the test plan. Can also use Ultimate thread group jmeter-plugins.org/wiki/UltimateThreadGroup/
@ranjitchauhan8993
@ranjitchauhan8993 3 жыл бұрын
@@RaghavPal Thank you Raghav
@venkateshandea1767
@venkateshandea1767 6 жыл бұрын
Hi Raghav, I'm not able view the results in CSV file but when i run the .jmx file from command prompt it's not showing any error...I have tried creating non-existing file also but the file itself not getting created
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Venkatesh, check if this helps you - stackoverflow.com/questions/30859144/how-can-i-write-jmeter-test-result-in-csv-file-via-cmd stackoverflow.com/questions/7990863/how-to-save-jmeter-aggregate-report-results-to-a-csv-file-using-command-prompt
@vishalkumar-mk2hp
@vishalkumar-mk2hp 5 жыл бұрын
Hi Raghav, Can you please guide on : how to create client certificate keystore from .pfx file and use it in jmeter?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Vishal, I will have to check it online. However, here are some links to help. I believe you can convert .pfx to .jks and then add to jmeter www.sslshopper.com/ssl-converter.html www.digicert.com/ssl-support/jks-import-export-java.htm stackoverflow.com/questions/23534429/add-external-certificates-to-jmeter
@jyotigorakhe45
@jyotigorakhe45 5 жыл бұрын
Hi Raghav .... In jmeter how can we decides load at initially? I mean how can we decide no. Of users at initial to check performace of system?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Jyoti, for the first run we always do with a single user load, just to verify our test is setup properly. After this, we do multiple rounds by gradually increasing the load. Now the no of users will depend on the users expected to use this application in real-time. This data should be given to you by management etc. In case you do not have this you can run the test with loads like 1 User, 10 User, 50 Users, 100, 200, 500, 1000 and so on. Do get the requirement on the max load you need to test with. You can keep results for all these runs for comparison.
@aiktym1
@aiktym1 4 жыл бұрын
is their any differnece in launching JMeter with JMeter.jar verses JMeter.bat
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Abraham, this can help
@shekharmishra1469
@shekharmishra1469 6 жыл бұрын
Can you suggest any website to get live projects on jmeter ?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Shekhar, I was just checking and there are some paid sites. You can also do some search online.
@sainiranjan40
@sainiranjan40 4 жыл бұрын
Hi Raghav, How to record Response body(VIEW RESULTS TREE) into .csv file?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Sai, check this - www.blazemeter.com/blog/how-to-save-response-data-in-jmeter/
@RAJATRAWAT88
@RAJATRAWAT88 6 жыл бұрын
Hey Raghav. I follow your Jmeter videos and I really love them. I have 3 questions. 1. I want to run my my scripts in non GUI mode and I also want to generate the summery report. Do I have to add something different in the command for it?? I have seen your other vieo in which you have suggested to browse the jtl file in different listener to see results. But is it the only way? 2. If I have timers and disabled webcalls on my scripts, will the non-gui mode will act on them or not? 3. For some of the calls I am getting error "Non HTTP response code: java.net.ConnectException,Non HTTP response message: Connection timed out: " which I usually dont get for the UI mode. Shall I remove them? And why I am not getting any error when I use the GUI mode.
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Rajat, Thanks for watching 1. As far as i know for summary results you will need to upload jtl file to the listeners. Also you can create dashboard Html Reports - kzbin.info/www/bejne/l3m5Znyfr7xqq5Y 2. Ideally non-gui mode should work with all the elements added in Test Plan. Do let me know if you see some different behaviour 3. Not sure why the behaviour is different. Do you disable all listeners before running in non-gui. Try that.
@RAJATRAWAT88
@RAJATRAWAT88 6 жыл бұрын
Thank you very much for the help Raghav. I will try what you said and let you know. Thanks :) I have only one confusion. When I disable any listener or web request in my test plan Non-GUI mode wont act on them right?
@RaghavPal
@RaghavPal 6 жыл бұрын
Yes it wont act on disabled elements.
@RAJATRAWAT88
@RAJATRAWAT88 6 жыл бұрын
Thanks Raghav :) . I have a request. Can you make non-gui Jmeter video for master and slave configuration.
@RaghavPal
@RaghavPal 6 жыл бұрын
Sure Rajat, it will be helpful if you can tell me exactly stepwise what you need
@fouziyahanif4429
@fouziyahanif4429 6 жыл бұрын
Hi , When i run the Jmeter on Command line as "Jmeter " i can able to open the Jmeter,but when i try to run the through location path on CMD prompt. ( C:\Users\imper\Desktop\apache-jmeter-3.3 (1)\apache-jmeter-3.3\bin) shows not recognized as an Internal or external command. I have the set the path on Environment variable @ User variable - path (JMETER_HOME- Variable name ) (Variable path as - ( C:\Users\imper\Desktop\apache-jmeter-3.3 (1)\apache-jmeter-3.3\bin). How to set the exact path on Environment Variable.
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Fouziya, hope you have checked all paths are setup correctly. Try putting the files in a new folder and update paths.
@swatiagarwal1664
@swatiagarwal1664 7 жыл бұрын
Hi Raghav, do u have selenium tutorials as well? if yes, please share. Thanks
@RaghavPal
@RaghavPal 7 жыл бұрын
Hi Swati, here is the link for Selenium Playlist: kzbin.info/aero/PLhW3qG5bs-L_s9HdC5zNshE5Ti8jABwlU Also you can see other playlist here: kzbin.info/door/Tt7pyY-o0eltq14glaG5dgplaylists You can subscribe to the channel to get more updates Hope it helps.
@RamandeepKaur-pl9kr
@RamandeepKaur-pl9kr 7 жыл бұрын
Hi Raghav, are u covering frame work, TestNG/Maven/Grid concepts under Selenium?
@RaghavPal
@RaghavPal 7 жыл бұрын
hi Ramandeep, yes i will be covering these in some time.
@desiaddachannel951
@desiaddachannel951 9 ай бұрын
Hi Raghav, while using this command I got an error of access is denied so could you please tell me why this is coming and how to resolve this?
@RaghavPal
@RaghavPal 9 ай бұрын
There are a few possible reasons why you might be getting an "access is denied" error when using the JMeter command line: * You are trying to run JMeter from a directory that you do not have permission to access. * You are trying to run JMeter with a user account that does not have permission to access JMeter. * There is a problem with the JMeter installation. To resolve this issue, you can try the following: * Make sure that you are running JMeter from a directory that you have permission to access. * Make sure that you are running JMeter with a user account that has permission to access JMeter. * Try running JMeter as an administrator. * Reinstall JMeter. If you are still having trouble resolving the issue, please provide me with more information, such as the operating system that you are using and the exact command that you are running. I will try my best to help you resolve the issue. Here are some additional tips for troubleshooting JMeter command line errors: * Check the JMeter logs for more information about the error. The JMeter logs can be found in the `jmeter.log` file. * Search for help online. There are many resources available online that can help you troubleshoot JMeter command line errors. * Ask for help in the JMeter community. The JMeter community is very active and helpful. You can ask for help on the JMeter mailing list or the JMeter IRC channel. I hope this helps
@jlei6802
@jlei6802 5 жыл бұрын
Would it be the same to disable the Listener instead of deleting them??
@RaghavPal
@RaghavPal 5 жыл бұрын
You can disable in case you may need them in future.
@cintalaura09
@cintalaura09 3 жыл бұрын
hi, i able to run the test but for the csv file, not result is written in the file. still blank. below is the result in command line: Creating summariser Created the tree successfully using "my jmx path" Starting standalone test @ Fri Apr 30 11:04:20 SGT 2021 (1619751860260) Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445 summary = 1 in 00:00:00 = 2.1/s Avg: 252 Min: 252 Max: 252 Err: 0 (0.00%) Tidying up ... @ Fri Apr 30 11:04:21 SGT 2021 (1619751861164) ... end of run can advise what's the problem? thanks
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Anis, pls check if the path of the file is given properly, without spaces and spelling errors. You can also give name of a non-existing file and let JMeter create the file
@vankayalapatisrihari1718
@vankayalapatisrihari1718 6 жыл бұрын
hi Raghav. can you please explain the how to design the workload model in jmeter.
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Vankayalapati, i believe this varies with needs of testing and that of org. So workload model can be prepared on the basis of a requirements and expectations from performance testing. I will try to do a sample on this.
@madhuramhatre7188
@madhuramhatre7188 7 жыл бұрын
Hi Raghav... I want to save my response data to csv.. for each of my http request... Is there any way where I can save the response data for that particular request? I have many http requests and I am using csv as input data.
@RaghavPal
@RaghavPal 7 жыл бұрын
Yes Madhura, you have options in most of the listeners to save results in a file. You can use it.
@karthikgreddy
@karthikgreddy 6 жыл бұрын
Dear Raghav, Thank you so much for these sessions, they are so helpful I am trying to execute in NonGUI mode on Mac and getting - "-bash: jmeter: command not found" error. I have JDK 8 installed on my Mac and I have placed the test plan and results file inside bin/examples folder of JMeter. Can you please help with this error ?
@karthikgreddy
@karthikgreddy 6 жыл бұрын
Please ignore, I am able to resolve this by adding 'sh' in the beginning of the command on Mac. Thank you
@RaghavPal
@RaghavPal 6 жыл бұрын
Glad to know it worked Karthik
@archanabehl333
@archanabehl333 6 жыл бұрын
Hi raghav, thanks for this tutorial online. I am having problem saving test results in bin/ example folder. It's keep on saying access denied. I am on windows.
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Archana, just check the folder has read/write permission for all users. Also ensure path is correct.
@raghuram7893
@raghuram7893 8 жыл бұрын
Hi Raghav, Can you please let me know how to generate html report in Non GUI mode?
@RaghavPal
@RaghavPal 8 жыл бұрын
Here you go: Jmeter Beginner Tutorial 11 - How to create HTML Reports from command line kzbin.info/www/bejne/l3m5Znyfr7xqq5Y
@akhileshbhoir8729
@akhileshbhoir8729 4 жыл бұрын
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
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Akhilesh, you can go to cmd from window search
@kannurawat7854
@kannurawat7854 7 жыл бұрын
Hi Raghav, Can you please share some security testing automation videos?
@RaghavPal
@RaghavPal 7 жыл бұрын
HI Kannu, will make some sessions on this topic in future.
@charanv3054
@charanv3054 7 жыл бұрын
Hi! when I try to run Jmeter from command prompt in windows: I'm getting this error! can you help me! Writing log file to: C:\softwares\apache-jmeter-3.0\bin\jmeter.log Could not open MyPage.jmx
@RaghavPal
@RaghavPal 7 жыл бұрын
The jmx file you created is through jmeter or some external tool. Open and check jmx file if it contains tags like
@manasagurumurthy5360
@manasagurumurthy5360 Жыл бұрын
Hi Raghav, Thanks for this video . I was trying to perform load testing through mobile devices and this video helped me a lot. But one thing i am facing is, as soon as i configure my mobile (change the port number, set the IP address to the system) , my internet connection goes down, after two or 3 test cases, my internet connection is lost. But as soon as i change all those to default in my wifi settings, my internet connection is restored. Can you please help me to overcome this. Thank you
@RaghavPal
@RaghavPal Жыл бұрын
Hi Manasa, if you check the comments in the video - JMeter Mobile Testing - kzbin.info/www/bejne/gHenlJqBhp2JfNk You will see similar comments by many users, can check the questions and solutions, Mostly it is dependent on your device settings and setup
@akashdeep6355
@akashdeep6355 4 жыл бұрын
Thanks Raghav for this very informative video. I am getting error - "Could not open test.jmx" on macbook. I followed the exact steps shown in video and could run my test from UI but getting error when running from CLI. I had passed all params correctly and do have rwx permission on the jmx file too. Any pointers?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Akash, pls show your command. Also check this jmeter-plugins.org/wiki/TestPlanCheckTool/
@akashdeep6355
@akashdeep6355 4 жыл бұрын
@@RaghavPal Thanks Raghav, I have deleted the project and created again, it worked from commandline now, not sure what went wrong. Now ran into another issue - Added plugin manager and added plugin 'TestPlan check tool'. getting error - -bash: apache-jmeter-5.1.1/lib/ext/TestPlanCheck.sh: No such file or directory I can see apache-jmeter-5.1.1/lib/ext/jmeter-plugins-plancheck-2.4.jar but apache-jmeter-5.1.1/lib/ext/TestPlanCheck.sh is not present. command - apache-jmeter-5.1.1/lib/ext/TestPlanCheck.sh --jmx Jmeter_CLITest.jmx
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Akash, pls try to follow steps here - kzbin.info/www/bejne/mIraXoaBepJng80&lc=UgyB9l4pw_vmdbkkjy54AaABAg
@rameshvulli8993
@rameshvulli8993 3 жыл бұрын
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.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Ramesh, you can check JMeter Timers - www.blazemeter.com/blog/comprehensive-guide-using-jmeter-timers
@purushottamw
@purushottamw 5 жыл бұрын
Could you Please provide the details using windows for command line execution
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Prasad on windows you can follow the same steps, only that the command will start with jmeter and not jmeter.sh Example : jmeter -n -t /path/to/your/test.jmx -l /path/to/results/file.jtlHere is a link to help - www.blazemeter.com/blog/5-ways-launch-jmeter-test-without-using-jmeter-gui
@mibolife9384
@mibolife9384 3 жыл бұрын
i am using jmeter with windows, when i use jmeter with -e -o it shows error message Error in NonGUIDriver java.lang.IllegalArgumentException, how do I fix it
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi, pls show your complete command
@prathameshsawant656
@prathameshsawant656 5 жыл бұрын
Hi Raghav, How to monitoring from command Line mode. (eg - memory,cpu,disk i/o, etc)
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Sawant, you can see this - kzbin.info/www/bejne/mXu3YniOh8SHnM0
@balasubramanian4812
@balasubramanian4812 5 жыл бұрын
Hi Thanks for the video but I am getting the following exception while running in non gui mode Error in NonGUIDriver com.thoughtworks.xstream.io.StreamException: .Please help me to resolve this issue.
@RaghavPal
@RaghavPal 5 жыл бұрын
Pls show me your command Bala
@cbdasvelho
@cbdasvelho 5 жыл бұрын
Thank you so much !! Keep teaching us !
@RaghavPal
@RaghavPal 5 жыл бұрын
Sure Douglas, I will
@gunjanattri7365
@gunjanattri7365 4 жыл бұрын
Hi Raghav, I am going through this video but during practice I am landing up with this error can u explain me once why i'm getting this i already checked on google also but didn't find the proper solution. An error occurred: Unknown arg: Software\apache-jmeter-5.3\bin\practice\JmeterCommandLineTest.jmx errorlevel=1
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Gunjan, First check your command, Copy your command in a notepad or text editor and check if you have any new line or extra spaces etc. After that check this: jmeter.512774.n5.nabble.com/How-to-Run-Jmeter-in-command-line-td2640725.html stackoverflow.com/questions/38852591/jmeter-unknown-arg-t
@yangjeerai8363
@yangjeerai8363 6 жыл бұрын
While creating csv file from command line it is generated in xml format.How can I solve this problem due to which i am having problem in creating html report as well.
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi, goto jmeter.properties file in bin folder. uncomment or add this line jmeter.save.saveservice.output_format=csv
@psalmlawrence1150
@psalmlawrence1150 5 жыл бұрын
thank alot man. my test plan run successfully in non GUI mode but its only the csv report file that got created. the html file was not generated. done everything exactly as yours. please help
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, just check if the csv file you have given has already some data, use a new file and also check if report folder is empty
@venkatb1769
@venkatb1769 7 жыл бұрын
Hi Raghav- Do we need any programming/scripting knowledge to learn JMeter? Thanks
@RaghavPal
@RaghavPal 7 жыл бұрын
Hi Venkat, No, you do not need any programming/scripting knowledge to learn JMeter. There are some samplers where you can do programming for some custom actions, but not mandatory.
@venkatb1769
@venkatb1769 7 жыл бұрын
thanks for your prompt reply then let me start learning jMeter Thanks
@kalkole2009
@kalkole2009 6 жыл бұрын
Hi Raghav, I have proplem appear when run command 'jmeter' is not recognized as an internal or external command, operable program or batch file.
@RaghavPal
@RaghavPal 6 жыл бұрын
What command are you using. What OS are you using. Have you changed dir to jmeter bin folder on cmd line.
@kalkole2009
@kalkole2009 6 жыл бұрын
OS is windows and i changed the dir to bin folder from cmd ? And have same error
@RaghavPal
@RaghavPal 6 жыл бұрын
do you have a file named jmeter in your bin folder. You can re download jmeter and try
@user-ke9cy8gu3u
@user-ke9cy8gu3u Жыл бұрын
How can we figure out and resolve " An error occurred: Unknown arg: Kumari\Desktop\Jmeter\apache-jmeter-5.5\bin\TestaLoad\ThreadGroup.jmx errorlevel=1"
@RaghavPal
@RaghavPal Жыл бұрын
Hi The error message "An error occurred: Unknown arg: Kumari\Desktop\Jmeter\apache-jmeter-5.5\bin\TestaLoad\ThreadGroup.jmx errorlevel=1" means that JMeter is not able to find the file `ThreadGroup.jmx`. This can happen for a few reasons, including: * The file `ThreadGroup.jmx` is not in the current directory. * The file `ThreadGroup.jmx` is not named correctly. * The file `ThreadGroup.jmx` is not a JMeter script file. To resolve this error, you need to make sure that the file `ThreadGroup.jmx` is in the current directory and that it is named correctly. You can also try renaming the file to something else, such as `test.jmx`. If the file is a JMeter script file, you can try running it from the JMeter GUI. If you are still getting the error after making these changes, you can try the following: * Check the permissions on the file `ThreadGroup.jmx`. * Try running JMeter as an administrator. * Try reinstalling JMeter. If you are still getting the error after trying these steps, you can contact JMeter support for help. Here are some additional things to keep in mind: * The file `ThreadGroup.jmx` is a JMeter script file. * JMeter script files must be in the JMeter `bin` directory or a sub-directory of the `bin` directory. * The file `ThreadGroup.jmx` must have the extension `.jmx`. I hope this helps! Let me know if you have any other questions.
@ufo7614
@ufo7614 Жыл бұрын
Hello, is there any tutoriol how to run jmeter on Remote server using putty? Thx
@RaghavPal
@RaghavPal Жыл бұрын
To run JMeter on a remote server using PuTTY, you can follow these steps: Connect to the remote server using PuTTY: Launch PuTTY and enter the server's IP address or hostname in the "Host Name" field. Make sure the connection type is set to SSH. Click "Open" to establish the connection. Transfer the JMeter files: Once connected to the remote server, you need to transfer your JMeter files (JMX script, input data, etc.) to the server. You can use the pscp command (PuTTY Secure Copy) or an FTP client like FileZilla to transfer the files. For example, to transfer a file using pscp from the local machine to the remote server: pscp C:\path\to\jmeter\test.jmx username@remote-server:/path/on/server Navigate to the JMeter installation directory: Use the cd command to navigate to the directory where JMeter is installed on the remote server. For example: cd /path/to/jmeter/bin Run JMeter in command-line mode: Execute the JMeter script using the jmeter command in command-line mode. Provide the necessary options such as the test plan file, log file, and any other required parameters. For example: ./jmeter -n -t /path/on/server/test.jmx -l /path/on/server/results.jtl This command runs JMeter in non-GUI mode (-n), specifies the test plan file (-t), and sets the output log file (-l) where the results will be saved. Monitor the test execution: Once the test is running, you can monitor the progress and view the results either by logging into the server and accessing the output log file or by transferring the log file back to your local machine using pscp or another file transfer method. That's it! You have successfully executed JMeter on a remote server using PuTTY. Make sure you have JMeter installed on the remote server and that the necessary dependencies are available. Adjust the file paths and options in the commands according to your specific setup
@allabouttesting1649
@allabouttesting1649 4 жыл бұрын
hi, can you explain how to report given to the developer for resolving issue
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Ashwini, for performance testing, we usually create a metrics, mostly in csv/excel format where we can put our data like for some particular user load what was the response time, avg, min, max etc. And you can put data from diff user load in multiple columns so its easy to compare. Providing the time of execution will help, as developers can then check the server logs of that time and troubleshoot.
@amitsharma9086
@amitsharma9086 4 жыл бұрын
Good after noon Sir- Sir i have created and save one test in c drive ---> users---> amit - with test name is (HTTP Request.jmx) and save one csv file as well with name ----> Data1 under same location. Now what happen while executing the command through cmd it shows below error "C:\Users\Amit>jmeter -n -t/users/amit/HTTP Request.jmx -l /users/amit/Data1.csv 'jmeter' is not recognized as an internal or external command, operable program or batch file" my machine is windows.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Amit, first you will need to change dir (cd) to the location of jmeter bin folder and then start the command with jmeter.sh
@waheedahmed6524
@waheedahmed6524 5 жыл бұрын
How do you run jmeter script in non gui mode and generate HTML report based of that .csv file?
@bhargava562
@bhargava562 5 жыл бұрын
jmeter -n -t /path/to/testplan -l /path/to/result.csv -e -o /path/to/report/folder
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks Bhargava, Waheed, you can also see this video - kzbin.info/www/bejne/l3m5Znyfr7xqq5Y
@nidhipal2156
@nidhipal2156 6 жыл бұрын
Hi Raghav, I am getting some heapdump messages in csv file.How to resolve that
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Nidhi, pls check in the listener if you have selected some option in the configure section.
@SubPtr
@SubPtr 5 жыл бұрын
I have tried running jmeter script from command line but every time, I get this error- D:\>apache-jmeter-4.0\bin>jmeter -n -t D:\apache-jmeter-4.0\bin\Microservices_Latest.jmx -l D:\Trasers\Latest\scriptresults.jtl Access is denied. Could you please help me.
@RaghavPal
@RaghavPal 5 жыл бұрын
looks like jmeter cannot access the location. Try to put the location of jtl file as well in jmeters folder and check again
@bhavana1477
@bhavana1477 5 жыл бұрын
Well Explained @Raghav Pal ji
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks Bhavana
@faisalakml
@faisalakml 4 жыл бұрын
Sir, i want to ask. My scripts was successfully created but its not happend. The progress is 0.00% Can u help me to solve this?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Faisal, will need to see the details and logs to troubleshoot. Show me the complete message on the cmd line
@nomanashiq5598
@nomanashiq5598 7 жыл бұрын
One thing more is it complete jmeter video series or not anything else left
@RaghavPal
@RaghavPal 7 жыл бұрын
You can find complete JMeter series here: kzbin.info/aero/PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c kzbin.info/aero/PLhW3qG5bs-L-PpK83CC_m_bWd_722tvgk kzbin.info/aero/PLhW3qG5bs-L_Eosy1Nj1tKHC5jcBAVkPb I keep on adding more videos to this when required.
@sym-john7795
@sym-john7795 6 жыл бұрын
thanks bhaiya..... is there any way to do not create csv file before run the command. i mean create .csv file automatically
@RaghavPal
@RaghavPal 6 жыл бұрын
If the file is already there and has data, it will create issues, so we need to have a new file. Also watch this - kzbin.info/www/bejne/pXabfX13l6l9oq8
@damilolaagboola595
@damilolaagboola595 7 жыл бұрын
Hi Ragnav, how can I use jmeter to simulate a request coming from different ip addresses? Thank you.
@RaghavPal
@RaghavPal 7 жыл бұрын
Hi Damilola, you can use IP Spoofing for this.
@damilolaagboola595
@damilolaagboola595 7 жыл бұрын
Can you do a video on steps to do this? Thank you.
@RaghavPal
@RaghavPal 7 жыл бұрын
sure will do in some time
@elmariscal5394
@elmariscal5394 4 жыл бұрын
Hi Raghav, I ran several times a test with 300 users, ramp-up=10 seconds and duration=20. First time (with gui mode) the average of the responses was 5 seconds moreoLess but in non-gui mode it took always lees time from 3.5 to 4.4 seconds. So , in conclusion running from command line the responses takes less time than running from GUI mode. Let me know if I am ok with this idea. Regards!
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Franco, CMD mode is more efficient and consumes less memory, So after creating and freezing test plan we always run from cmd mode. Also while running it is a good practice to disable any graphical listeners like View Results in Tree, Graph etc
@meghasuri1152
@meghasuri1152 2 жыл бұрын
Can you let me know how can we spifcy test run duration using command line,in GUI mode we just need to put the value in Duration(seconds) but how to do via command line.I need to run my JMeter script using command line for 1 hour.This portion is not there in video as well
@ramandeepdhir4858
@ramandeepdhir4858 4 жыл бұрын
Hi Raghav, Hope you are safe and well. I am experiencing an issue while running JMeter test-plan through command line. 1. Recorded a test-plan through Blazemeter and import it in JMeter. 2. Run the test-plan through command line using this command and generated CSV for results. 3. Import the csv (created in previous step) in 'Summary Report' listener. 4. It was observed that for one the api (/login), the api gets appended by number. Eg: in 'Summary Report', under column: Label, the api shows as login, login-0, login-1 and so on. I searched on internet but did not find solution to this one, can you please help? I followed your JMeter tutorials and then made this framework. P.S: When I run the same test-plan through JMeter UI, the above issue does NOT persist.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Ramandeep, Pls check your request samplers, Expand them and see if there are child requests.
@ramandhir1002
@ramandhir1002 4 жыл бұрын
@@RaghavPal I expanded that but no sub-request was present in that /login request.
@RaghavPal
@RaghavPal 4 жыл бұрын
I will need to see the setup and screenshots
@ramandhir1002
@ramandhir1002 4 жыл бұрын
@@RaghavPal Okay, shall I send the screenshots via email?
@RaghavPal
@RaghavPal 4 жыл бұрын
Sure Raman
@shahzaibhussaini1027
@shahzaibhussaini1027 3 жыл бұрын
hi ragav i facing error on using this on windows can u help me out error is jmeter is not recognized
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Shahzaib, pls change dir (CD) to the location of jmeter.bat file and then run command. If you do not find jmeter.bat file in the bin folder, Goto jmeter.apache.org/download_jmeter.cgi and get the zip file from Binary section (not Sources section)
@shahzaibhussaini1027
@shahzaibhussaini1027 3 жыл бұрын
@@RaghavPal Ok ragav i will try it then i will let u know
@aravapallimanikanta1378
@aravapallimanikanta1378 6 жыл бұрын
Hi Raghav, While running the test am getting an error as " findstr is not recognized as an internal or external command". How to overcome this? I googled most of the ppl are telling run JMeter as an administrator but while doing the non GUI test how is it possible?? And I checked with my java path also that is correct. PLEASE HELP ON THIS....
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi ARAVAPALLI, plese send me your command You can start your cmd as admin
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi , try this Right Click on My Computer, then click Properties, followed by Advanced System Settings > Environment Variables Look for the Path System Variable Add this path to the end, after a semicolon: C:\Windows\System32 Also check - Check this - stackoverflow.com/questions/40998250/running-jmeter-gives-findstr-is-not-recognized-as-an-internal-or-external-comm
@riaaggarwal6993
@riaaggarwal6993 6 жыл бұрын
Hi Raghav, Nice videos. I have one question.How to run more than one test from command line
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Ria, you can use Ant, Maven or Jenkins for this.
@riaaggarwal6993
@riaaggarwal6993 6 жыл бұрын
Okay then I need to study that can u help me which one to study or u have any video tutorial for that
@RaghavPal
@RaghavPal 6 жыл бұрын
You can find Jenkins integration here - kzbin.info/www/bejne/o4qqgoOgbJ2Mnqs
@riaaggarwal6993
@riaaggarwal6993 6 жыл бұрын
ok thanks
@shubhamagarwal3776
@shubhamagarwal3776 7 жыл бұрын
Hi Raghav I am running the same command on ubuntu but data not saving in csv file
@RaghavPal
@RaghavPal 7 жыл бұрын
Hi Shubham, can you try not having the file already created, or give a non-existing file in command. I hope you have troubleshooted, any OS specific issues.
@naincypriya2281
@naincypriya2281 7 жыл бұрын
Can you explain regular expression extractor? Plzzzz
@RaghavPal
@RaghavPal 7 жыл бұрын
Hi Naincy, i have explained it in this video - kzbin.info/www/bejne/bV6xlKyQqrqEpNk&list=PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c&index=19
@naincypriya2281
@naincypriya2281 7 жыл бұрын
Thnku so much
@sanjayvardhan8696
@sanjayvardhan8696 4 жыл бұрын
Jmeter is working fine at my window but i am not able to write the command at CMD for run jmeter to Non-Gui mode.What i do?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Sanjay, what is the issue you are facing. I hope you are running command from the location of jmeter.bat i.e bin folder .Also check that you have jmeter.bat (or jmeter.sh in case of mac/linux) in your bin folder. In case you do not find the file Goto jmeter.apache.org/download_jmeter.cgi and get the zip file from Binary section (not Sources section)
@sanjayvardhan8696
@sanjayvardhan8696 4 жыл бұрын
@@RaghavPal Actually Raghav i am not able to set path of jmeter for run to Non Gui mode at CMD.
@RaghavPal
@RaghavPal 4 жыл бұрын
What is the error message you get
@hariprasadyadavali2524
@hariprasadyadavali2524 5 жыл бұрын
Hi Raghav, Great video for learners. Redirect the path of the directory where the Jmeter is located in our system D:\Jmeter\apache-jmeter-5.1\bin> 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. D:\Jmeter\apache-jmeter-5.1\bin>jmeter -n -t \Jmeter\MyFirstScript.jmx -l \Jmeter\ViewResults.csv Mar 21, 2019 4:30:50 PM java.util.prefs.WindowsPreferences WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5. Creating summariser Created the tree successfully using \Jmeter\MyFirstScript.jmx Starting the test @ Thu Mar 21 16:30:50 IST 2019 (1553166050927) Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump 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?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Hari, Is the csv file getting generated. Try to use a non-existing csv file (so that it will be created on execution) and check again
@hariprasadyadavali2524
@hariprasadyadavali2524 5 жыл бұрын
Thanks, Raghav, now I able to view results in csv file.The mistake i did was open the csv file while running the command.
@fahadfayyaz552
@fahadfayyaz552 Жыл бұрын
why it is showing active 10 started 10 etc
@sayantanghosh7571
@sayantanghosh7571 2 жыл бұрын
Sir I am having multiple thread groups in my Jmx file. So while running it through command line I am getting an error.
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Sayantan, what is the error
@sayantanghosh7571
@sayantanghosh7571 2 жыл бұрын
@@RaghavPal 500 Internal Error. But when I am running the same JMX file over Jmeter GUI it is working fine.
@RaghavPal
@RaghavPal 2 жыл бұрын
will need to check this
@reddys3939
@reddys3939 2 жыл бұрын
Am getting error like jmeter is not recognised as an internal or external command
@RaghavPal
@RaghavPal 2 жыл бұрын
check your bin folder, if you have jmeter.bat file (windows) OR jmeter.sh file (Mac) Also make sure that on cmd you are on the bin folder
@fernandogranados8244
@fernandogranados8244 3 жыл бұрын
For non-GUI report only print 1 line even if you execute 100 VU's?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Fernando, it may be showing the summary, You can check more options on getting results on cmd. In case you need to generate an aggregate report - kzbin.info/www/bejne/m4nQo52re8qirbc
@fernandogranados8244
@fernandogranados8244 3 жыл бұрын
@@RaghavPal thanks !!!!
@manjushagonjari554
@manjushagonjari554 3 жыл бұрын
how to resolve 502 - gateway timeout error while doing load testing? Note : I am getting this error when load is 500 users
@manjushagonjari554
@manjushagonjari554 3 жыл бұрын
how to resolve 502 - gateway timeout error while doing load testing? Note : I am getting this error when load is 500 users
@manjushagonjari554
@manjushagonjari554 3 жыл бұрын
how to resolve 504- gateway timeout error while doing load testing? Note : I am getting this error when load is 500 users
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Manjusha, it can be a valid performance issue, that is your server is not able to handle 500 concurrent users, You can let your dev/networks team know about it, But before that also check if you have created and testing with a realistic user load.i.e. You should 1. have some think time between requests 2. Add ramp up time, Do not start directly with 500 users Some other good practices 1. Always do performance testing on a separate env. Create a sep env which will not be used for other activities 2. Run your tests with the same infrastructure, network stats etc. To get consistent results and can be compared with the baseline 3. Create more realistic test - have some think time between requests 4. Add ramp up time, Do not start directly with 500 users 5. Always have a baseline to compare your test against. 6. JMeter checks the server performance and does not care for browser render time. So if you see your jmeter results are good but your application is still slow. Check for client-side performance testing tools 7. Focus on the areas that needs performance testing based on user scenario 8. Always document your results
@RiteshGupta-yc5po
@RiteshGupta-yc5po 6 жыл бұрын
Hi Raghav, I tried to follow your video but while running the command, my jmeter got open and test ended with below error. Error :- java.util.prefs.WindowsPreferences WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0 x80000002. Windows RegCreateKeyEx(...) returned error code 5. Please help!
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Ritesh, try to run jmeter.bat as Administrator once stackoverflow.com/questions/20698493/jmeter-starts-with-warning-message
@RiteshGupta-yc5po
@RiteshGupta-yc5po 6 жыл бұрын
Hi Raghav, I tried the same command in different version(2.6) and i found that its working fine there but not in 3.0 version. Is there any issue in 3.0 version for running the jmeter using command line?
@ingriddbrito4003
@ingriddbrito4003 3 жыл бұрын
One more Tks teatcher for this series. I am having trouble to run jmeter. I always got an error on the filename.jmx. "An error occurred: Unknow arg: (testfile.jmx)" Any suggestion is appreciate
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi, will need to see your command. Check if there are any spaces in the path, if yes put the path in quotes " "
@ingriddbrito4003
@ingriddbrito4003 3 жыл бұрын
@@RaghavPal tks so much. Indeed there was a space on the path. I put the quotes and it totally worked 👏
@ingriddbrito4003
@ingriddbrito4003 3 жыл бұрын
Now I got another problem. I ran the script again and I got the error that the CSVSample.csv is not empty. So, I deleted all the content and tried to run again, but even with the empty file, I can not proceed. Also, I created .csv files but the command line does not work. Is there any way to use again this file, or create a valid .csv?
@RaghavPal
@RaghavPal 3 жыл бұрын
Do not create any file manually, let the folder be empty and let the command create the csv file and try
@sriharivankayalapati873
@sriharivankayalapati873 6 жыл бұрын
hi raghav i run the jmeter scripts for non gui mode it showing summery =0 in 00:00:00 =*******/s avg = 0 min= 92233720, max=-92233720 errors= 0(0.00%) can you please tell me the solution..
@RaghavPal
@RaghavPal 6 жыл бұрын
Did you get any errors / info in logs.
@sriharivankayalapati873
@sriharivankayalapati873 6 жыл бұрын
no errors but i get the results in csv file
JMeter Beginner Tutorial 10 - How to test FTP upload and download
12:57
Automation Step by Step
Рет қаралды 91 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 34 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 66 МЛН
THE POLICE TAKES ME! feat @PANDAGIRLOFFICIAL #shorts
00:31
PANDA BOI
Рет қаралды 24 МЛН
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 64 МЛН
JMeter Beginner Tutorial 11 - Testing Web Services API
20:33
Automation Step by Step
Рет қаралды 235 М.
JMeter Tutorial 05 - How to run JMeter test from Command Line
6:28
Quality Assurance Lab
Рет қаралды 32 М.
JMeter Top most asked Interview Questions | JMeter refresher by Raghav Pal |
41:28
Automation Step by Step
Рет қаралды 55 М.
12 | JMeter |  CMD |
12:16
Automation Step by Step
Рет қаралды 8 М.
Non GUI Mode & Flashy Reports - JMeter Tutorial 20
17:55
HelpingTesters
Рет қаралды 6 М.
JMeter Beginner Tutorial 8 - How to create a Database Test Plan
10:13
Automation Step by Step
Рет қаралды 177 М.
Understanding Thread Group | JMeter Tutorial
10:51
Ashish Thakur
Рет қаралды 10 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 34 МЛН