博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jmeter3.0生成html格式的dashboard性能测试结果
阅读量:6811 次
发布时间:2019-06-26

本文共 3090 字,大约阅读时间需要 10 分钟。

jmeter3.0以上支持生成dashboard的html报告,官网介绍:https://jmeter.apache.org/usermanual/generating-dashboard.html

效果图:

 

具体配置如下:

1. 打开jmeter安装目录下的user.properties,增加如下配置

#---------------------------------------------------------------------------# Reporting configuration#---------------------------------------------------------------------------jmeter.save.saveservice.output_format=csvjmeter.save.saveservice.bytes = truejmeter.save.saveservice.label = truejmeter.save.saveservice.latency = truejmeter.save.saveservice.response_code = truejmeter.save.saveservice.response_message = truejmeter.save.saveservice.successful = truejmeter.save.saveservice.thread_counts = truejmeter.save.saveservice.thread_name = truejmeter.save.saveservice.time = true# the timestamp format must include the time and should include the date.# For example the default, which is milliseconds since the epoch: jmeter.save.saveservice.timestamp_format = ms# Or the following would also be suitablejmeter.save.saveservice.timestamp_format = yyyy/MM/dd HH:mm:ssjmeter.save.saveservice.assertion_results_failure_message = true

2. user.properties再增加如下内容

# Configure this property to change the report title#jmeter.reportgenerator.report_title=Apache JMeter Dashboard# Change this parameter if you want to change the granularity of over time graphs.# Granularity must be higher than 1000 (1second) otherwise Throughput graphs will be incorrect# see Bug 60149#jmeter.reportgenerator.overall_granularity=60000 Change this parameter if you want to change the granularity of Response time distribution# Set to 500 ms by default#jmeter.reportgenerator.graph.responseTimeDistribution.property.set_granularity=500# Change this parameter if you want to override the APDEX satisfaction threshold.jmeter.reportgenerator.apdex_satisfied_threshold=1500# Change this parameter if you want to override the APDEX tolerance threshold.jmeter.reportgenerator.apdex_tolerated_threshold=3000# Sets the destination directory for generated html pages, it is better to change it for every generation# This will override the value set through -o command line option# jmeter.reportgenerator.exporter.html.property.output_dir=/tmp/test-report# Indicates which graph series are filtered (regular expression)# In the below example we filter on Search and Order samples# Note that the end of the pattern should always include (-success|-failure)?$# Transactions per second suffixes Transactions with "-success" or "-failure" depending # on the result#jmeter.reportgenerator.exporter.html.series_filter=^(Search|Order)(-success|-failure)?$# Indicates whether series filter apply only on sample seriesjmeter.reportgenerator.exporter.html.filters_only_sample_series=true

 

3. 压力测试后生成报告的命令格式:

jmeter -n -t 
-l
-e -o

例如:

jmeter -n -t D:\work\性能\scrip\test1.jmx -l D:\work\性能\scrip\rp/testLogFile.jtl -e -o D:\work\性能\scrip\rp/output

4. 对已存在的日志文件生成报告的命令格式:

jmeter -g 
-o

例如:

jmeter -g D:\work\性能\scrip\rp/testLogFile.jtl -o D:\work\性能\scrip\rp/output

5. 到相应目录下查看,打开index.html,就可以看到response time 和tps等性能指标了

 

转载地址:http://dgwzl.baihongyu.com/

你可能感兴趣的文章
路由器成帮凶!第二季度DDoS攻击翻倍
查看>>
Uber数据基础架构现在及未来
查看>>
SDN/NFV:融合与博弈持续共存
查看>>
常见的JavaScript易错知识点整理
查看>>
RagingWire战略重点批发数据中心服务
查看>>
数据中心的规模是否影响虚拟化DCIM的决策?
查看>>
后流量时代,世间再无电信运营商
查看>>
李开复:钉钉是大胆的突破式创新
查看>>
我国特色国情下 智慧城市建设与国外有哪些区别
查看>>
MaxCompute帮助创业公司中减轻MySQL存储压力
查看>>
ASHRAE新标准促进降低数据中心能源消耗
查看>>
程序猿如何从产品的角度去提升应用的体验之Android权限优化篇
查看>>
夏普欲收回美洲品牌授权 海信总裁:严格按照合同办
查看>>
大数据市场迎来扩容期 本土内存数据库抢位崛起
查看>>
2016年亚太地区网络广告支出预计超过北美
查看>>
智慧医疗节约救治时间,降低患者死亡率
查看>>
zephir-(2)安装和初体验
查看>>
IPython4_Notebook
查看>>
IE7/IE8不兼容js trim函数,自己实现
查看>>
Objective-C的泛型
查看>>