本文主要是介绍jmeter执行报错:does not contain the field names header, ensure the jmeter.save.saveservice.* properties,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
执行jmeter命令报错
检查:
1.报错信息
D:\apache-jmeter-5.5\apache-jmeter-5.5\bin>jmeter -n -t \apache-jmeter-5.5\apache-jmeter-5.5\bin\opt\HTTPRequest1.jmx -l \apache-jmeter-5.5\apache-jmeter-5.5\bin\opt\123.csv -e -o \apache-jmeter-5.5\apache-jmeter-5.5\bin\opt\R
Creating summariser <summary>
Created the tree successfully using \apache-jmeter-5.5\apache-jmeter-5.5\bin\opt\HTTPRequest1.jmx
Starting standalone test @ October 24, 2022 4:47:51 PM CST (1666601271824)
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445
summary = 40 in 00:00:03 = 11.5/s Avg: 1030 Min: 283 Max: 1797 Err: 0 (0.00%)
Tidying up ... @ October 24, 2022 4:47:55 PM CST (1666601275894)
File 'D:\apache-jmeter-5.5\apache-jmeter-5.5\bin\opt\123.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 when generating report
... end of run
解决考虑有三个方面:
1.jmeter配置文件有问题
把jmeter.properties配置文件中的jmeter.save.saveservice.output_format改为=csv,保存,重新执行命令
2.生成的 jtl 文件非 csv 格式
与第一个解决方法对应,若配置文件设置csv,但生产的文件不是csv格式,这是也会报错
3.命令中的生成的文件必须是不存在的
当文件已经建好时,执行命令会报错。
上述解决方法都试一下,我现在已经是解决了,如果没有解决,那就再搜一下别人的优解 ^…^
这篇关于jmeter执行报错:does not contain the field names header, ensure the jmeter.save.saveservice.* properties的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!