烦请各位大牛不吝赐教了,感激不尽! 方法一,使用JMeter打开.jmx文件,见下图: 方法一结果如下图: 备注:环境变量处已配置Path,其他同事可以打开,初步判断为本机问题,不是文件问题; 方法二,选中.jmx文件,右键选择打开方式,选择为jmeter.bat,见下图: 方法二结果如下图: 报错信息如下: - log_file=jmeter.log java.io.FileNotFoundException: jmeter.log (拒绝访问。)
- [log_file-> System.out]
- 2021/09/07 17:41:31 INFO - jmeter.util.JMeterUtils: Setting Locale to zh_CN
- 2021/09/07 17:41:31 INFO - jmeter.JMeter: Loading user properties from: C:\test\JMeter\apache-jmeter-2.13\bin\user.properties
- 2021/09/07 17:41:31 INFO - jmeter.JMeter: Loading system properties from: C:\test\JMeter\apache-jmeter-2.13\bin\system.properties
- 2021/09/07 17:41:31 FATAL - jmeter.JMeter: An error occurred: java.lang.IllegalArgumentException: Unknown arg: C:\test\JMeter\Payment-ph.jmx
- at org.apache.jmeter.JMeter.initializeProperties(JMeter.java:607)
- at org.apache.jmeter.JMeter.start(JMeter.java:299)
- 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:264)
- An error occurred: Unknown arg: C:\test\JMeter\Payment-ph.jmx
- errorlevel=1
复制代码JMeter安装路径如下(无中文字符无空格): 环境变量配置如下(已配置已重启): 备注:网上常见方法都搜了一遍,都没能解决问题,烦请各位大牛不吝赐教了,感激不尽!
|