学英语学压测:08 jmeter html测试报告&测试报告的3种生成方式

📢📢📢:先看关键单词,再看英文,最后看中文总结,再回头看一遍英文原文,效果更佳!!

关键词

|--------------|-------|-----------------|
| modular | 模块化的 | /ˈmɒdʒʊlə/ |
| percentile | 百分位数 | /pəˈsɛntaɪl/ |
| latency | 延迟 | /ˈleɪtənsi/ |
| configurable | 可配置的 | /kənˈfɪɡərəbəl/ |
| transaction | 事务,交易 | /trænˈzækʃən/ |

测试报告

The dashboard generator is a modular extension of JMeter. Its default behavior is to read and process samples from CSV files to generate HTML files containing graph views. It can generate the report at end of a load test or on demand.

This report provides the following metrics:

  • APDEX (Application Performance Index) table that computes for every transaction the APDEX based on configurable values for tolerated and satisfied thresholds
  • A request summary graph showing the Success and failed requests (Transaction Controller Sample Results are not taken into account) percentage:

A Statistics table providing in one table a summary of all metrics per transaction including 3 configurable percentiles:

Latencies Over Time (Includes Transaction Controller Sample Results):

Response times percentiles (Includes Transaction Controller Sample Results):

测试报告的三种生成方式

The report generation can be done as a stand alone process from a sample log file or automatically after running load test.

Generation from an existing sample CSV log file

Use the following command:

复制代码
jmeter -g <log file> -o <Path to output folder>

Generation after load test

Use the following command:

复制代码
jmeter -n -t <test JMX file> -l <test log file> -e -o <Path to output folder>

Generation using GUI Tools menu

You can generate the HTML report using menu item Tools → Generate HTML report:

总结

  1. Dashboard Generator:

    • 是JMeter的一个模块化扩展。
    • 默认行为是读取和处理CSV文件中的样本,生成包含图表视图的HTML文件。
    • 可以在负载测试结束后或按需生成报告。
  2. 报告提供的指标:

    • APDEX表:基于可配置的容忍和满意阈值计算每个事务的APDEX。
    • 请求摘要图:显示成功和失败请求的百分比(不包括事务控制器样本结果)。
    • 统计表:提供每个事务的所有指标摘要,包括3个可配置的百分位数。
    • 延迟随时间变化:包含事务控制器样本结果。
    • 响应时间百分位数:包含事务控制器样本结果。
  3. 报告生成方式:

    • 从现有样本CSV日志文件生成
      使用命令:jmeter -g <log file> -o <Path to output folder>
    • 在负载测试后自动生成
      使用命令:jmeter -n -t <test JMX file> -l <test log file> -e -o <Path to output folder>
    • 使用GUI工具菜单生成
      通过菜单项 Tools → Generate HTML report 生成HTML报告。
相关推荐
hgz07104 小时前
Linux服务器环境部署与JMeter压测准备
linux·服务器·jmeter
syt_biancheng4 小时前
博客系统全流程测试总结
python·selenium·测试用例·压力测试·postman
测试-鹏哥6 小时前
全新驾驶舱功能助力ITP测试平台腾飞
python·测试工具·压力测试
测试19989 小时前
一个只能通过压测发现Bug
自动化测试·软件测试·python·selenium·测试工具·bug·压力测试
卓码软件测评10 小时前
第三方软件CMA/CNAS测评机构:【Apifox的自定义加密和签名的安全测试技巧】
测试工具·ci/cd·单元测试·测试用例·压力测试
AndrewHZ12 小时前
【大模型技术学习】大模型压力测试全攻略:以Qwen3-32B为例
人工智能·大模型·llm·压力测试·模型部署·通义千问·qwen3-32b
早川91913 小时前
JMeter的基本使用与性能测试
jmeter
测试人社区-千羽2 天前
48小时攻克测试岗——闪电面试极速备战手册
人工智能·python·opencv·面试·职场和发展·单元测试·压力测试
hgz07102 天前
JMeter性能压测执行与Linux环境部署
java·linux·jmeter
2501_924064112 天前
高并发系统卡顿?全链路压测平台如何精准定位性能瓶颈
功能测试·压力测试