如何自动保存 jmeter 汇总报告和其他图表(例如响应时间图表) [英] How to save jmeter Summary Report and other graphs (eg. Response Time Graph ) automatically

查看:179
本文介绍了如何自动保存 jmeter 汇总报告和其他图表(例如响应时间图表)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次运行 Jmeter 脚本时,我都必须手动保存汇总报告和图表.
我希望它们自动存储.

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

我尝试将摘要结果写入文件 C:JMeterSummary${__time(ddMMyy HHmmss)}.csv.

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

但它以 XML 格式出现.我想要表格格式.

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

当我尝试将响应图保存为如下 C:JMeterResponseGraph${__time(ddMMyy HHmmss)}.tif.
不存储图形.结果显示为无效图像.

When I try to save the response graph as following C:JMeterResponseGraph${__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.

推荐答案

  1. 有关通过 GUI 和 CMD 获取 jmeter 开箱即用组件的 csv 结果的详细信息,请查看这些答案:

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

要为侦听器在 XML/CSV 结果存储格式之间切换,请使用

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

  • 侦听器的配置"对话框(示例结果保存配置:选中/取消选中另存为 XML")
  • 结果文件配置 部分在 jmeter.properties 文件中:
  • 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=|

您可能会喜欢这套漂亮的自定义 jmeter 插件 - Jmeter 插件,尤其是图形组件和 JMeterPluginsCMD 命令行工具.

You will possibly like this nice set of custom jmeter-plugins - Jmeter Plugins, - especially Graph components and JMeterPluginsCMD Command Line Tool.

关于保存生成的图形的可能性:我可以成功地为 聚合图响应时间图,均采用.tif格式和 .png 格式(Jmeter v.2.8).
可以假设您可能正在使用您的路径将图形存储为图像(C:JMeterResponseGraph${__time(ddMMyy HHmmss)}.tif 以上问题)在 Filename 响应时间图/聚合图配置的 Write results to file/Read from file 部分的字段.但该字段用于 jmeter 的结果文件 (.jtl/.csv) 写入/读取,而不是将图形存储为图像的路径.

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:JMeterResponseGraph${__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.

我不确定您是否可以从这 2 个侦听器中自动存储生成的图形(例如,在非 gui 模式下的测试场景执行期间).
如果您需要这个,您可以更好地查看 JMeterPluginsCMD 命令行工具它可以选择为选定的侦听器生成 PNG(插件的使用说明中有示例).

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).

有关日志分析的可能性,请查看最近的问题:

For log analysis possibilities look into this recent question:

这篇关于如何自动保存 jmeter 汇总报告和其他图表(例如响应时间图表)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