转载自 http://www.cnblogs.com/yangxia-test

必须要了解的一些信息

既然是要通过non-gui模式运行,那么我们就不得不去了解下在non-gui模式下jmeter命令的参数,下面是Jmeter官方文档中列出来的一些参数,中文注释部分为我加入的解释

 -h, --help
print usage information and exit
         #打印帮助信息 
-v, --version
print the version information and exit
          #打印版本信息
-p, --propfile {argument}
the jmeter property file to use
          #运行时指定property文件,默认是使用JMETER_HOME/bin目录下的jmeter.properties,如果用户自定义有其它的配置,在这里加上
          #用法如下: -p user.properties
-q, --addprop {argument}
additional property file(s)
          #其它配置文件,如JVM参数等等
-t, --testfile {argument}
the jmeter test(.jmx) file to run
         #要运行的jmeter脚本
-j, --jmeterlogfile {argument}
the jmeter log file
         #指定记录jmeter log的文件,默认为jmeter.log
-l, --logfile {argument}
the file to log samples to
         #记录采样器Log的文件
-n, --nongui
run JMeter in nongui mode
         #以nongui模式运行jmeter
-s, --server
run the JMeter server
         #运行JMeter server
-H, --proxyHost {argument}
Set a proxy server for JMeter to use
         #代理服务器地址
-P, --proxyPort {argument}
Set proxy server port for JMeter to use
         #代理服务器端口
-u, --username {argument}
Set username for proxy server that JMeter is to use
         #代理服务器的用户名
-a, --password {argument}
Set password for proxy server that JMeter is to use
         #代理服务器用户名对应的密码
-J, --jmeterproperty {argument}={value}
Define additional JMeter properties
         #定义额外的Jmeter属性
-G, --globalproperty (argument)[=(value)]
Define Global properties (sent to servers)
e.g. -Gport=123
or -Gglobal.properties
         #定义发送给server的全局属性
         #如:-Gport=123 或者-Gglobal.properties(指定监听server的端口)
-D, --systemproperty {argument}={value}
Define additional System properties
         #定义系统属性
-S, --systemPropertyFile {filename}
a property file to be added as System properties
         #通过指定的property文件定义系统属性
-L, --loglevel {argument}={value}
Define loglevel: [category=]level
e.g. jorphan=INFO or jmeter.util=DEBUG
         #定义日志等级
-r, --runremote (non-GUI only)
Start remote servers (as defined by the jmeter property remote_hosts)
         #启动远程server(在jmeter property中定义好的remote_hosts),公在non-gui模式下此参数才生效
-R, --remotestart server1,... (non-GUI only)
Start these remote servers (overrides remote_hosts)
         #启动远程server(如果使用此参数,将会忽略jmeter property中定义的remote_hosts)
-d, --homedir {argument}
the jmeter home directory to use
#Jmeter运行的主目录
-X, --remoteexit
Exit the remote servers at end of test (non-GUI)
         #测试结束时,退出(在non-gui模式下)

举例:进入测试脚本所在的目录,执行以下命令

jmeter -t "asso.jmx" -n -l testresult.csv 

生成成功后,直接打开会产生乱码,如图:

解决方法:如果有中文的话 先用 文本编译器打开, 另存一下 utf-8 (ansi)的格式  这样显示 就不乱码了

