我正在使用 jmeter 使用命令行运行负载测试,然后尝试生成汇总报告,然后根据生成的报告显示图表。我正在使用以下 powershell 脚本来执行此操作。
#!/bin/bash
cd Z:\TestPlansUsingJmeter\apache-jmeter-2.9\bin
# Run Test
.\jmeter -n -t Z:\TestPlansUsingJmeter\GetAvailability.jmx -l Z:\TestPlansUsingJmeter\Results\results.jtl
# Generate PNG File using plugin
java -jar Z:\TestPlansUsingJmeter\apache-jmeter-2.9\lib\ext\CMDRunner.jar --tool Reporter --generate-png Z:\TestPlansUsingJmeter\graphs\test.png --input-jtl Z:\TestPlansUsingJmeter\Results\results.jtl --plugin-type ResponseTimesOverTime --width 800 --height 600
请指导我做错了什么,因为在执行此操作后不断收到以下错误:-
.\jmeter : Uncaught Exception java.lang.NullPointerException. See log file for details.
At line:6 char:1
+ .\jmeter -n -t Z:\TestPlansUsingJmeter\GetAvailability.jmx -l Z:\T ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Uncaught Except...le for details.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
java : java.lang.Throwable: Could not access Z:\TestPlansUsingJmeter\apache-jmeter-2.9\lib\ext\lib
At line:9 char:1
+ java -jar Z:\TestPlansUsingJmeter\apache-jmeter-2.9\lib\ext\CMDRunner.jar --tool ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (java.lang.Throw...2.9\lib\ext\lib:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
at kg.apc.cmd.UniversalRunner.buildUpdatedClassPath(UniversalRunner.java:109)
at kg.apc.cmd.UniversalRunner.<clinit>(UniversalRunner.java:55)