Java 如何在 jmeter 中生成仪表板报告?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38263768/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I generate a Dashboard Report in jmeter?
提问by Vairamuthu
I am running jmeter2.12 on Fedora.
我在 Fedora 上运行 jmeter2.12。
What are the steps to generate a Dashboard Report?
生成仪表盘报告的步骤是什么?
采纳答案by Pavan T
steps:
脚步:
- 1.Add 'Summary Report', 'Simple Data Writer' from Listeners.
- 2.Set location to generated csv
- 3.open reportgenerator.properties from "D:\apache-jmeter-3.0\bin\" copy all content from it
- 4.Open user.properties from same bin folder
- 5.Append all from reportgenerator.properties to user.properties and save
- 6.Now run the your Test script
- 7.open cmd and enter
- 1.从监听器中添加“摘要报告”、“简单数据编写器”。
- 2.设置生成csv的位置
- 3.open reportgenerator.properties from "D:\apache-jmeter-3.0\bin\" 复制里面的所有内容
- 4.从同一个bin文件夹中打开user.properties
- 5.Append all from reportgenerator.properties 到 user.properties 并保存
- 6.现在运行你的测试脚本
- 7.打开cmd并输入
jmeter -g D:\Report\TC001_Result.csv -o C:Report\ReportD
jmeter -g D:\Report\TC001_Result.csv -o C:Report\ReportD
- Go to
C:Report\ReportD
and openindex.html
and you can check your test result
- Go to
- 转到
C:Report\ReportD
并打开index.html
,您可以查看您的测试结果
- 转到
Note:Should not create any folder with name ReportD
on same as Jmeter will create and save you report
注意:不应创建任何名称ReportD
与 Jmeter 将创建并保存您的报告相同的文件夹
回答by UBIK LOAD PACK
JMeter dashboard is only available since JMeter 3.0.
JMeter 仪表板仅从 JMeter 3.0 开始可用。
To generate it, see this tutorialand videoby one of JMeter developers.
And reference documentation :
和参考文档:
As of JMeter 3.1, It's as easy as calling:
从 JMeter 3.1 开始,它就像调用一样简单:
jmeter -n -t <path_to.jmx> -l <log.jtl> -e -o <dashboard_folder>
jmeter -n -t <path_to.jmx> -l <log.jtl> -e -o <dashboard_folder>
If you're looking to learn jmeter correctly, this bookwill help you.
如果你想正确地学习 jmeter,这本书会对你有所帮助。
回答by Rajesh Qa
Report Dashboard module is available in Apache Jmeter3.0 version.Please follow below steps to Generate report dashboard.
Apache Jmeter3.0 版本提供报表仪表板模块。请按照以下步骤生成报表仪表板。
- Open Jmeter from bin folder.
- In JMeter bin folder you will find
reportgenerator
anduser
properties files. - Simply copy all data of Report generator to
user.properties
file. - Save the file.
- Now enter Save.saveservice properties in User.properties file and save it.
- Now restart JMeter from bin folder.
- Prepare your test plan.
- Run your script.
- Generate your test results in CSV file format.
- 从 bin 文件夹中打开 Jmeter。
- 在JMeter的bin文件夹,你会发现
reportgenerator
和user
属性文件。 - 只需将报告生成器的所有数据复制到
user.properties
文件中即可。 - 保存文件。
- 现在在 User.properties 文件中输入 Save.saveservice 属性并保存它。
- 现在从 bin 文件夹重新启动 JMeter。
- 准备你的测试计划。
- 运行你的脚本。
- 以 CSV 文件格式生成测试结果。
I have learned in details report generation from here,you can also follow same steps to generate HTML report dashboard.
我从这里学到了详细的报告生成,您也可以按照相同的步骤生成 HTML 报告仪表板。
回答by Amanpreet kaur
Just give the path in any listener as shown in image, execute the results and check the file.
只需在任何侦听器中给出路径,如图所示,执行结果并检查文件。