无法将"jmeter"识别为内部或外部命令,可操作程序或批处理文件

编程入门 行业动态 更新时间:2024-10-28 22:25:10
本文介绍了无法将"jmeter"识别为内部或外部命令,可操作程序或批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我在命令行模式下运行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"识别为内部或外部命令,可操作程序或批处理文件

本文发布于:2023-10-13 17:02:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1488561.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可操作   批处理文件   命令   程序   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!