zoukankan      html  css  js  c++  java
  • Jmeter接口自动化-12-正则提取器

    接口返回响应为:

    {
        "code":0,
        "data":{
            "appAllowed":true,
            "approved":false,
            "createTime":1587106069000,
            "employeeNumber":"10025635",
            "enabled":true,
            "errorCode":10006,
            "errorMessage":"非绑定设备,请提交解绑申请",
            "groupId":100322,
            "groupName":"",
            "head_location":"",
            "id":"19d825c9-78bd-4d39-8455-d69950b17b09",
            "mail":"1798449460@qq.com",
            "manager":false,
            "managerName":"",
            "managerOf":[
    
            ],
            "mobile":"13391223341",
            "mobx":"",
            "name":"纪珍风",
            "oldGroupId":0,
            "passWord":"{MD5}ICy5YqxZB1uWSwcVLSNLcA==",
            "positionChange":"",
            "postOfficeBox":0,
            "role":0,
            "secretKey":"F4D2E740CBF74B4D8D977748C99E4857",
            "showManager":false,
            "storeName":"",
            "syncTime":1573094042000,
            "title":"销售专员",
            "userType":"",
            "username":"10025635",
            "uuid":"f4d2e740-cbf7-4b4d-8d97-7748c99e4857",
            "version":0
        },
        "mask":"db3d92e8-37fe-4c43-b46a-2e7ec604a647",
        "msg":"success",
        "timestamp":1590314281
    }

    提取其中的uuid为token

    添加HTTP Request---Add---Post Processor--- Regular Extrassion Extractor(正则提取器)

  • 相关阅读:
    【Rust】匹配绑定
    【Rust】iflet
    【Rust】结构体匹配
    【Rust】闭包
    【Rust】函数
    【Rust】方法
    【Rust】whilelet
    【Rust】匹配保护
    【Rust】闭包捕获变量
    优先队列 安静点
  • 原文地址:https://www.cnblogs.com/chushujin/p/12951988.html
Copyright © 2011-2022 走看看