forked from DxvLwRYF/apiAutoTest
12 lines
1.3 KiB
Plaintext
12 lines
1.3 KiB
Plaintext
[32m2021-01-27 14:03:00.199[0m | [31m[1mERROR [0m | [36mtools[0m:[36mextractor[0m:[36m29[0m - [31m[1m提取不到内容,丢给你一个错误!'bool' object is not subscriptable[0m
|
||
[32m2021-01-27 14:03:00.248[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||
最终请求地址:http://www.ysqorz.top:8888/api/private/v1/users
|
||
请求方法:get
|
||
请求头:{'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'zh-CN,zh;q=0.9', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'}
|
||
请求参数:{'pagenum': 1, 'pagesize': '12', 'msg': None}
|
||
上传文件:None
|
||
响应数据:{'data': None, 'meta': {'msg': '无效token', 'status': 400}}[0m
|
||
[32m2021-01-27 14:03:00.250[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_004, 对应value: {'data': None, 'meta': {'msg': '无效token', 'status': 400}}[0m
|
||
[32m2021-01-27 14:03:00.253[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m115[0m - [1m第1个断言,实际结果:{'msg': '无效token', 'status': 400} | 预期结果:{'msg': '获取管理员列表成功', 'status': 200}
|
||
断言结果 False[0m
|