当我在命令行模式下运行JMeter脚本时,出现以下错误.
When i run my JMeter script on commandline mode, i am getting below error.
但是同一脚本在GUI模式下运行得很好.
But the same script is running perfectly fine on GUI mode.
需要一些帮助来解决此问题.
Need some help here to fix this.
以下是错误:
C:\ Users \ Sundarapandiyan> jmeter -n -t D:\ JMETER \ apache-jmeter-3.1 \ bin \我的项目MyFirstUIRecordBadBoy.jmx -l \ JMETER \ apache-jmeter-3.1 \ bin \我的项目CSVSample_user. CSV 无法将"jmeter"识别为内部或外部命令, 可操作的程序或批处理文件.
C:\Users\Sundarapandiyan>jmeter -n -t D:\JMETER\apache-jmeter-3.1\bin\My Projects MyFirstUIRecordBadBoy.jmx -l \JMETER\apache-jmeter-3.1\bin\My Projects CSVSample_user.csv 'jmeter' is not recognized as an internal or external command, operable program or batch file.
推荐答案
如Dave L所述,使用我的电脑">属性">高级系统设置">环境变量">系统变量"下,选择"Jmeter安装bin目录"到系统路径.路径>最后将D:\ JMETER \ apache-jmeter-3.1 \ bin添加到您的路径.
As Dave L mentioned, add the Jmeter installation bin directory to the system path using My Computer > properties > Advanced System settings > Environment variables > Under system variables, select PATH > Add D:\JMETER\apache-jmeter-3.1\bin to your path at the end.
请注意,即使您运行jmeter,Windows也只考虑jmeter.bat文件.它不会运行安装路径下可用的普通jmeter文件.
Please note, windows only considers the jmeter.bat file even when you run jmeter. It won't run the plain jmeter file available under the installation path.
更多推荐
无法将"jmeter"识别为内部或外部命令,可操作程序或批处理文件
发布评论