gpt4 book ai didi

jmeter - 无法在 Jmeter 中创建(预期列数不匹配)仪表板报告...!

转载 作者:行者123 更新时间:2023-12-05 07:39:13 24 4
gpt4 key购买 nike

我在 Jmeter 中生成仪表板报告时遇到问题(通过命令行)1)将报告生成器属性复制到用户属性文件2)重新启动Jmeter以获取数据3)在用户属性文件中添加以下内容:

jmeter.save.saveservice.bytes=true
jmeter.save.saveservice.label=true
jmeter.save.saveservice.latency=true
jmeter.save.saveservice.response_code=true
jmeter.save.saveservice.response_message=true
jmeter.save.saveservice.successful=true
jmeter.save.saveservice.thread_counts=true
jmeter.save.saveservice.thread_name=true
jmeter.save.saveservice.time=true
jmeter.save.saveservice.timestamp_format=ms
jmeter.save.saveservice.timestamp_format=yyyy/MM/dd HH:mm:ss

我觉得主要问题是与我拥有的 CSV 文件/JTL 文件不匹配并试图创建报告。 – 给我你的建议

错误 |发生错误:org.apache.jmeter.report.dashboard.GenerationException:处理样本时出错:预期列数:16 与 CSV 文件中的列:6 不匹配,请检查您的 jmeter.save.saveservice.* 配置 在 org.apache.jmeter.report.dashboard.ReportGe在此处输入代码nerator.generate(ReportGenerator.java:246) 在 org.apache.jmeter.JMeter.start(JMeter.java:517) 在 sun.reflect.NativeMethodAccessorImpl.invoke0( native 方法) 在 sun.reflect.NativeMethodAccessorImpl.invoke(未知来源) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源) 在 java.lang.reflect.Method.invoke(未知来源) 在 org.apache.jmeter.NewDriver.main(NewDriver.java:248)由以下原因引起:org.apache.jmeter.report.core.SampleException:预期列数:16 与 CSV 文件中的列:6 不匹配,请检查您的

jmeter.save.saveservice.* configuration
at org.apache.jmeter.report.core.CsvSampleReader.nextSample(CsvSampleReader.java:183)
at org.apache.jmeter.report.core.CsvSampleReader.readSample(CsvSampleReader.java:201)
at org.apache.jmeter.report.processor.CsvFileSampleSource.produce(CsvFileSampleSource.java:180)
at org.apache.jmeter.report.processor.CsvFileSampleSource.run(CsvFileSampleSource.java:238)
at org.apache.jmeter.report.dashboard.ReportGenerator.generate(ReportGenerator.java:244)
... 6 more
An error occurred: Error while processing samples:Mismatch between expected number of columns:16 and columns in CSV file:6, check your jmeter.save.saveservice.* configuration
errorlevel=1

最佳答案

我犯了同样的错误。忘记那些属性并复制到 user.properties 文件中只有这个:

jmeter.reportgenerator.overall_granularity=60000 jmeter.reportgenerator.apdex_statisfied_threshold=1500 jmeter.reportgenerator.apdex_tolerated_threshold=3000 jmeter.reportgenerator.exporter.html.series_filter=((^s0)|(^s1))(-success|-failure)? jmeter.reportgenerator.exporter.html.filters_only_sample_series=true

然后从命令行运行这个:

.\jmeter -n -t sample_jmeter_test.jmx -l test.csv -e -o tmp

地点:

.\jmeter - you run the jmeter in \bin directory

sample_jmeter_test.jmx - name of the test that will be run, located in \bin directory

test.csv - located again in the \bin directory, this is the file that all gathered statistics will be written into

tmp is the directory where I create under \bin where the dashboard files will be saved

关于jmeter - 无法在 Jmeter 中创建(预期列数不匹配)仪表板报告...!,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47189877/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com