JMeter学习(三十一)non-gui模式运行(转载)的更多相关文章

  1. JMeter学习(十一)WebSerivice测试计划(转载)

    转载自 http://www.cnblogs.com/yangxia-test WebSerivice测试计划的取样器有两种方式:HTTP请求.SOAP/XML-RPC Request. 1. 测试计 ...

  2. 『动善时』JMeter基础 — 55、JMeter非GUI模式运行

    目录 1.JMeter的非GUI模式说明 2.为什么使用非GUI模式运行JMeter 3.怎样使用非GUI模式运行JMeter (1)非GUI模式运行JMeter步骤 (2)其它参数说明 4.CLI模 ...

  3. 『动善时』JMeter基础 — 55、使用非GUI模式运行JMeter(命令行模式)

    目录 1.JMeter的非GUI模式说明 2.为什么使用非GUI模式运行JMeter 3.使用非GUI模式运行JMeter (1)非GUI模式运行JMeter步骤 (2)其它参数说明 4.CLI模式运 ...

  4. 使用非 GUI 模式运行 JMeter 压力测试

    使用非 GUI 模式,即命令行模式运行 JMeter 测试脚本能够大大缩减所需要的系统资源.使用命令jmeter -n -t <testplan filename> -l <list ...

  5. Jmeter(一)非GUI模式压测(NON-GUI模式)结果解析TPS

    非GUI模式压测(NON-GUI模式)结果解析TPS 准备工作 从脚本已录制成功之后开始进行压测 安装Jmeter拓展插件 查看 Transactions per Second https://jme ...

  6. 非GUI模式运行Jmeter脚本

    一.应用场景 日常测试过程中发现,在大数量并发时,jmeterGUI界面经常宕机.卡死,在这种情况下我们就需要使用命令行来执行脚本了(非GUI模式). 二.命令行模式优点 1.节约系统资源,无需启动界 ...

  7. Jmeter非GUI模式运行

    非GUI模式,即命令行模式,运行 JMeter 测试脚本能够大大缩减所需要的系统资源. 使用的命令: jmeter  -n  -t  脚本文件路径   -l   结果输出文件路径   -j   日志文 ...

  8. 非 GUI 模式运行 JMeter 压力测试

    非 GUI 模式,即命令行模式,运行 JMeter 测试脚本能够大大缩减所需要的系统资源. 使用命令:jmeter -n -t <testplan filename> -l <lis ...

  9. 非GUI 模式运行 jmeter 压力测试

    非 GUI 模式,即命令行模式,运行 JMeter 测试脚本能够大大缩减所需要的系统资源. 使用命令:jmeter -n -t <testplan filename> -l <lis ...

随机推荐

  1. tomcat jvm 内存调优 适用于 JDK 6 & 7

    参考:https://blog.csdn.net/m0_37327416/article/details/76185051 1.jvm内存管理机制: 1)堆(Heap)和非堆(Non-heap)内存 ...

  2. 【ASP.NET 进阶】Flv视频文件在线播放示例

    最近要做个播放Flv文件的东东,网上找到一个合适的,效果如下(GIF录制软件不太好,差不多就是这样子,不过在浏览器上很流畅,具体代码可以看源代码): 源代码:FlvVideoSee.zip 问题说明: ...

  3. url查询参数解析

    url查询参数解析 1.获取url的各部分值 举例http://i.cnblogs.com/EditPosts.aspx?opt=1 1.window.location.href(设置或获取整个 UR ...

  4. Yum安装MySQL以及相关目录路径和修改目录

    有些时候,为了方便,有些同学喜欢通过yum的方式安装MySQL,没有设置统一的文件目录以及软件目录,那么就会为后续的维护工作带来很大的麻烦! 下面就简单介绍一下yum安装MySQL的步骤以及这类安装下 ...

  5. svn2

    ubuntu下安装subversion客户端: sudo apt-get install subversion subversion-tools 详细请看 http://www.subversion. ...

  6. maven使用fingbugs插件

    <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plu ...

  7. jinjia

    https://www.cnblogs.com/dachenzi/p/8242713.html

  8. python oracle 查询返回字典

    from: https://sourceforge.net/p/cx-oracle/mailman/message/27145597/ I'd do it with a "row facto ...

  9. delphi 新版内存表 FDMemTable

    c++builder XE 官方demo最全60多个 http://community.embarcadero.com/blogs?view=entry&id=8761 FireDAC.Com ...

  10. Delphi中TApplication详解(转仅供自己参考)

    转自:http://blog.sina.com.cn/s/blog_4d6f55d90100bmv9.html TApplication是用于Delphi应用程序的类型,该类在单元forms中声明.T ...