我正在尝试为现有结果(即csv / jtl文件)生成JMeter Dashboard图。
以下是csv文件内容(temp1.csv):
timeStamp elapsed label responseCode responseMessage threadName dataType success failureMessage bytes grpThreads allThreads Latency
1475842232895 1158 HTTP Request 200 OK Thread Group 1-1 text true 22175 1 1 911
1475842234094 529 HTTP Request 200 OK Thread Group 2-1 text true 682 1 1 529
以下是我跑的命令:
jmeter -g J:\temp_ws\temp1.csv -o J:\temp_ws\temp1
和分隔符设置为,
user.properties
jmeter.save.saveservice.default_delimiter=,
它给出了以下错误(来自JMeter.log文件)
FATAL - jmeter.JMeter: An error occurred: org.apache.jmeter.report.dashboard.GenerationException: Error while processing samples:Consumer failed with message :No column <timeStamp> found in sample metadata <timeStamp elapsed label responseCode responseMessage threadName dataType success failureMessage bytes grpThreads allThreads Latency>, check #jmeter.save.saveservice.* properties to add the missing column
at org.apache.jmeter.report.dashboard.ReportGenerator.generate(ReportGenerator.java:245)
at org.apache.jmeter.JMeter.start(JMeter.java:478)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.jmeter.NewDriver.main(NewDriver.java:259)
然后尝试将分隔符更改为\t
中的user.properties
并再次运行该命令以生成报告,我收到以下错误:
2016/10/07 17:59:32 FATAL - jmeter.JMeter: An error occurred:
java.lang.ExceptionInInitializerError
at org.apache.jmeter.JMeter.start(JMeter.java:477)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.jmeter.NewDriver.main(NewDriver.java:259)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(Unknown Source)
at org.apache.jmeter.report.dashboard.ReportGenerator.<clinit>(ReportGenerator.java:79)
... 6 more
请帮我了解如何为制表符分隔的Jmeter结果生成Dashboard报告(csv / jtl)
注意:对于逗号分隔符,将生成仪表板报告。
答案 0 :(得分:2)
你正面临着3.0的错误:
它固定在夜间版本中,将很快在3.1中提供。
同时你可以使用Nightly Builds: