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(正则提取器)

 

posted @ 2020-05-24 18:03  旅行没有终点  阅读(173)  评论(0编辑  收藏  举报