美文网首页
jmeter.properties-配置元件

jmeter.properties-配置元件

作者: 足__迹 | 来源:发表于2021-05-27 18:14 被阅读0次

jmeter.properties

所在目录: E:\apache-jmeter-5.2.1\bin ,jmeter安装目录下的bin目录
是Jmeter核心配置项文件

官方建议

将需要修改的属性值,复制粘贴到同目录下的 user.properties
好处:当Jmeter升级时,可以避免修改项需要重新应用

常用的配置

官方文档:https://jmeter.apache.org/usermanual/properties_reference.html

  • 默认语言设置
    language=en:默认英文
    language=zh_CN:默认中文
    注意:这个只有在 jmeter.properties 文件中声明才会生效,官方也提醒了

  • 配置默认编码格式
    sampleresult.default.encoding=ISO-8859-1:默认ISO-8859-1
    sampleresult.default.encoding=UTF-8:可以改成常用的UTF-8

  • 输出测试报告模板格式
    jmeter.save.saveservice.output_format=csv

  • 捕捉cookie
    Cookies应该存储为变量
    CookieManager.save.cookies=false:默认
    CookieManager.save.cookies=true:将cookie存储为变量

  • 快捷方式(ctrl+数字0-9)
    gui.quick_0=ThreadGroupGui
    gui.quick_1=HttpTestSampleGui
    gui.quick_2=RegexExtractorGui
    gui.quick_3=AssertionGui
    gui.quick_4=ConstantTimerGui
    gui.quick_5=TestActionGui
    gui.quick_6=JSR223PostProcessor
    gui.quick_7=JSR223PreProcessor
    gui.quick_8=DebugSampler
    gui.quick_9=ViewResultsFullVisualizer

  • 配置远程主机 host
    remote_hosts=127.0.0.1

相关文章

  • jmeter.properties-配置元件

    jmeter.properties 所在目录: E:\apache-jmeter-5.2.1\bin ,jmete...

  • jmeter (六) 配置相关

    1、jmeter.properties-统计频率 2、jmeter.properties-响应编码 3、jmete...

  • jmeter(一)

    jmeter元件详解,配置元件,BeanShell

  • 【第四章】jmeter主要元件使用的讲解

    本章大纲 配置元件 监听器元件 其他常用元件 配置元件 http请求默认值http消息头管理httpCookies...

  • JMeter点道为止系列(2)CSV Data Set Conf

    1 配置解析 在JMeter使用配置元件CSV Data Set Config进行参数化之时,该元件的配置项 Sh...

  • 配置元件

    FTP请求默认值 HTTP 授权管理器 HTTP 请求默认值 Random Variable 计数器

  • 配置元件

    FTP请求默认值 功能描述:当多个FTP程序的场景具有相同的配置时,我们可以把这些相同点提取出来,只需要配置一次,...

  • web性能测试

    1、--添加--配置元件--http请求默认值 2、--添加--配置元件--http cookie管理器 3、新建...

  • 4,JMeter实现配置管理

    配置元件:JMeter使用配置元件用来提供一些配置的相关信息,如Http请求头,cookie管理,提供参数化数据。...

  • 学习笔记-参数化、断言

    1.添加配置元件(CSV Data Set Config) 选中线程组,点击右键,添加-配置元件-CSV Data...

网友评论

      本文标题:jmeter.properties-配置元件

      本文链接:https://www.haomeiwen.com/subject/ededsltx.html