zoukankan      html  css  js  c++  java
  • Jmeter之HTTP request

    1.下载Jmeter

    http://jmeter.apache.org/download_jmeter.cgi

    2.解压,在bin目录下找到jmeter.bat,并双击打开。

    3.添加线程组

    4.添加HTTP信息头管理器,并配置Content-type和Content-encoding头部字段

     5.使用Mocky这个网页工具来模拟返回HTTP Response,首先打开这个网址http://www.mocky.io/,然后配置响应的Body,最后点击Generate my HTTP Response这个按钮来生成HTTP Request地址。

    Body:

     1 {
     2     "people": [
     3         {
     4             "firstName": "Brett",
     5             "lastName": "McLaughlin",
     6             "email": "aaaa"
     7         },
     8         {
     9             "firstName": "Jason",
    10             "lastName": "Hunter",
    11             "email": "bbbb"
    12         },
    13         {
    14             "firstName": "Elliotte",
    15             "lastName": "Harold",
    16             "email": "cccc"
    17         }
    18     ]
    19 }

    6. 添加HTTP请求默认值,并将上一步中获取到的请求地址填入路径输入框中。

    7.添加HTTP请求和查看结果树,并填写下图红框内的信息

    8.点击开始按钮,执行结果可以在查看结果树种查看,如下图,显示了在Mocky中预置的HTTP Response。

  • 相关阅读:
    uboot的mtd功能支持
    ARM920T系统总线时序分析
    NorFlash
    编译u-boot命令和u-boot常用命令
    uboot启动linux的过程
    debug(fmt,args...)调试
    APCS
    You've got to find what you love
    debian , ubuntu 截取下拉菜单
    关于bash的shellshock漏洞
  • 原文地址:https://www.cnblogs.com/moonpool/p/5465980.html
Copyright © 2011-2022 走看看