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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 20:09:29  来源:igfitidea点击:

How do I generate a Dashboard Report in jmeter?

javagraphjmeterreport

提问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

    1. Go to C:Report\ReportDand open index.htmland you can check your test result
    1. 转到C:Report\ReportD并打开index.html,您可以查看您的测试结果

Note:Should not create any folder with name ReportDon 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.

要生成它,请参阅JMeter 开发人员之一的本教程视频

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 版本提供报表仪表板模块。请按照以下步骤生成报表仪表板。

  1. Open Jmeter from bin folder.
  2. In JMeter bin folder you will find reportgeneratorand userproperties files.
  3. Simply copy all data of Report generator to user.propertiesfile.
  4. Save the file.
  5. Now enter Save.saveservice properties in User.properties file and save it.
  6. Now restart JMeter from bin folder.
  7. Prepare your test plan.
  8. Run your script.
  9. Generate your test results in CSV file format.
  1. 从 bin 文件夹中打开 Jmeter。
  2. 在JMeter的bin文件夹,你会发现reportgeneratoruser属性文件。
  3. 只需将报告生成器的所有数据复制到user.properties文件中即可。
  4. 保存文件。
  5. 现在在 User.properties 文件中输入 Save.saveservice 属性并保存它。
  6. 现在从 bin 文件夹重新启动 JMeter。
  7. 准备你的测试计划。
  8. 运行你的脚本。
  9. 以 CSV 文件格式生成测试结果。

I have learned in details report generation from here,you can also follow same steps to generate HTML report dashboard.

我从这里学到了详细的报告生成,您也可以按照相同的步骤生成 HTML 报告仪表板。

Report Dashboard Generation

报告仪表板生成

回答by Amanpreet kaur

Just give the path in any listener as shown in image, execute the results and check the file.

只需在任何侦听器中给出路径,如图所示,执行结果并检查文件。

image

图片