我对jmeter中的jp @ gc插件未显示结果csv和图像的错误有疑问。您能帮我解决问题吗?
jp @ gc图形生成器的其他配置:
错误是:
java.lang.IllegalArgumentException: Cannot find specified JTL file: C:\Users\ryard\Downloads\apache-jmeter-5.2.1\bin\hasil\out\result.csv
at kg.apc.jmeter.PluginsCMDWorker.checkParams(PluginsCMDWorker.java:90) ~[jmeter-plugins-cmd-2.2.jar:?]
at kg.apc.jmeter.PluginsCMDWorker.doJob(PluginsCMDWorker.java:104) ~[jmeter-plugins-cmd-2.2.jar:?]
at kg.apc.jmeter.listener.GraphsGeneratorListener.testEnded(GraphsGeneratorListener.java:222) ~[jmeter-plugins-graphs-ggl-2.0.jar:?]
at kg.apc.jmeter.listener.GraphsGeneratorListener.testEnded(GraphsGeneratorListener.java:137) ~[jmeter-plugins-graphs-ggl-2.0.jar:?]
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:218) [ApacheJMeter_core.jar:5.2.1]
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:492) [ApacheJMeter_core.jar:5.2.1]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
2020-02-10 15:02:17,808 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)
答案 0 :(得分:0)
错误与C:\Users\ryard\Downloads\apache-jmeter-5.2.1\bin\hasil\out\result.csv
文件丢失有关,这就是所谓的JTL Result File,从中生成图表。
确保像这样run JMeter test in command-line non-GUI mode:
jmeter -n -t /path/to/your/testplan.jmx -l C:\Users\ryard\Downloads\apache-jmeter-5.2.1\bin\hasil\out\result.csv
^^^^^^^^this is needed for generating result file
,并且图形生成器监听器应按预期开始工作。
还要注意,从JMeter 3.0开始,HTML Reporting Dashboard具有交互式可缩放图表,您可能需要考虑将其用于报告。