简体   繁体   English

如何为 jmeter 中的分布式负载测试生成复合 html 报告?

[英]How to generate composite html report for distributed load testing in jmeter?

Context: I am running JMeter load test on a distributed load system with 1:2 master slave ratio, with the following command:上下文:我在主从比例为 1:2 的分布式负载系统上运行 JMeter 负载测试,使用以下命令:

jmeter -n -t "home/jmeterscripts/EventGridScript.jmx" -R slave1:1099,slave2:1099 -l "home/jmeterscripts/Result.csv" -e -o "home/jmeterscripts/HTMLReports" jmeter -n -t "home/jmeterscripts/EventGridScript.jmx" -R slave1:1099,slave2:1099 -l "home/jmeterscripts/Result.csv" -e -o "home/jmeterscripts/HTMLReports"

Will the result report to the same report.html because I am getting error of Result.csv presence from slave2 while reporting?结果是否会报告给同一个报告。html,因为我在报告时收到来自 slave2 的 Result.csv 存在错误? how to handle it this, didn't find similar post.这个怎么处理,没找到类似的帖子。

You're getting this message because home/jmeterscripts/Result.csv is present already , if you don't need the results file from the previous run add -f command-line argument to your command line:您收到此消息是因为home/jmeterscripts/Result.csv已经存在,如果您不需要上一次运行的结果文件,请在命令行中添加-f命令行参数

jmeter -n -t -"home/jmeterscripts/EventGridScript.jmx" -R slave1:1099,slave2:1099 -f -l "home/jmeterscripts/Result.csv" -e -o "home/jmeterscripts/HTMLReports"

-f , --forceDeleteResultFile force delete existing results files and web report folder if present before starting the test -f , --forceDeleteResultFile强制删除现有结果文件和 web 报告文件夹(如果在开始测试之前存在)

The results are not being stored on slaves, the slaves send test metrics to the master so the master collects the statistics from all the slaves so no matter how many slaves you have you always get a single .jtl results file and a single HTML Reporting Dashboard.结果没有存储在从属设备上,从属设备向主设备发送测试指标,因此主设备从所有从设备收集统计信息,因此无论您有多少从设备,您总是会得到一个.jtl 结果文件和一个 HTML 报告仪表板.

More information: How to Perform Distributed Testing in JMeter更多信息: 如何在 JMeter 中执行分布式测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM