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

后端 未结 2 786
醉梦人生
醉梦人生 2021-02-08 08:19

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 result

相关标签:
2条回答
  • 2021-02-08 08:37

    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

    0 讨论(0)
  • 2021-02-08 08:52
    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?
    0 讨论(0)
提交回复
热议问题