JMeter Beginner Tutorial 13 - How to create HTML Dashboard Reports from command line

preview_player
Показать описание
(This feature will work in jmeter 3.0 and later ver.)
Step 1 : Create Test Plan and save it (and close).
Step 2 : Open command line and change dir to jmeter/bin
Step 3 : Execute command:

to create report at the end of the test
—————————————————————
jmeter -n -t “location of the jmeter script” -l “location of result file”
-e -o “location of the output folder”

create report from a standalone csv file
——————————————————————
jmeter -g “location of csv file” -o “location of output folder”


Step 4 : Analyse HTML (Dashboard) Reports

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

________ ONLINE COURSES TO LEARN ________

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

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

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

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

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

------------ PROGRAMMING ------------

------------ IDE ------------

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

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

----------- Connect with Raghav ------------

You can support my mission for education by sharing this knowledge and helping as many people as you can

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

Thanks Raghav for the video. In my case, to create report at the end of the test, I need to add additionally -f to the command. Ex: jmeter -n -t “location of the jmeter script” -l “location of result file”
-f -e -o “location of the output folder”.
If they face "Error in NonGUIDriver java.lang.IllegalArgumentException", this solution can help them.

One more pre-condition is: In Jmeter.properties file (which is in bin folder), uncomment property
The output format should be in csv

mohanalatha
Автор

This was the best video on jmeter on youtube. None of the other guys have explained things in so much detail.

AkshayKumar-xhob
Автор

Ma sha Allah. Your videos are amazing.
Simple and concise.
Keep spreading your knowledge.

hayaulislam
Автор

Hi Raghu,
I did load testing for some APIs and added two liestners "View report in Table" and "Summary Report". After that i saved both reports in .csv file and successfully converted view result in table .csv report file to HTML Report, Where as when i am trying to change summary report to HTML report getting below error.

sh jmeter -g -o

Writing log file to:
File does not contain the field names header, ensure the jmeter.save.saveservice.* properties are the same as when the CSV file was created or the file may be read incorrectly
An error occurred: Mismatch between expected number of columns:14 and columns in CSV file:10, check your jmeter.save.saveservice.* configuration

Regards,

Sumit kumar sharma

sumitkumarsharma
Автор

Thanks much for your explanation Raghav...It is very clear and finally you made my day....Thanks much..

raghuram
Автор

Hi Raghav, Very nice videos.
I need to know if there a way to remove few information from the report, for example I only need the main dashboard and Response Time report and want to remove the rest of the information in the HTML report. Is there a way to remove information about overtime chart and throughput chart and only keep dashboard and Response time reports ?

rashmis
Автор

Hello Raghav, Thank you so much for your videos which are easily understandable. I have a doubt .
I am using JMeter Apache 4.0 version, while creating HTML Dashboard Reports from command line (non-gui mode) i am prompted with an error. Can you please suggest .. I mentioned the error below. Thank you in advance.

-n -t /Desktop/apache-jmet
er-4.0/JMeter Practice/HTMLReporting.jmx -l Pr
actice/Test1.csv -e -o Practice/HTMLReports/
An error occurred: Unknown arg: Practice/HTMLReporting.jmx
errorlevel=1
Press any key to continue . . .
-n -t /Users/depurur/Deskt
op/JMeter Practice/HTMLReporting.jmx -l /Users/depurur/Desktop/JMeter Practice/T
est1.csv -e -o /Users/depurur/Desktop/JMeter Practice/HTMLReports
An error occurred: Unknown arg: Practice/HTMLReporting.jmx
errorlevel=1
Press any key to continue . . .

keerthidepuru
Автор

This video saved my life today!!! Thanks Raghav!!

testingtrail
Автор

Hi Raghav,
Your teaching is so much appreciated. Your style and step by step method i very authentic and I can't express my gratitude in simple words. I learn Jmeter only based on your guidance and its actually delivering the project for my client.

Can you please create some videos on the following topics:
1. Install influx Db on windows
2. Install Grafana
3. Connect Jmeter DB to send data to influx and capture the results from Grafana

Thanks in advance!!

Debajyoti

debajyotichanda
Автор

Thanks Raghav for te video, how can we genrate report in case of

LikeMindzz
Автор

Thanks Raghav Sir, your videos are helping me a lot :) .I am beginner on jmeter. I did load testing. But in my case, query take a time to run in mysql is about 2-3 sec but while in jmeter it only take 0.2 sec ?

kajalkale
Автор

Hi Raghav ...this session is very helpful...is it possible to create test plan also through command line

bhavnagawali
Автор

Hi,
Can you have a session on pacing ... What are the ways we can implement pacing in jmeter
Thanks

swativig
Автор

Raghav, congrats for this class! Very helpfull, i'm learned very much. Thank you!

LuisHenriqueChagasLeite
Автор

Very detailed information about reports.. Thank you for this

umeshthorat
Автор

Hi Raghav, I really appreciate all ur efforts in making these videos. All videos are wonderful for a beginner. Could u pls explain threshold little detail with an example. thanks much :)

sundarv
Автор

Hi Raghav, Very nice video. Helped me a lot and nice explanation. In above test plan you have added Home page, Archives page, About page. But report is generated in different order. I want report in the same order. How to generate report in Non-GUI mode where labels are listed in the same order as they are in my test plan?

nagarajuasamani
Автор

Hi Raghav ... I want to ask you one question on jemeter....In Jmeter How we can decide size of Users? and How we can find break point of application when we gradually increase the number of users? Or which parameters we consider for stress testing?

jyotigorakhe
Автор

Hi, I am not understanding the Active, Started and Finished term in CLI while creating html report. here i am sharing one of the line in jmeter "Active: 169 Started: 1000 Finished: 831". Total thread =1000, ramp up = 1000, constant timer =5000 means 5 seconds.
please help me to understand this how started thread =1000 while active are only 169???

hayaulislam
Автор

Hi Raghav... Thanks for the videos and your guideline responses...Now I am able to perform Performance Testing by using Jmeter...Thank you...

jyotigorakhe