Jmeter命令行可以“保存表数据"在汇总报告中 [英] Jmeter command line to "save table data" in a aggregate report

查看:136
本文介绍了Jmeter命令行可以“保存表数据"在汇总报告中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用命令行保存由聚合报告生成的表数据,以便可以自动执行该过程.但是,我从2004年左右使用2.2/2.3 jmeter的旧文章中读到,这无法完成.但是由于现在是2014年,并且我们正在使用jmeter 2.11,所以我想知道是否可以保存表数据.

I would like to save table data generated by an aggregate report using command line, so that I can automate the process. However, I read from an older post around 2004 using 2.2/2.3 jmeter that this cannot be done. But since it is 2014 now and we are using jmeter 2.11, I was wondering if we could save the table data.

用红色框框住的按钮是我要执行的操作,但是使用命令行而不是使用GUI.

The button boxed in red is what I am trying to do but with command line rather than with the GUI.

谢谢

推荐答案

为实现此目的,您将必须编写批处理脚本(windows)和shell脚本(Linux).
请按照以下提到的步骤进行操作:

In order to achieve this you will have to write a batch script (windows) and shell script (Linux).
Please follow the below mentioned steps:

  • 通过命令行运行Jmeter并指定输出* .jtl文件的路径
  • 在Jmeter \ lib \ ext目录中调用CMDRunner.jar将* .jtl文件转换为聚合"报告并另存为CSV文件.
  1. jmeter -n -t"C:\ Test.jmx" -l"C:\ output.jtl" ^& ^&退出
  2. java -jar CMDRunner.jar --tool Reporter --generate-csv"C:\ Aggregate_Report.csv" --input-jtl"C:\ output.jtl"-插件类型AggregateReport

  • 运行* .bat或* .sh文件
  • 希望这会有所帮助.

    这篇关于Jmeter命令行可以“保存表数据"在汇总报告中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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