如何自动保存jmeter摘要报告和其他图形(例如Response Time Graph) [英] How to save jmeter Summary Report and other graphs (eg. Response Time Graph ) automatically

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

问题描述

每次运行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:\JMeter\Summary${__time(ddMMyy HHmmss)}.csv.

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

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

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

当我尝试将响应图保存为以下C:\JMeter\ResponseGraph${__time(ddMMyy HHmmss)}.tif时.
该图未存储.它显示为无效图片.

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.

推荐答案

  1. 请查看以下答案,以获取有关通过jmeter的现成组件同时通过GUI和CMD获取csv结果的详细信息:

  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?

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

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

  • 侦听器的配置"对话框之一(示例结果保存配置:选中/取消选中"另存为XML")
  • 或jmeter.properties文件中的结果文件配置部分:
jmeter.save.saveservice.output_format=csv
jmeter.save.saveservice.assertion_results_failure_message=true
jmeter.save.saveservice.default_delimiter=|

您可能会喜欢这套自定义的jmeter-plugins- 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:\JMeter\ResponseGraph${__time(ddMMyy HHmmss)}.tif)在响应时间图/聚合图"配置的"Write results to file / Read from file"部分的"Filename"字段中.但是,该字段用于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:\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.

我不确定您是否可以自动存储从这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摘要报告和其他图形(例如Response Time Graph)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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