Apache JMeter provides 2 modes of execution.
But there is a solution for it for a some extent. That is we can see a summary of test statistics on the terminal (command line), once per configured time duration. This feature is enabled by default, and if we want to change its properties, we have to do it in <JMETER_HOME>/bin/jmeter.properties file. Following are the related 4 properties in this file for this non-gui summarize outs. Last 3 properties listed below are commented out by default as the comented out values are the default values.
After making required changes to these properties, run your test in non-gui mode and you will see a output similar to below. Note that the summary output entries are printed line by line once a given interval of time.
Fields in the summary outputs stands for below purposes.
e.g.
summary + 1127 in 00:00:06 = 200.4/s Avg: 133 Min: 58 Max: 2710 Err: 1127 (100.00%) Active: 20 Started: 20 Finished: 0
- GUI Mode
- Non-GUI Mode (Command line mode)
But there is a solution for it for a some extent. That is we can see a summary of test statistics on the terminal (command line), once per configured time duration. This feature is enabled by default, and if we want to change its properties, we have to do it in <JMETER_HOME>/bin/jmeter.properties file. Following are the related 4 properties in this file for this non-gui summarize outs. Last 3 properties listed below are commented out by default as the comented out values are the default values.
summariser.name=summary summariser.interval=30 summariser.out=true summariser.log=trueLet's see what these properties do.
- summariser.interval - the time interval the summary outputs are generated. This is in seconds. We may need to reduce or increase this value according tho the nature of our tests.
- summariser.out - set this to true if you want to display summary outputs on the terminal.
- summarizer.log - set this to true if you want to include this summary outputs on the jmeter log file.
After making required changes to these properties, run your test in non-gui mode and you will see a output similar to below. Note that the summary output entries are printed line by line once a given interval of time.
Fields in the summary outputs stands for below purposes.
e.g.
summary + 1127 in 00:00:06 = 200.4/s Avg: 133 Min: 58 Max: 2710 Err: 1127 (100.00%) Active: 20 Started: 20 Finished: 0
- Field 1 : summary = means that is a cumulative report entry
summary + means that is for the relevant time period only - Field 2 : Number of threads (e.g. 1127 )
- Field 3 : Time period (e.g. 00:00:06 )
- Field 4 : Threads per second (e.g. 200.4/s)
- Field 5 : Average response time (e.g. 133)
- Field 6 : Minimum response time (e.g. 58)
- Field 7 : Maximum response time (e.g. 2710)
- Field 8 : Number or errors (e.g. 1127)
- Field 9 : Error percentage (e.g. 100 Seems my all tests has failed :D )
Here, you shared the most valuable post. I'm really happy to read this. Thank you.
ReplyDeleteJMeter Training in Chennai
JMeter Training Institute in Chennai
Appium Training in Chennai
Best Appium Training institute in Chennai
javascript training in chennai
core java training in chennai
C C++ Training in Chennai
JMeter Training in Chennai
yeah good post for us.
ReplyDeleteCyber Security Training Course in Chennai | Certification | Cyber Security Online Training Course | Ethical Hacking Training Course in Chennai | Certification | Ethical Hacking Online Training Course |
CCNA Training Course in Chennai | Certification | CCNA Online Training Course | RPA Robotic Process Automation Training Course in Chennai | Certification | RPA Training Course Chennai | SEO Training in Chennai | Certification | SEO Online Training Course
Field#2 is not the number of threads, is the number of REQUESTS, same for field #4
ReplyDelete