码迷,mamicode.com
首页 > 其他好文 > 详细

RobotFramework做接口自动化(内部接口需要登录token)

时间:2018-09-14 14:32:52      阅读:1370      评论:0      收藏:0      [点我收藏+]

标签:接口   bubuko   default   otf   .com   bsp   mobile   ***   lis   

将登录后的token添加到headers中,其他和post请求一样

技术分享图片

返回体:

{
    "reCorde": "SUCCESS",
    "data": {
        "address_list": [
            {
                "trueName": "超长的收货人姓名的,个》。,lgl r大幅度订单",
                "areaInfo": "都中电风扇反而而已我去",
                "zip": null,
                "area": "北京,北京市,东城区",
                "default": true,
                "areaId": 110101,
                "mobile": "15215451341",
                "telephone": "15215451341",
                "addr_id": 11
            },
            {
                "trueName": "老王",
                "areaInfo": "长安路",
                "zip": null,
                "area": "陕西省,西安市,雁塔区",
                "areaId": 610113,
                "mobile": "182********", 
                "telephone": null,
                "addr_id": 7
            }
        ]
    },
    "msg": "成功",
    "code": 10000
}

 

RobotFramework做接口自动化(内部接口需要登录token)

标签:接口   bubuko   default   otf   .com   bsp   mobile   ***   lis   

原文地址:https://www.cnblogs.com/gcgc/p/9646222.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!