Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save jmeter Summary Report and other graphs (eg. Response Time Graph ) automatically

Each time when I run Jmeter script I have to save the summary report and graphs manually.
I want them to be stored automatically.

I tried to write the Summary results to file as C:\JMeter\Summary${__time(ddMMyy HHmmss)}.csv.

But it comes out in XML format. I want in table format.

When I try to save the response graph as following C:\JMeter\ResponseGraph${__time(ddMMyy HHmmss)}.tif.
The graph is not stored. It comes out as invalid image.

Also, please tell me how to analyse the results which I obtain and how should I interpret them If I load test a website.
My website is like log in as a user, search and add products to the basket, process the order, pay for it and view the order which is processed recently.

like image 267
user1984004PRI Avatar asked Jan 17 '13 09:01

user1984004PRI


1 Answers

  1. Look into these answers for details about getting csv results both via GUI and CMD for jmeter's out-of-box components:

    • How do i get my CSV file?
    • How to save JMeter Aggregate Report results to a CSV file using command prompt?

    To switch between XML/CSV results storage formats for listeners use

    • either "Configure" dialog of the listener (Sample Result save Configuration: check / uncheck "Save as XML")
    • or Results file configuration section in jmeter.properties file:
      jmeter.save.saveservice.output_format=csv
      jmeter.save.saveservice.assertion_results_failure_message=true
      jmeter.save.saveservice.default_delimiter=|
      
  2. You will possibly like this nice set of custom jmeter-plugins - Jmeter Plugins, - especially Graph components and JMeterPluginsCMD Command Line Tool.

  3. Concerning possibility to save generated graphs: I can successfully save created graphs both for Aggregate Graph and Response Time Graph, both in .tif and .png formats (Jmeter v.2.8).
    Can assume that you are possibly using your path to store graph as image (C:\JMeter\ResponseGraph${__time(ddMMyy HHmmss)}.tif in question above) in Filename field of Write results to file / Read from file section of Response Time Graph / Aggregate Graph configuration. But this field is for jmeter's results file (.jtl / .csv) write to / read from, not the path to store graph as image.

    I'm not sure that you can automatically store generated graphs from this 2 listener (e.g. during test-scenario execution in non-gui mode).
    If you need this you can possibly better look into JMeterPluginsCMD Command Line Tool which has option to generate PNG for selected listener (there is example in plugin's usage description).

  4. For log analysis possibilities look into this recent question:

    • How to analyse Jmeter report?
like image 108
Aliaksandr Belik Avatar answered Oct 03 '22 00:10

Aliaksandr Belik