Getting Header error in JMeter when trying to get HTML report

和自甴很熟 提交于 2019-12-08 13:45:42

问题


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?


回答1:


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

jmeter.save.saveservice.print_field_names=true

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

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

References:

  • Configuring JMeter
  • Apache JMeter Properties Customization Guide


来源:https://stackoverflow.com/questions/42629732/getting-header-error-in-jmeter-when-trying-to-get-html-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!