使用以下命令在Windows cmd上运行测试 - jmeter中是否需要进行初始化。
jmeter -n -t C:/ Users / meiyer / Desktop / LOAD TOOLS / jmeter samples / 50users10count.jmx
stacktrace -
2016/08/29 15:17:18 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US
2016/08/29 15:17:18 INFO - jmeter.JMeter: Loading user properties from:
C:\Users\meiyer\Documents\apache-jmeter-3.0\apache-jmeter-
3.0\bin\user.properties
2016/08/29 15:17:18 INFO - jmeter.JMeter: Loading system properties from:
C:\Users\meiyer\Documents\apache-jmeter-3.0\apache-jmeter-
3.0\bin\system.properties
2016/08/29 15:17:18 FATAL - jmeter.JMeter: An error occurred:
java.lang.IllegalArgumentException: Unknown arg: TOOLS/jmeter
at org.apache.jmeter.JMeter.initializeProperties(JMeter.java:746)
at org.apache.jmeter.JMeter.start(JMeter.java:385)
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)
答案 0 :(得分:3)
您的问题来自LOAD和TOOLS之间的空间。
在路径周围使用引号:
jmeter -n -t“C:/ Users / meiyer / Desktop / LOAD TOOLS / jmeter samples / 50users10count.jmx”