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

2

11

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.

Adenectomy answered 17/1, 2013 at 9:50 Comment(0)
Z
18
  1. Look into these answers for details about getting csv results both via GUI and CMD for jmeter's out-of-box components:

    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:

Zn answered 17/1, 2013 at 10:46 Comment(1)
Would be nice, if you accept the answer in that case. Thank you.Zn
N
2

Add jp@gc - Graphs Generator plugin in your Apache Jmeter. It will create and save chart in user define directory. You must add View Results Tree before it. enter image description here

Nucleoplasm answered 9/12, 2016 at 13:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.