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

Поділитися
Вставка
  • Опубліковано 15 жов 2024
  • JMeter FREE videos - automationstep...
    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 - automationstepb...
    ----------- 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
    UA-cam - / automationstepbystep
    NeverStopLearning
    Raghav

КОМЕНТАРІ • 366

  • @gopalverma4713
    @gopalverma4713 2 роки тому

    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  2 роки тому

      Hi Gopal, you can put your queries and issues in the comment section of the specific video

  • @mishkakamtikar5564
    @mishkakamtikar5564 Рік тому

    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 Shutdown/StopTestNow/HeapDump/ThreadDump 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%)

    • @RaghavPal
      @RaghavPal  Рік тому

      Mishika
      The error message "Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445" indicates that JMeter is waiting for a message from the JMeter GUI to stop the test. This message is not being sent, so the test is not stopping.
      There are a few possible reasons why the JMeter GUI is not sending the stop message:
      * The JMeter GUI is not running.
      * The JMeter GUI is not configured to send the stop message.
      * The JMeter GUI is sending the stop message, but it is not being received by the JMeter test.
      To troubleshoot this problem, you can try the following:
      1. Make sure that the JMeter GUI is running.
      2. Check the JMeter GUI configuration to make sure that it is configured to send the stop message.
      3. Check the JMeter test log to see if the stop message is being received.
      If you are still having problems, you can try running the JMeter test from the JMeter GUI instead of from the command line. This will help you to determine if the problem is with the JMeter test or with the command line execution.
      Here are some additional tips for troubleshooting this problem:
      * Make sure that you are using the latest version of JMeter.
      * Try running the JMeter test on a different machine.
      * Try running the JMeter test in a different JMeter profile.
      * Try disabling any plugins that you are using.

  • @saisumith1022
    @saisumith1022 4 роки тому +1

    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.

  • @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.

  • @cibelless510
    @cibelless510 4 роки тому +1

    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

  • @TheJonesin666
    @TheJonesin666 7 років тому +1

    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  7 років тому +1

      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 7 років тому

      Thanks mate!!

  • @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 років тому +1

      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

  • @NazCookingDelights
    @NazCookingDelights 5 років тому

    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  5 років тому

      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

  • @ranjitchauhan8993
    @ranjitchauhan8993 3 роки тому +1

    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 роки тому +1

      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

  • @ankittn19
    @ankittn19 8 років тому +2

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

    • @RaghavPal
      @RaghavPal  8 років тому +2

      I am glad it helped Ankit.

  • @1983manishsharma
    @1983manishsharma 6 років тому

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

    • @RaghavPal
      @RaghavPal  6 років тому

      You're welcome Manish.

  • @tasleemchougule5970
    @tasleemchougule5970 7 років тому

    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.

  • @pranayrahate6690
    @pranayrahate6690 3 роки тому

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

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Pranay, see the path from where you are running the command

  • @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

  • @rameshvulli8993
    @rameshvulli8993 4 роки тому +1

    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  4 роки тому

      Hi Ramesh, you can check JMeter Timers - www.blazemeter.com/blog/comprehensive-guide-using-jmeter-timers

  • @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

  • @ahmedyoussrymahmoud5389
    @ahmedyoussrymahmoud5389 Рік тому

    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  Рік тому

      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

  • @meutesting3147
    @meutesting3147 5 років тому +1

    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 років тому +1

      @@RaghavPal Thanks for replying! That solved my problem! Thanks again!

  • @jithink4756
    @jithink4756 6 років тому +1

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

    • @RaghavPal
      @RaghavPal  6 років тому +1

      you're welcome Jithin

  • @manasagurumurthy5360
    @manasagurumurthy5360 2 роки тому

    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  2 роки тому

      Hi Manasa, if you check the comments in the video - JMeter Mobile Testing - ua-cam.com/video/JFDcgKQ8VFw/v-deo.html
      You will see similar comments by many users, can check the questions and solutions, Mostly it is dependent on your device settings and setup

  • @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 роки тому +1

      HI Biswa, once you start the test, it will execute as setup

  • @akhileshbhoir8729
    @akhileshbhoir8729 5 років тому

    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  5 років тому +1

      Hi Akhilesh, you can go to cmd from window search

  • @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

  • @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

  • @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 роки тому +1

      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

  • @SubPtr
    @SubPtr 6 років тому

    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  6 років тому

      looks like jmeter cannot access the location. Try to put the location of jtl file as well in jmeters folder and check again

  • @desiaddachannel951
    @desiaddachannel951 Рік тому

    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  Рік тому

      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

  • @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

  • @sainiranjan40
    @sainiranjan40 4 роки тому

    Useful Info:
    I am trying to save 'View Results Tree' listener results into file but I am getting window pop and log error as follows,
    Window Popup: 'Error loading results file - see log file'
    Log: 2019-11-20 14:53:43,641 WARN o.a.j.r.ResultCollector: Problem reading JTL file: C:\Users\user\Desktop\apache-jmeter-5.2\bin\examples\CSVSample_user.csv
    org.apache.jorphan.util.JMeterError: java.text.ParseException: No date-time format found matching
    Answer: However I am able to create .csv file while providing filename and after test run, output results is being dumped into the .csv file.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Sai, this will help you sqa.stackexchange.com/questions/37545/jmeter-getting-timestamp-error-in-log-file-when-giving-csv-filename-in-summary?rq=1
      stackoverflow.com/questions/46060322/getting-error-try-to-browse-jtl-file-with-view-results-tree-listener-in-jmeter

  • @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.
      ua-cam.com/video/mXhC9CtQBC8/v-deo.html

  • @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

  • @shahzaibhussaini1027
    @shahzaibhussaini1027 4 роки тому +1

    hi ragav i facing error on using this on windows can u help me out
    error is jmeter is not recognized

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      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 4 роки тому

      @@RaghavPal
      Ok ragav i will try it then i will let u know

  • @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

  • @RahulVerma-oe6rm
    @RahulVerma-oe6rm 3 роки тому

    Hi Raghav, When tried to execute the command:-
    jmeter -n -t C:\Users\Conduent\Documents\Backup sharepoint\apache-jmeter-5.4.1\Test Plans\CommandLineInterface.jmx -l C:\Users\Conduent\Documents\Backup sharepoint\apache-jmeter-5.4.1\CSV\Sample_file.csv
    Then getting below error:-
    An error occurred: Unknown arg: sharepoint\apache-jmeter-5.4.1\bin\examples\CommandLineInterface.jmx
    errorlevel=1

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Rahul, not sure, will need to check online

    • @RahulVerma-bs4bq
      @RahulVerma-bs4bq 3 роки тому +1

      @@RaghavPal You can get the answer online thru the below link:-
      stackoverflow.com/questions/40473101/error-in-opening-recorded-jmeter-script-in-non-gui-mode

  • @QAQC-n1j
    @QAQC-n1j Рік тому

    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.

  • @Shimmysensei
    @Shimmysensei 7 років тому +1

    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 років тому +1

      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
      ua-cam.com/video/aHV5IizW7u4/v-deo.html&index=11&list=PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c
      Hope this helps.

  • @alohaqa7731
    @alohaqa7731 6 років тому +1

    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.

  • @venkateshandea1767
    @venkateshandea1767 7 років тому

    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  7 років тому

      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

  • @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.

  • @mibolife9384
    @mibolife9384 4 роки тому

    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  4 роки тому

      Hi, pls show your complete command

  • @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

  • @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

  • @sharanbasava7632
    @sharanbasava7632 5 років тому +1

    Hi Raghav, you are doing great job..but please show that how to create a jmeter script with Taurus automation tool..i think it shouldd be very heplpfull... Thanks..

    • @RaghavPal
      @RaghavPal  5 років тому

      Thanks for your message Sharan, I will try to do this soon

    • @sharanbasava7632
      @sharanbasava7632 5 років тому +1

      @@RaghavPal Thanks for quick reply Raghav... thanks a lot.....

  • @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.

  • @johnmurphy5710
    @johnmurphy5710 3 роки тому

    Thanks - just getting into testing. Very helpful.

    • @RaghavPal
      @RaghavPal  3 роки тому

      Glad it was helpful John

  • @jyotigorakhe45
    @jyotigorakhe45 6 років тому

    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  6 років тому

      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.

  • @MrNaatakaala_Nitish
    @MrNaatakaala_Nitish 5 років тому

    how to execute commands remotely in windows using JMeter ,can you please make a video on this with a detailed explanation.., thanks in advance

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Nitish, if you are referring to JMeter remote distributed testing, there is a video on that in the playlist.

  • @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

  • @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 роки тому +1

      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

  • @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

  • @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 - ua-cam.com/video/aHV5IizW7u4/v-deo.html
      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

  • @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/

  • @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.

  • @swatiagarwal1664
    @swatiagarwal1664 7 років тому +2

    Hi Raghav, do u have selenium tutorials as well? if yes, please share.
    Thanks

    • @RaghavPal
      @RaghavPal  7 років тому +2

      Hi Swati, here is the link for Selenium Playlist:
      ua-cam.com/play/PLhW3qG5bs-L_s9HdC5zNshE5Ti8jABwlU.html
      Also you can see other playlist here:
      ua-cam.com/channels/Tt7pyY-o0eltq14glaG5dg.htmlplaylists
      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.

  • @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

  • @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.

  • @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?

  • @nomanashiq5598
    @nomanashiq5598 7 років тому +1

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

    • @RaghavPal
      @RaghavPal  7 років тому

      You can find complete JMeter series here:
      ua-cam.com/play/PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c.html
      ua-cam.com/play/PLhW3qG5bs-L-PpK83CC_m_bWd_722tvgk.html
      ua-cam.com/play/PLhW3qG5bs-L_Eosy1Nj1tKHC5jcBAVkPb.html
      I keep on adding more videos to this when required.

  • @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 років тому +1

      Thank you.

  • @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.

  • @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 років тому +1

      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

  • @aiktym1
    @aiktym1 4 роки тому

    is their any differnece in launching JMeter with JMeter.jar verses JMeter.bat

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Abraham, this can help

  • @allabouttesting1649
    @allabouttesting1649 5 років тому

    hi, can you explain how to report given to the developer for resolving issue

    • @RaghavPal
      @RaghavPal  5 років тому

      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.

  • @psalmlawrence1150
    @psalmlawrence1150 6 років тому

    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  6 років тому

      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

  • @akashdeep6355
    @akashdeep6355 5 років тому

    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  5 років тому

      Hi Akash, pls show your command. Also check this jmeter-plugins.org/wiki/TestPlanCheckTool/

    • @akashdeep6355
      @akashdeep6355 5 років тому

      @@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  5 років тому

      Hi Akash, pls try to follow steps here - ua-cam.com/video/bYw-SKE-4Mk/v-deo.html&lc=UgyB9l4pw_vmdbkkjy54AaABAg

  • @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 років тому +1

      If the file is already there and has data, it will create issues, so we need to have a new file. Also watch this - ua-cam.com/video/oE8LJAbDJlM/v-deo.html

  • @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

  • @dhanasree12
    @dhanasree12 2 місяці тому

    Hi Raghav,
    How to execute non gui mode for certification based application.i m getting error as forbidden while running in non gui mode
    My client application having certificate we need to upload the certificate through ssl manager in jmeter and should enter the password then only it will work for jmeter and manually too.. what about non gui mode?

    • @RaghavPal
      @RaghavPal  2 місяці тому

      Dhaana
      Let's break down the problem step by step:
      Problem Statement:
      * You're using JMeter to test a certification-based application.
      * You're trying to run JMeter in non-GUI mode, but you're getting a "Forbidden" error.
      * Your client application requires a certificate, which you've uploaded through the SSL Manager in JMeter, and you need to enter a password for it to work.
      Step-by-Step Solution:
      1. Certificate Configuration:
      In non-GUI mode, you need to configure the certificate and password through command-line arguments or property files. You can't use the SSL Manager GUI to upload the certificate.
      Create a `jmeter.properties` file (if it doesn't exist already) in the JMeter bin directory (`/bin`) with the following properties:
      ```properties
      javax.net.ssl.keyStore=
      javax.net.ssl.keyStorePassword=
      ```
      Replace `` with the actual path to your keystore file (e.g., `.p12` or `.jks`) and `` with the password for the keystore.
      2. Non-GUI Mode Command:
      Run JMeter in non-GUI mode using the following command:
      ```
      jmeter -n -t -l
      ```
      Replace `` with the path to your JMeter test plan file (e.g., `.jmx`) and `` with the desired log file path.
      3. Certificate Authentication:
      To authenticate with the certificate, you need to specify the `javax.net.ssl.keyStore` and `javax.net.ssl.keyStorePassword` properties as command-line arguments. You can do this by adding the following options to the non-GUI mode command:
      ```
      jmeter -n -t -l -Djavax.net.ssl.keyStore= -Djavax.net.ssl.keyStorePassword=
      ```
      This will pass the certificate and password to JMeter for authentication.
      4. Verify Configuration:
      Double-check that your `jmeter.properties` file and command-line arguments are correct. Make sure the keystore file path and password are correct, and the test plan file is properly configured to use the certificate.
      -

    • @dhanasree12
      @dhanasree12 2 місяці тому

      @@RaghavPal I have pfx file..showing as personal information exchange.need to conver into jks ?

    • @RaghavPal
      @RaghavPal  2 місяці тому

      not very sure.. will need to check online

  • @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

  • @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

  • @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

  • @charanv3054
    @charanv3054 8 років тому

    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  8 років тому

      The jmx file you created is through jmeter or some external tool.
      Open and check jmx file if it contains tags like

  • @saraabdelfattah4305
    @saraabdelfattah4305 7 років тому

    I use Ubuntu, I wrote same command , it runs the test normally but it never save results in .csv file,. why this could happen? here is the command:
    sh jmeter -n -t /media/sara/E/apache-jmeter-3.1/bin/Glorylogin-viewhomepage.jmx -l media/sara/E/apache-jmeter-3.1/bin/summary.csv
    Can you please help?

    • @RaghavPal
      @RaghavPal  7 років тому

      Hi Sara, do you see any message/error in logs. You can delete the existing file and check. Also check with new location.

    • @saraabdelfattah4305
      @saraabdelfattah4305 7 років тому

      no errors in the log. I took a copy from the empty csv file inside bin/examples folder & placed in apache-jmeter-3.1 folder, but still same issue. summary results are in log file, but standard deviation not there, so I need to have results in csv file as in the tutorial :(. can I take ur e-mail to send you the log file? or what esle can cause the error? I have same issue with latest version of jmeter as well (3.2)

    • @RaghavPal
      @RaghavPal  7 років тому

      please send me your test plan (.jmx) and log at raghav.qna@gmail.com

  • @manikandanmadheshwaran5576
    @manikandanmadheshwaran5576 7 років тому

    Hi Raghav,
    Thanks for valuable and admirable sessions.
    Need one help from your end.
    I have kept my testplan(.jmx file) and output file(.csv file) in the path - C:\apache-jmeter-3.3\apache-jmeter-3.3\bin\examples\NonGUITest
    While running NonGUITest from command line i am getting below error. Can you please help on this.
    I have tried with quotes for location of testplan and output file also. FYI, from GUI mode the script is working fine.
    C:\apache-jmeter-3.3\apache-jmeter-3.3\bin>jmeter -n -t C:\apache-jmeter-3.3\apa
    che-jmeter-3.3\bin\examples\NonGUITest\NonGUITest.jmx -l C:\apache-jmeter-3.3\ap
    ache-jmeter-3.3\bin\examples\NonGUITest\NonGUITest.csv
    Not able to find Java executable or version. Please check your Java installation
    .
    errorlevel=2
    Press any key to continue . . .
    C:\apache-jmeter-3.3\apache-jmeter-3.3\bin>jmeter -t "C:\apache-jmeter-3.3\apach
    e-jmeter-3.3\bin\examples\NonGUITest\NonGUITest.jmx" -l "C:\apache-jmeter-3.3\ap
    ache-jmeter-3.3\bin\examples\NonGUITest\NonGUITest.csv"
    Not able to find Java executable or version. Please check your Java installation
    .
    errorlevel=2
    Press any key to continue . . .
    C:\apache-jmeter-3.3\apache-jmeter-3.3\bin>jmeter -t "\apache-jmeter-3.3\apach
    e-jmeter-3.3\bin\examples\NonGUITest\NonGUITest.jmx" -l "\apache-jmeter-3.3\ap
    ache-jmeter-3.3\bin\examples\NonGUITest\NonGUITest.csv"
    Not able to find Java executable or version. Please check your Java installation
    .
    errorlevel=2
    Press any key to continue . . .
    Thanks in Advance!!!

    • @RaghavPal
      @RaghavPal  7 років тому

      Hi MANIKANDAN, you must not have set your Java in environment variables. Please check this - ua-cam.com/video/FqpmH8MVO6A/v-deo.html
      stackoverflow.com/questions/20717051/i-am-trying-to-open-jmeter-by-the-batch-file-but-it-gives-me-a-windows-error

    • @manikandanmadheshwaran5576
      @manikandanmadheshwaran5576 7 років тому

      Hi Raghav, Thanks for the reply. I have tried those options also still i am getting the error.
      FYI. I am getting response for java version as below:
      c:\windows\system32>java -version
      java version "9"
      Java(TM) SE Runtime Environment (build 9+181)
      Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

    • @RaghavPal
      @RaghavPal  7 років тому

      Hi, what are you getting for command javac -version

    • @manikandanmadheshwaran5576
      @manikandanmadheshwaran5576 7 років тому

      Hi Raghav,
      Thanks for the reply.
      I am getting values for the command javac -version as below
      c:\windows\system32> javac -version
      javac 9
      c:\windows\system32>
      Have a great Day Ahead!!!

    • @RaghavPal
      @RaghavPal  7 років тому

      Hi, JMeter does not yet support JAVA 9, next JMeter version will support it, you can help and follow progress on this item in Bug 61529.
      jmeter.apache.org/changes.html

  • @ingriddbrito4003
    @ingriddbrito4003 4 роки тому

    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  4 роки тому +1

      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 4 роки тому

      @@RaghavPal tks so much. Indeed there was a space on the path. I put the quotes and it totally worked 👏

    • @ingriddbrito4003
      @ingriddbrito4003 4 роки тому

      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  4 роки тому +1

      Do not create any file manually, let the folder be empty and let the command create the csv file and try

  • @alexdan111111111111
    @alexdan111111111111 6 років тому +1

    Thank you very much for sharing your knowledge with us!

  • @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.

  • @purushottamw
    @purushottamw 5 років тому +1

    Could you Please provide the details using windows for command line execution

    • @RaghavPal
      @RaghavPal  5 років тому +1

      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

  • @varalikaagarwal4477
    @varalikaagarwal4477 3 роки тому

    021-01-10 16:50:59,895 main ERROR FileManager (jmeter.log) java.io.FileNotFoundException: jmeter.log (Permission denied) java.io.FileNotFoundException: jmeter.log (Permission denied)-getting this error while running command .PLease help

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Varalika, try to run cmd prompt as administrator

  • @sriharivankayalapati873
    @sriharivankayalapati873 7 років тому

    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..

  • @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 - ua-cam.com/video/mYGQPj78YhI/v-deo.html

    • @riaaggarwal6993
      @riaaggarwal6993 6 років тому +1

      ok thanks

  • @sayantanghosh7571
    @sayantanghosh7571 3 роки тому

    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  3 роки тому

      Hi Sayantan, what is the error

    • @sayantanghosh7571
      @sayantanghosh7571 3 роки тому

      @@RaghavPal 500 Internal Error. But when I am running the same JMX file over Jmeter GUI it is working fine.

    • @RaghavPal
      @RaghavPal  3 роки тому

      will need to check this

  • @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

  • @aiktym1
    @aiktym1 4 роки тому

    I was able to run from command prompt without any issue, but after renaiming .jmx file i am getting error :Unknown arg :?t errorlevel1=1

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Hi Abraham, hope the command is correct. Pls check this - stackoverflow.com/questions/38852591/jmeter-unknown-arg-t

    • @aiktym1
      @aiktym1 4 роки тому

      Automation Step by Step - Raghav Pal Thanks

    • @aiktym1
      @aiktym1 4 роки тому

      Automation Step by Step - Raghav Pal which thread group I should use for SOAK, SPIKE and STRESS test.

  • @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.

  • @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
      ua-cam.com/video/aHV5IizW7u4/v-deo.html

  • @aiktym1
    @aiktym1 4 роки тому

    Could u please show how to come up with thread count with respect to Benchmark.

    • @RaghavPal
      @RaghavPal  4 роки тому

      I will plan a session on this Abraham

  • @nikhilarora6043
    @nikhilarora6043 4 роки тому

    You have not mentioned what happens to listeners and why listeners were removed from the non GUI mode.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Nikhil, listeners and other components remain the in the test plan as configured. Here we are just running the test from command line instead of JMeter GUI. Let me know if I did not get your question correctly.

  • @waheedahmed6524
    @waheedahmed6524 6 років тому

    How do you run jmeter script in non gui mode and generate HTML report based of that .csv file?

    • @bhargava562
      @bhargava562 6 років тому +1

      jmeter -n -t /path/to/testplan -l /path/to/result.csv -e -o /path/to/report/folder

    • @RaghavPal
      @RaghavPal  6 років тому

      Thanks Bhargava, Waheed, you can also see this video - ua-cam.com/video/aHV5IizW7u4/v-deo.html

  • @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.

  • @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 років тому +1

      thanks for your prompt reply then let me start learning jMeter
      Thanks

  • @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 - ua-cam.com/video/eXmrjuFeowU/v-deo.html

    • @fernandogranados8244
      @fernandogranados8244 3 роки тому

      @@RaghavPal thanks !!!!

  • @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.

  • @prathameshsawant656
    @prathameshsawant656 6 років тому

    Hi Raghav,
    How to monitoring from command Line mode.
    (eg - memory,cpu,disk i/o, etc)

    • @RaghavPal
      @RaghavPal  6 років тому +1

      Hi Sawant, you can see this - ua-cam.com/video/cJT1EXR_Tfk/v-deo.html

  • @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.

  • @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

  • @nidhipal2156
    @nidhipal2156 7 років тому

    Hi Raghav,
    I am getting some heapdump messages in csv file.How to resolve that

    • @RaghavPal
      @RaghavPal  7 років тому

      Hi Nidhi, pls check in the listener if you have selected some option in the configure section.

  • @Vizai11
    @Vizai11 7 років тому

    Hi Raghav, Why I am getting error 'jmeter' is not recognized as an internal or external command in command prompt!!!!

    • @RaghavPal
      @RaghavPal  7 років тому

      you have to go in jmeter bin directory from cmd and then give the command.

    • @Vizai11
      @Vizai11 7 років тому

      C:\Users\Saicom>C:\Users\Saicom\Desktop\apache-jmeter-3.2\bin
      'C:\Users\Saicom\Desktop\apache-jmeter-3.2\bin' is not recognized as an internal
      or external command,
      operable program or batch file.
      C:\Users\Saicom>
      it is showing same error

    • @RaghavPal
      @RaghavPal  6 років тому

      Hi Vijay, you need to use cd for change directory like:
      cd C:\Users\Saicom\Desktop\apache-jmeter-3.2\bin

  • @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
      ua-cam.com/play/PLhW3qG5bs-L-PpK83CC_m_bWd_722tvgk.html