Privanka
Privanka

Reputation: 11

JMeter Test Results Monitoring/ Analysis

I want to start load testing by running JMeter from command line for more accurate test results, but how can I monitor the run and then analyze the results after the test finishes.

Upvotes: 0

Views: 1203

Answers (3)

Dmitri T
Dmitri T

Reputation: 168217

If you run JMeter in command-line non-GUI mode passing results file name via -l parameter it will output results there. After test finishes you will be able to open the file with the Listener of your choice and perform the analysis.

By default JMeter writes results in chunks, if you need to monitor them in real time add the following line to user.properties file (lives under /bin folder of your JMeter installation)

jmeter.save.saveservice.autoflush=true

You can use other properties which names start with jmeter.save.saveservice.* to control what metrics you need to store. The list with default values can be seen in jmeter.properties file. See Apache JMeter Properties Customization Guide for more information on various JMeter properties types and ways of working with them.

You can also consider running your JMeter test via Taurus tool - it provides some statistics as the test goes either in console mode or via web interface.

Upvotes: 0

TestingWithArif
TestingWithArif

Reputation: 894

You can generate JTL (JMeter results) file while executing the JMX (JMeter script) file from command line. A sample command for generating JTL file will look like this..

jmeter -n -t path-to-jmeterScript.jmx -l path-to-jtlFile.jtl

After completion of script execution you can open the JMeter GUI and simply open the JTL file in any listener (as per your requirement).

Upvotes: 1

Gábor Lipták
Gábor Lipták

Reputation: 9796

Most of the listeners in JMeter have an option to save the results into a file. This file contains usually not the report itself, but the samples which are generated by the tests. If you define this filename, you can generate the reports using these saved files. For example see http://jmeter.apache.org/usermanual/component_reference.html#Summary_Report .

Upvotes: 0

Related Questions