尝试获取HTML报告时JMeter中出现Header错误 [英] Getting Header error in JMeter when trying to get HTML report

查看:1027
本文介绍了尝试获取HTML报告时JMeter中出现Header错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从我的JMeter测试计划中获取HTML报告.不幸的是,总是显示以下错误.

I am trying to get the HTML report from my JMeter test plan. Unfortunately, below error is shown always.

File '/Users/roradhak/Cisco/GET/PPS-Proxy-Performance/Graph2_CSV.csv' does not contain the field names header, ensure the jmeter.save.saveservice.* properties are the same as when the CSV file was created or the file may be read incorrectly

实际上,我尝试按照

In fact, I tried to do all the settings changes as explained in Jmeter 3.0 can't generate the ANT HTML report and in other links also. Can someone please put some light into this?

推荐答案

您需要确保 user.properties 文件中至少包含以下行:

You need to make sure you have at least the following line in user.properties file:

jmeter.save.saveservice.print_field_names=true

.jtl结果文件的第一行必须像这样:

The first line of your .jtl results file needs to be like:

timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,Latency,IdleTime,Connect

如果您有不同的输出-请对JMeter的配置进行修改以匹配该配置,如生成报告仪表板文章.

If you have different output - kindly amend JMeter configuration to match the one, described in the Generating Report Dashboard article.

参考文献:

  • Configuring JMeter
  • Apache JMeter Properties Customization Guide

这篇关于尝试获取HTML报告时JMeter中出现Header错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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