使用apache-jmeter进行压力测试

来源:互联网 发布:php 文件名截断 编辑:程序博客网 时间:2024/06/08 13:23

The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.

创建线程组

  1. 添加线程组:
    这里写图片描述

    • 到 bin目录下运行jmeterw.cmd启动JMeter
    • 在树上选择“测试计划”
    • 右键单击“测试计划”并添加一个新的线程组:添加>线程(用户)>
      线程组
  2. 配置线程参数:
    配置线程数和循环次数

添加http请求

这里写图片描述
1. 配置请求地址和请求参数

添加测试报告

添加需要的测试报告
这里写图片描述

运行

这里写图片描述

  • 点击上面的启动按钮
  • 或者Ctrl+R

查看报告

官网文档链接

1 0
原创粉丝点击