forked from DxvLwRYF/apiAutoTest
eval``语法糖注释内容,实例报告文件内容
This commit is contained in:
parent
b6ddb1df9e
commit
3c79a619a5
|
@ -0,0 +1 @@
|
|||
"http://www.ysqorz.top:8888/api/private/v1/users/512/state/None"
|
|
@ -1,9 +1,10 @@
|
|||
[32m2020-11-22 22:31:00.714[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||||
请求地址:http://www.ysqorz.top:8888/api/private/v1/users/594
|
||||
[32m2021-01-27 14:03:00.681[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||||
最终请求地址:http://www.ysqorz.top:8888/api/private/v1/users/512
|
||||
请求方法:delete
|
||||
请求头:{'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', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y'}
|
||||
请求头:{'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', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78'}
|
||||
请求参数:None
|
||||
上传文件:None
|
||||
响应数据:{'data': None, 'meta': {'msg': '删除成功', 'status': 200}}[0m
|
||||
[32m2020-11-22 22:31:00.717[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_008, 对应value: {'data': None, 'meta': {'msg': '删除成功', 'status': 200}}[0m
|
||||
[32m2020-11-22 22:31:00.718[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m93[0m - [1m第1个断言,实际结果:{'msg': '删除成功', 'status': 200} | 预期结果:{'msg': '删除成功', 'status': 200}
|
||||
[32m2021-01-27 14:03:00.684[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_008, 对应value: {'data': None, 'meta': {'msg': '删除成功', 'status': 200}}[0m
|
||||
[32m2021-01-27 14:03:00.686[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m115[0m - [1m第1个断言,实际结果:{'msg': '删除成功', 'status': 200} | 预期结果:{'msg': '删除成功', 'status': 200}
|
||||
断言结果 True[0m
|
|
@ -0,0 +1 @@
|
|||
""
|
|
@ -0,0 +1 @@
|
|||
""
|
|
@ -2,5 +2,5 @@
|
|||
"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",
|
||||
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y"
|
||||
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78"
|
||||
}
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"data": {
|
||||
"id": 594,
|
||||
"username": "testery",
|
||||
"id": 512,
|
||||
"username": "tery",
|
||||
"role_id": -1,
|
||||
"create_time": 1606055460
|
||||
"create_time": 1611727380
|
||||
},
|
||||
"meta": {
|
||||
"msg": "创建成功",
|
|
@ -1 +0,0 @@
|
|||
"http://www.ysqorz.top:8888/api/private/v1/users/594"
|
|
@ -1 +0,0 @@
|
|||
0.043536
|
|
@ -0,0 +1 @@
|
|||
""
|
|
@ -0,0 +1 @@
|
|||
0.055775
|
|
@ -0,0 +1 @@
|
|||
""
|
|
@ -0,0 +1 @@
|
|||
"实际结果:None = 预期结果:成功"
|
|
@ -2,5 +2,5 @@
|
|||
"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",
|
||||
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y"
|
||||
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78"
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
{"name": "post请求实现登录", "status": "passed", "steps": [{"name": "请求地址", "status": "passed", "attachments": [{"name": "请求地址", "source": "192dbba8-97ae-442f-9c6d-89f515d1874a-attachment.txt", "type": "text/plain"}], "start": 1606055459866, "stop": 1606055459866}, {"name": "请求头", "status": "passed", "attachments": [{"name": "请求头", "source": "ac2887d6-a2d4-492b-a67f-100e95304766-attachment.txt", "type": "text/plain"}], "start": 1606055459866, "stop": 1606055459867}, {"name": "请求参数", "status": "passed", "attachments": [{"name": "请求参数", "source": "793d54b6-a1e7-445d-affc-16bc3f9749a4-attachment.txt", "type": "text/plain"}], "start": 1606055459867, "stop": 1606055459868}, {"name": "上传文件", "status": "passed", "attachments": [{"name": "上传文件", "source": "a4fbcd9b-aa5b-4320-9dc4-3a5e34706a48-attachment.txt", "type": "text/plain"}], "start": 1606055459868, "stop": 1606055459869}, {"name": "响应耗时(s)", "status": "passed", "attachments": [{"name": "响应耗时(s)", "source": "56537832-4c05-40f4-b463-ccef48ed15c4-attachment.txt", "type": "text/plain"}], "start": 1606055460024, "stop": 1606055460025}, {"name": "响应内容", "status": "passed", "attachments": [{"name": "响应内容", "source": "7726eb6d-55e6-4815-bc09-8bd73a3d6189-attachment.txt", "type": "text/plain"}], "start": 1606055460025, "stop": 1606055460026}, {"name": "请求头中添加Token", "status": "passed", "attachments": [{"name": "请求头中添加Token", "source": "915dc959-b3e7-4afd-8897-50f79d033ef0-attachment.txt", "type": "text/plain"}], "start": 1606055460026, "stop": 1606055460027}, {"name": "存储实际响应", "status": "passed", "attachments": [{"name": "存储实际响应", "source": "02fb297e-afc9-4798-902f-1d9772e05ff2-attachment.txt", "type": "text/plain"}], "start": 1606055460028, "stop": 1606055460029}, {"name": "第1个断言", "status": "passed", "attachments": [{"name": "第1个断言", "source": "635c507b-c077-46ad-a0d8-1d6994b93c56-attachment.txt", "type": "text/plain"}], "start": 1606055460030, "stop": 1606055460031}], "attachments": [{"name": "stderr", "source": "5139701e-46c8-432e-8920-ec68ee1dde14-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case", "value": "['case_002', 'post请求实现登录', 'login', '写', 'post', 'data', '', '{\"username\": \"admin\", \"password\": \"123456\"}', '{\"$.meta\":{ \"msg\": \"登录成功\", \"status\": 200 }}']"}], "start": 1606055459865, "stop": 1606055460031, "uuid": "5f63acfb-e2a1-41c2-bba4-b40a9025e05c", "historyId": "e37eee6749637e7e7e0c6b281657f72a", "testCaseId": "08d97ba530f9b18be2971da4c2ed1083", "fullName": "test.test_api.TestApi#test_main", "labels": [{"name": "parentSuite", "value": "test"}, {"name": "suite", "value": "test_api"}, {"name": "subSuite", "value": "TestApi"}, {"name": "host", "value": "DESKTOP-0T59F1A"}, {"name": "thread", "value": "7848-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test.test_api"}]}
|
|
@ -0,0 +1 @@
|
|||
"http://www.ysqorz.top:8888/api/private/v1/users/512/state/2"
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"username": "tery",
|
||||
"password": "3"
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
0.043878
|
|
@ -1,9 +0,0 @@
|
|||
[32m2020-11-22 22:30:59.854[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||||
请求地址:http://www.ysqorz.top:8888/api/private/v1/login
|
||||
请求方法: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'}
|
||||
请求参数:{'username': 'admin', 'password': ''}
|
||||
响应数据:{'data': None, 'meta': {'msg': '参数错误', 'status': 400}}[0m
|
||||
[32m2020-11-22 22:30:59.857[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_001, 对应value: {'data': None, 'meta': {'msg': '参数错误', 'status': 400}}[0m
|
||||
[32m2020-11-22 22:30:59.858[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m93[0m - [1m第1个断言,实际结果:{'msg': '参数错误', 'status': 400} | 预期结果:{'msg': '参数错误', 'status': 400}
|
||||
断言结果 True[0m
|
|
@ -1,10 +0,0 @@
|
|||
[32m2020-11-22 22:31:00.041[0m | [31m[1mERROR [0m | [36mtools[0m:[36mextractor[0m:[36m29[0m - [31m[1m提取不到内容,丢给你一个错误!'bool' object is not subscriptable[0m
|
||||
[32m2020-11-22 22:31:00.215[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', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y'}
|
||||
请求参数:{'pagenum': 1, 'pagesize': '12', 'meta': None, 'userId': 500}
|
||||
响应数据:{'data': {'total': 5, 'pagenum': 1, 'users': [{'id': 500, 'role_name': '超级管理员', 'username': 'admin', 'create_time': 1486720211, 'mobile': '12345678', 'email': 'adsfad@qq.com', 'mg_state': True}, {'id': 502, 'role_name': '测试角色2', 'username': 'linken', 'create_time': 1486720211, 'mobile': '1213213123', 'email': 'asdf@qq.com', 'mg_state': False}, {'id': 508, 'role_name': '主管', 'username': 'asdf1', 'create_time': 1511853015, 'mobile': '123123', 'email': 'adfsa@qq.com', 'mg_state': True}, {'id': 509, 'role_name': 'test', 'username': 'asdf123', 'create_time': 1511853353, 'mobile': '1111', 'email': 'asdf@qq.com', 'mg_state': True}, {'id': 510, 'role_name': '超级管理员', 'username': '123', 'create_time': 1606037001, 'mobile': '15515515555', 'email': '1213@qq.com', 'mg_state': True}]}, 'meta': {'msg': '获取管理员列表成功', 'status': 200}}[0m
|
||||
[32m2020-11-22 22:31:00.220[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_003, 对应value: {'data': {'total': 5, 'pagenum': 1, 'users': [{'id': 500, 'role_name': '超级管理员', 'username': 'admin', 'create_time': 1486720211, 'mobile': '12345678', 'email': 'adsfad@qq.com', 'mg_state': True}, {'id': 502, 'role_name': '测试角色2', 'username': 'linken', 'create_time': 1486720211, 'mobile': '1213213123', 'email': 'asdf@qq.com', 'mg_state': False}, {'id': 508, 'role_name': '主管', 'username': 'asdf1', 'create_time': 1511853015, 'mobile': '123123', 'email': 'adfsa@qq.com', 'mg_state': True}, {'id': 509, 'role_name': 'test', 'username': 'asdf123', 'create_time': 1511853353, 'mobile': '1111', 'email': 'asdf@qq.com', 'mg_state': True}, {'id': 510, 'role_name': '超级管理员', 'username': '123', 'create_time': 1606037001, 'mobile': '15515515555', 'email': '1213@qq.com', 'mg_state': True}]}, 'meta': {'msg': '获取管理员列表成功', 'status': 200}}[0m
|
||||
[32m2020-11-22 22:31:00.222[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m93[0m - [1m第1个断言,实际结果:{'msg': '获取管理员列表成功', 'status': 200} | 预期结果:{'msg': '获取管理员列表成功', 'status': 200}
|
||||
断言结果 True[0m
|
|
@ -1 +0,0 @@
|
|||
"http://www.ysqorz.top:8888/api/private/v1/users/594/state/2"
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"data": null,
|
||||
"meta": {
|
||||
"msg": "用户名已存在",
|
||||
"status": 400
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
{"name": "get请求实现登录", "status": "passed", "steps": [{"name": "请求地址", "status": "passed", "attachments": [{"name": "请求地址", "source": "bbed028e-149f-4eba-bbb3-981b7138f169-attachment.txt", "type": "text/plain"}], "start": 1606055459770, "stop": 1606055459771}, {"name": "请求头", "status": "passed", "attachments": [{"name": "请求头", "source": "99c33a1e-5dd7-4fe6-8fe1-b541e5ef55af-attachment.txt", "type": "text/plain"}], "start": 1606055459771, "stop": 1606055459772}, {"name": "请求参数", "status": "passed", "attachments": [{"name": "请求参数", "source": "544a7b0d-223f-4287-8359-3b2932d36943-attachment.txt", "type": "text/plain"}], "start": 1606055459772, "stop": 1606055459773}, {"name": "上传文件", "status": "passed", "attachments": [{"name": "上传文件", "source": "7bf61dd6-fe62-4c00-adec-6188d5ca73a3-attachment.txt", "type": "text/plain"}], "start": 1606055459773, "stop": 1606055459774}, {"name": "响应耗时(s)", "status": "passed", "attachments": [{"name": "响应耗时(s)", "source": "4ce9d002-81eb-47a3-83c0-27bfeed00c47-attachment.txt", "type": "text/plain"}], "start": 1606055459855, "stop": 1606055459856}, {"name": "响应内容", "status": "passed", "attachments": [{"name": "响应内容", "source": "cf4121c3-47c7-4246-9e60-0b3685515cf2-attachment.txt", "type": "text/plain"}], "start": 1606055459856, "stop": 1606055459856}, {"name": "存储实际响应", "status": "passed", "attachments": [{"name": "存储实际响应", "source": "6fcaef28-e28f-4469-b135-deb68c4e3fcb-attachment.txt", "type": "text/plain"}], "start": 1606055459857, "stop": 1606055459858}, {"name": "第1个断言", "status": "passed", "attachments": [{"name": "第1个断言", "source": "b14aa254-4fe9-47fb-a0f4-cbb00978c8ef-attachment.txt", "type": "text/plain"}], "start": 1606055459859, "stop": 1606055459859}], "attachments": [{"name": "stderr", "source": "2547a625-6158-4251-a902-f83f66fc27cb-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case", "value": "['case_001', 'get请求实现登录', 'login', '', 'get', 'params', '', '{\"username\": \"admin\", \"password\": \"\"}', '{\"$.meta\":{ \"msg\": \"参数错误\", \"status\": 400 }}']"}], "start": 1606055459770, "stop": 1606055459860, "uuid": "8dce890d-afd8-410f-9f15-b9fe2b17d845", "historyId": "613f214da5e2528e663bdd8f906068d7", "testCaseId": "08d97ba530f9b18be2971da4c2ed1083", "fullName": "test.test_api.TestApi#test_main", "labels": [{"name": "parentSuite", "value": "test"}, {"name": "suite", "value": "test_api"}, {"name": "subSuite", "value": "TestApi"}, {"name": "host", "value": "DESKTOP-0T59F1A"}, {"name": "thread", "value": "7848-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test.test_api"}]}
|
|
@ -0,0 +1 @@
|
|||
""
|
|
@ -0,0 +1 @@
|
|||
0.161379
|
|
@ -1,10 +0,0 @@
|
|||
[32m2020-11-22 22:31:00.550[0m | [31m[1mERROR [0m | [36mtools[0m:[36mextractor[0m:[36m29[0m - [31m[1m提取不到内容,丢给你一个错误!'bool' object is not subscriptable[0m
|
||||
[32m2020-11-22 22:31:00.599[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||||
请求地址:http://www.ysqorz.top:8888/api/private/v1/users/594/state/None
|
||||
请求方法:put
|
||||
请求头:{'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', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y'}
|
||||
请求参数:None
|
||||
响应数据:{'data': {'id': 594, 'rid': -1, 'username': 'testery', 'mobile': None, 'email': None, 'mg_state': 0}, 'meta': {'msg': '设置状态成功', 'status': 200}}[0m
|
||||
[32m2020-11-22 22:31:00.601[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_006, 对应value: {'data': {'id': 594, 'rid': -1, 'username': 'testery', 'mobile': None, 'email': None, 'mg_state': 0}, 'meta': {'msg': '设置状态成功', 'status': 200}}[0m
|
||||
[32m2020-11-22 22:31:00.603[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m93[0m - [1m第1个断言,实际结果:{'msg': '设置状态成功', 'status': 200} | 预期结果:{'msg': '设置状态成功', 'status': 200}
|
||||
断言结果 True[0m
|
|
@ -0,0 +1,11 @@
|
|||
[32m2021-01-27 14:03:00.474[0m | [31m[1mERROR [0m | [36mtools[0m:[36mextractor[0m:[36m29[0m - [31m[1m提取不到内容,丢给你一个错误!'bool' object is not subscriptable[0m
|
||||
[32m2021-01-27 14:03:00.535[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||||
最终请求地址:http://www.ysqorz.top:8888/api/private/v1/users/512/state/None
|
||||
请求方法:put
|
||||
请求头:{'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', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78'}
|
||||
请求参数:None
|
||||
上传文件:None
|
||||
响应数据:{'data': {'id': 512, 'rid': -1, 'username': 'tery', 'mobile': None, 'email': None, 'mg_state': 0}, 'meta': {'msg': '设置状态成功', 'status': 200}}[0m
|
||||
[32m2021-01-27 14:03:00.537[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_006, 对应value: {'data': {'id': 512, 'rid': -1, 'username': 'tery', 'mobile': None, 'email': None, 'mg_state': 0}, 'meta': {'msg': '设置状态成功', 'status': 200}}[0m
|
||||
[32m2021-01-27 14:03:00.538[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m115[0m - [1m第1个断言,实际结果:{'msg': '设置状态成功', 'status': 200} | 预期结果:{'msg': '设置状态成功', 'status': 200}
|
||||
断言结果 True[0m
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
{"name": "get请求查询用户数据列表", "status": "passed", "steps": [{"name": "请求地址", "status": "passed", "attachments": [{"name": "请求地址", "source": "61f246fa-68ab-433e-b8c0-a6f1caf8d22c-attachment.txt", "type": "text/plain"}], "start": 1611727380024, "stop": 1611727380025}, {"name": "请求头", "status": "passed", "attachments": [{"name": "请求头", "source": "67ec8e09-d421-4c9f-b342-d3ff92b2a021-attachment.txt", "type": "text/plain"}], "start": 1611727380025, "stop": 1611727380026}, {"name": "请求参数", "status": "passed", "attachments": [{"name": "请求参数", "source": "9ddf6b28-7f03-4586-b48d-1fff5842a9c5-attachment.txt", "type": "text/plain"}], "start": 1611727380026, "stop": 1611727380027}, {"name": "上传文件", "status": "passed", "attachments": [{"name": "上传文件", "source": "2f28ed64-56df-4d7d-95ef-68162bffc336-attachment.txt", "type": "text/plain"}], "start": 1611727380027, "stop": 1611727380028}, {"name": "响应耗时(s)", "status": "passed", "attachments": [{"name": "响应耗时(s)", "source": "7bef40da-74f1-42ce-9f74-9893bdf44d2b-attachment.txt", "type": "text/plain"}], "start": 1611727380190, "stop": 1611727380191}, {"name": "响应内容", "status": "passed", "attachments": [{"name": "响应内容", "source": "824ea814-5fe1-4f22-b11a-98e7eb8ef0d0-attachment.txt", "type": "text/plain"}], "start": 1611727380191, "stop": 1611727380192}, {"name": "存储实际响应", "status": "passed", "attachments": [{"name": "存储实际响应", "source": "caf510b6-95ec-4c03-8b35-946313c8c228-attachment.txt", "type": "text/plain"}], "start": 1611727380192, "stop": 1611727380193}, {"name": "第1个断言", "status": "passed", "attachments": [{"name": "第1个断言", "source": "718da793-4a52-4a12-a4d9-cafaa0169663-attachment.txt", "type": "text/plain"}], "start": 1611727380193, "stop": 1611727380194}], "attachments": [{"name": "stderr", "source": "f5688208-be64-49fc-b34c-1b9f1dac2f0f-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "cases", "value": "['case_003', 'get请求查询用户数据列表', 'users', '读', 'get', 'params', '', '{\"pagenum\": 1, \"pagesize\": \"12\", \"meta\": &$.case_002.data.meta&, \"userId\": &$.case_002.data.id&}', '', '{\"$.meta\":{\"msg\": \"获取管理员列表成功\", \"status\": 200}}']"}], "start": 1611727380024, "stop": 1611727380194, "uuid": "9e225df8-f7b7-400e-82a6-7f6e9ead9ac0", "historyId": "3a098e261ee7b9115a8be890393002aa", "testCaseId": "881516e7ef2e2aa5436f6a3c3e6a5bcb", "fullName": "test.test_api#test_main", "labels": [{"name": "parentSuite", "value": "test"}, {"name": "suite", "value": "test_api"}, {"name": "host", "value": "LAPTOP-FR8LEA9G"}, {"name": "thread", "value": "5708-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test.test_api"}]}
|
|
@ -1 +0,0 @@
|
|||
"http://www.ysqorz.top:8888/api/private/v1/users/594/state/None"
|
|
@ -1 +0,0 @@
|
|||
0.163048
|
|
@ -0,0 +1 @@
|
|||
0.169524
|
|
@ -0,0 +1,160 @@
|
|||
{
|
||||
"case_001": {
|
||||
"data": null,
|
||||
"meta": {
|
||||
"msg": "参数错误",
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
"case_002": {
|
||||
"data": {
|
||||
"id": 500,
|
||||
"rid": 0,
|
||||
"username": "admin",
|
||||
"mobile": "12345678",
|
||||
"email": "adsfad@qq.com",
|
||||
"token": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78"
|
||||
},
|
||||
"meta": {
|
||||
"msg": "登录成功",
|
||||
"status": 200
|
||||
}
|
||||
},
|
||||
"case_003": {
|
||||
"data": {
|
||||
"total": 5,
|
||||
"pagenum": 1,
|
||||
"users": [
|
||||
{
|
||||
"id": 500,
|
||||
"role_name": "超级管理员",
|
||||
"username": "admin",
|
||||
"create_time": 1486720211,
|
||||
"mobile": "12345678",
|
||||
"email": "adsfad@qq.com",
|
||||
"mg_state": true
|
||||
},
|
||||
{
|
||||
"id": 502,
|
||||
"role_name": "测试角色2",
|
||||
"username": "linken",
|
||||
"create_time": 1486720211,
|
||||
"mobile": "1213213123",
|
||||
"email": "asdf@qq.com",
|
||||
"mg_state": false
|
||||
},
|
||||
{
|
||||
"id": 508,
|
||||
"role_name": "超级管理员",
|
||||
"username": "asdf1",
|
||||
"create_time": 1511853015,
|
||||
"mobile": "123123",
|
||||
"email": "adfsa@qq.com",
|
||||
"mg_state": true
|
||||
},
|
||||
{
|
||||
"id": 509,
|
||||
"role_name": "test",
|
||||
"username": "asdf123",
|
||||
"create_time": 1511853353,
|
||||
"mobile": "1111",
|
||||
"email": "asdf@qq.com",
|
||||
"mg_state": false
|
||||
},
|
||||
{
|
||||
"id": 510,
|
||||
"role_name": "超级管理员",
|
||||
"username": "tige1200",
|
||||
"create_time": 1611720418,
|
||||
"mobile": "test",
|
||||
"email": "test@test.com",
|
||||
"mg_state": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"meta": {
|
||||
"msg": "获取管理员列表成功",
|
||||
"status": 200
|
||||
}
|
||||
},
|
||||
"case_004": {
|
||||
"data": null,
|
||||
"meta": {
|
||||
"msg": "无效token",
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
"case_005": {
|
||||
"data": {
|
||||
"id": 512,
|
||||
"username": "tery",
|
||||
"role_id": -1,
|
||||
"create_time": 1611727380
|
||||
},
|
||||
"meta": {
|
||||
"msg": "创建成功",
|
||||
"status": 201
|
||||
}
|
||||
},
|
||||
"case_006": {
|
||||
"data": {
|
||||
"id": 512,
|
||||
"rid": -1,
|
||||
"username": "tery",
|
||||
"mobile": null,
|
||||
"email": null,
|
||||
"mg_state": 0
|
||||
},
|
||||
"meta": {
|
||||
"msg": "设置状态成功",
|
||||
"status": 200
|
||||
}
|
||||
},
|
||||
"case_007": {
|
||||
"data": {
|
||||
"id": 512,
|
||||
"rid": -1,
|
||||
"username": "tery",
|
||||
"mobile": null,
|
||||
"email": null,
|
||||
"mg_state": 0
|
||||
},
|
||||
"meta": {
|
||||
"msg": "设置状态成功",
|
||||
"status": 200
|
||||
}
|
||||
},
|
||||
"case_008": {
|
||||
"data": null,
|
||||
"meta": {
|
||||
"msg": "删除成功",
|
||||
"status": 200
|
||||
}
|
||||
},
|
||||
"case_013": {
|
||||
"data": null,
|
||||
"meta": {
|
||||
"msg": "无效token",
|
||||
"status": 400
|
||||
}
|
||||
},
|
||||
"case_017": {
|
||||
"data": {
|
||||
"id": 513,
|
||||
"username": "tery",
|
||||
"role_id": -1,
|
||||
"create_time": 1611727380
|
||||
},
|
||||
"meta": {
|
||||
"msg": "创建成功",
|
||||
"status": 201
|
||||
}
|
||||
},
|
||||
"case_018": {
|
||||
"data": null,
|
||||
"meta": {
|
||||
"msg": "用户名已存在",
|
||||
"status": 400
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
{"uuid": "4f39d7f7-ef1d-459d-9591-774991cb0712", "befores": [{"name": "case", "status": "passed", "start": 1606055460371, "stop": 1606055460371}], "start": 1606055460371, "stop": 1606055460546}
|
|
@ -5,7 +5,7 @@
|
|||
"username": "admin",
|
||||
"mobile": "12345678",
|
||||
"email": "adsfad@qq.com",
|
||||
"token": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y"
|
||||
"token": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78"
|
||||
},
|
||||
"meta": {
|
||||
"msg": "登录成功",
|
|
@ -0,0 +1,11 @@
|
|||
[32m2021-01-27 14:03:00.928[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||||
最终请求地址:http://www.ysqorz.top:8888/api/private/v1/users/
|
||||
请求方法:post
|
||||
请求头:{'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', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78'}
|
||||
请求参数:{'username': 'tery', 'password': '3'}
|
||||
上传文件:None
|
||||
响应数据:{'data': {'id': 513, 'username': 'tery', 'role_id': -1, 'create_time': 1611727380}, 'meta': {'msg': '创建成功', 'status': 201}}[0m
|
||||
[32m2021-01-27 14:03:00.930[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_017, 对应value: {'data': {'id': 513, 'username': 'tery', 'role_id': -1, 'create_time': 1611727380}, 'meta': {'msg': '创建成功', 'status': 201}}[0m
|
||||
[32m2021-01-27 14:03:00.932[0m | [31m[1mERROR [0m | [36mtools[0m:[36mextractor[0m:[36m29[0m - [31m[1m提取不到内容,丢给你一个错误!'bool' object is not subscriptable[0m
|
||||
[32m2021-01-27 14:03:00.932[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m115[0m - [1m第1个断言,实际结果:None | 预期结果:成功
|
||||
断言结果 False[0m
|
|
@ -1 +0,0 @@
|
|||
{"uuid": "2b65cb71-706c-4139-93d7-758d53376cc1", "befores": [{"name": "case", "status": "passed", "start": 1606055460235, "stop": 1606055460235}], "start": 1606055460235, "stop": 1606055460367}
|
|
@ -1 +0,0 @@
|
|||
0.076859
|
|
@ -1,9 +1,10 @@
|
|||
[32m2020-11-22 22:31:00.022[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||||
请求地址:http://www.ysqorz.top:8888/api/private/v1/login
|
||||
[32m2021-01-27 14:03:00.011[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||||
最终请求地址:http://www.ysqorz.top:8888/api/private/v1/login
|
||||
请求方法:post
|
||||
请求头:{'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'}
|
||||
请求参数:{'username': 'admin', 'password': '123456'}
|
||||
响应数据:{'data': {'id': 500, 'rid': 0, 'username': 'admin', 'mobile': '12345678', 'email': 'adsfad@qq.com', 'token': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y'}, 'meta': {'msg': '登录成功', 'status': 200}}[0m
|
||||
[32m2020-11-22 22:31:00.027[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_002, 对应value: {'data': {'id': 500, 'rid': 0, 'username': 'admin', 'mobile': '12345678', 'email': 'adsfad@qq.com', 'token': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y'}, 'meta': {'msg': '登录成功', 'status': 200}}[0m
|
||||
[32m2020-11-22 22:31:00.029[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m93[0m - [1m第1个断言,实际结果:{'msg': '登录成功', 'status': 200} | 预期结果:{'msg': '登录成功', 'status': 200}
|
||||
上传文件:None
|
||||
响应数据:{'data': {'id': 500, 'rid': 0, 'username': 'admin', 'mobile': '12345678', 'email': 'adsfad@qq.com', 'token': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78'}, 'meta': {'msg': '登录成功', 'status': 200}}[0m
|
||||
[32m2021-01-27 14:03:00.014[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_002, 对应value: {'data': {'id': 500, 'rid': 0, 'username': 'admin', 'mobile': '12345678', 'email': 'adsfad@qq.com', 'token': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78'}, 'meta': {'msg': '登录成功', 'status': 200}}[0m
|
||||
[32m2021-01-27 14:03:00.015[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m115[0m - [1m第1个断言,实际结果:{'msg': '登录成功', 'status': 200} | 预期结果:{'msg': '登录成功', 'status': 200}
|
||||
断言结果 True[0m
|
|
@ -0,0 +1,10 @@
|
|||
[32m2021-01-27 14:03:00.453[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||||
最终请求地址:http://www.ysqorz.top:8888/api/private/v1/users
|
||||
请求方法:post
|
||||
请求头:{'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', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78'}
|
||||
请求参数:{'username': 'tery', 'password': '123456'}
|
||||
上传文件:None
|
||||
响应数据:{'data': {'id': 512, 'username': 'tery', 'role_id': -1, 'create_time': 1611727380}, 'meta': {'msg': '创建成功', 'status': 201}}[0m
|
||||
[32m2021-01-27 14:03:00.463[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_005, 对应value: {'data': {'id': 512, 'username': 'tery', 'role_id': -1, 'create_time': 1611727380}, 'meta': {'msg': '创建成功', 'status': 201}}[0m
|
||||
[32m2021-01-27 14:03:00.466[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m115[0m - [1m第1个断言,实际结果:{'msg': '创建成功', 'status': 201} | 预期结果:{'msg': '创建成功', 'status': 201}
|
||||
断言结果 True[0m
|
|
@ -0,0 +1 @@
|
|||
{"name": "post请求实现登录", "status": "passed", "steps": [{"name": "请求地址", "status": "passed", "attachments": [{"name": "请求地址", "source": "c2b142e6-3ad8-4b28-8f8b-ccf28ebc14df-attachment.txt", "type": "text/plain"}], "start": 1611727379836, "stop": 1611727379837}, {"name": "请求头", "status": "passed", "attachments": [{"name": "请求头", "source": "4953a956-efbc-4926-88d0-c8144f5b93a3-attachment.txt", "type": "text/plain"}], "start": 1611727379837, "stop": 1611727379837}, {"name": "请求参数", "status": "passed", "attachments": [{"name": "请求参数", "source": "49a938df-edd9-4519-b950-ebfe48ec5f17-attachment.txt", "type": "text/plain"}], "start": 1611727379838, "stop": 1611727379839}, {"name": "上传文件", "status": "passed", "attachments": [{"name": "上传文件", "source": "648b006f-9b50-4d87-9d0d-b8650a8d9375-attachment.txt", "type": "text/plain"}], "start": 1611727379840, "stop": 1611727379840}, {"name": "响应耗时(s)", "status": "passed", "attachments": [{"name": "响应耗时(s)", "source": "355a3455-b557-410e-b06b-e0ef9db1fc5a-attachment.txt", "type": "text/plain"}], "start": 1611727380011, "stop": 1611727380012}, {"name": "响应内容", "status": "passed", "attachments": [{"name": "响应内容", "source": "4188a294-fe4d-4996-8a5f-980bdb314948-attachment.txt", "type": "text/plain"}], "start": 1611727380012, "stop": 1611727380013}, {"name": "请求头中添加Token", "status": "passed", "attachments": [{"name": "请求头中添加Token", "source": "909a7435-29db-4dd2-8fb3-7f3a12a91d3d-attachment.txt", "type": "text/plain"}], "start": 1611727380013, "stop": 1611727380014}, {"name": "存储实际响应", "status": "passed", "attachments": [{"name": "存储实际响应", "source": "ec6f1440-2c6e-4d3f-b14e-6fbb8beb46be-attachment.txt", "type": "text/plain"}], "start": 1611727380014, "stop": 1611727380015}, {"name": "第1个断言", "status": "passed", "attachments": [{"name": "第1个断言", "source": "d36b4e1d-d769-4191-b941-ae3dbefb6749-attachment.txt", "type": "text/plain"}], "start": 1611727380016, "stop": 1611727380017}], "attachments": [{"name": "stderr", "source": "4d74e00e-e44e-4f73-bd49-dbd60028b7c4-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "cases", "value": "['case_002', 'post请求实现登录', 'login', '写', 'post', 'data', '', '{\"username\": \"admin\", \"password\": \"123456\"}', 'select * from user where id=&$.case_002.data.id&;', '{\"$.meta\":{ \"msg\": \"登录成功\", \"status\": 200 }}']"}], "start": 1611727379836, "stop": 1611727380017, "uuid": "b52e0d99-8ac8-4ba6-b633-db609ab166fc", "historyId": "d5345d39adc3d02ffcaf8f15af49ab18", "testCaseId": "881516e7ef2e2aa5436f6a3c3e6a5bcb", "fullName": "test.test_api#test_main", "labels": [{"name": "parentSuite", "value": "test"}, {"name": "suite", "value": "test_api"}, {"name": "host", "value": "LAPTOP-FR8LEA9G"}, {"name": "thread", "value": "5708-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test.test_api"}]}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"username": "testery",
|
||||
"password": "123456"
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
0.151902
|
|
@ -0,0 +1 @@
|
|||
{"uuid": "c3f19720-d55d-453d-8599-ca5e2ea956cc", "children": ["658abd93-cf8b-4a85-a53c-214d1064c052"], "befores": [{"name": "cases", "status": "passed", "start": 1611727380546, "stop": 1611727380546}], "start": 1611727380546, "stop": 1611727380611}
|
|
@ -0,0 +1 @@
|
|||
0.088275
|
|
@ -0,0 +1 @@
|
|||
{"uuid": "b15774ff-1bd9-48b4-8a45-da5f94d6f887", "children": ["b3c14f39-ed6d-4d40-b073-dc6e87ae1719"], "befores": [{"name": "cases", "status": "passed", "start": 1611727380695, "stop": 1611727380695}], "start": 1611727380695, "stop": 1611727380760}
|
|
@ -0,0 +1 @@
|
|||
"实际结果:None = 预期结果:成功"
|
|
@ -1 +0,0 @@
|
|||
0.169135
|
|
@ -0,0 +1 @@
|
|||
"http://www.ysqorz.top:8888/api/private/v1/users/"
|
|
@ -0,0 +1 @@
|
|||
0.034883
|
|
@ -0,0 +1 @@
|
|||
{"uuid": "d1dcb6d8-d5f2-4a64-a716-84f5240980b4", "children": ["ea045a75-83ae-4b42-9f99-2a42d2c16f6f"], "befores": [{"name": "cases", "status": "passed", "start": 1611727380944, "stop": 1611727380944}], "start": 1611727380944, "stop": 1611727380994}
|
|
@ -1 +0,0 @@
|
|||
{"uuid": "48b80104-884b-4f29-a0e2-97f987792810", "befores": [{"name": "case", "status": "passed", "start": 1606055460550, "stop": 1606055460550}], "start": 1606055460550, "stop": 1606055460606}
|
|
@ -1 +0,0 @@
|
|||
{"uuid": "7db03497-4167-4a71-a01a-43379fb6696c", "befores": [{"name": "case", "status": "passed", "start": 1606055459865, "stop": 1606055459865}], "start": 1606055459865, "stop": 1606055460032}
|
|
@ -0,0 +1 @@
|
|||
""
|
|
@ -0,0 +1 @@
|
|||
{"name": "添加用户正常接口数据", "status": "passed", "steps": [{"name": "请求地址", "status": "passed", "attachments": [{"name": "请求地址", "source": "53da27f7-7bf5-46ca-942b-350d3b8a323b-attachment.txt", "type": "text/plain"}], "start": 1611727380270, "stop": 1611727380271}, {"name": "请求头", "status": "passed", "attachments": [{"name": "请求头", "source": "e0fac53f-88b1-4fee-8415-321a29d6b6d5-attachment.txt", "type": "text/plain"}], "start": 1611727380271, "stop": 1611727380271}, {"name": "请求参数", "status": "passed", "attachments": [{"name": "请求参数", "source": "996e30ce-136f-4942-8143-a2831cc525bf-attachment.txt", "type": "text/plain"}], "start": 1611727380271, "stop": 1611727380272}, {"name": "上传文件", "status": "passed", "attachments": [{"name": "上传文件", "source": "7a585d54-63ea-483e-a2d6-523b76db2cc0-attachment.txt", "type": "text/plain"}], "start": 1611727380272, "stop": 1611727380272}, {"name": "响应耗时(s)", "status": "passed", "attachments": [{"name": "响应耗时(s)", "source": "7440b006-64b7-429e-bf4d-b42c68d74528-attachment.txt", "type": "text/plain"}], "start": 1611727380454, "stop": 1611727380455}, {"name": "响应内容", "status": "passed", "attachments": [{"name": "响应内容", "source": "0fa4ad8f-4640-4b2d-9b20-4e6e65e020c3-attachment.txt", "type": "text/plain"}], "start": 1611727380455, "stop": 1611727380464}, {"name": "存储实际响应", "status": "passed", "attachments": [{"name": "存储实际响应", "source": "a399151b-8a31-437d-9b88-285af0202503-attachment.txt", "type": "text/plain"}], "start": 1611727380465, "stop": 1611727380466}, {"name": "第1个断言", "status": "passed", "attachments": [{"name": "第1个断言", "source": "814d2ce4-fc29-4375-afad-a1aaf1d29a9f-attachment.txt", "type": "text/plain"}], "start": 1611727380467, "stop": 1611727380468}], "attachments": [{"name": "stderr", "source": "51780656-83d5-43e0-9e3d-4c4abc62d292-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "cases", "value": "['case_005', '添加用户正常接口数据', 'users', '读', 'post', 'data', '', '{\"username\": \"tery\",\"password\": \"123456\"}', '', '{\"$.meta\":{\"msg\":\"创建成功\",\"status\":201}}']"}], "start": 1611727380270, "stop": 1611727380469, "uuid": "c0b9c8dc-cf34-451e-aa2b-0b417c9c0263", "historyId": "0739167ffd7bddb403117cdf6fcb588f", "testCaseId": "881516e7ef2e2aa5436f6a3c3e6a5bcb", "fullName": "test.test_api#test_main", "labels": [{"name": "parentSuite", "value": "test"}, {"name": "suite", "value": "test_api"}, {"name": "host", "value": "LAPTOP-FR8LEA9G"}, {"name": "thread", "value": "5708-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test.test_api"}]}
|
|
@ -0,0 +1 @@
|
|||
{"name": "删除用户zy7y", "status": "passed", "steps": [{"name": "请求地址", "status": "passed", "attachments": [{"name": "请求地址", "source": "a38fad88-1b29-4830-8805-297a7fbb9978-attachment.txt", "type": "text/plain"}], "start": 1611727380615, "stop": 1611727380616}, {"name": "请求头", "status": "passed", "attachments": [{"name": "请求头", "source": "94876773-6f98-4d99-9465-502d026089f1-attachment.txt", "type": "text/plain"}], "start": 1611727380616, "stop": 1611727380616}, {"name": "请求参数", "status": "passed", "attachments": [{"name": "请求参数", "source": "1bafaebe-66d4-4742-b6fc-51a0e58e4ba4-attachment.txt", "type": "text/plain"}], "start": 1611727380616, "stop": 1611727380616}, {"name": "上传文件", "status": "passed", "attachments": [{"name": "上传文件", "source": "0aeb5197-c0c9-47c6-9007-c974d664c322-attachment.txt", "type": "text/plain"}], "start": 1611727380616, "stop": 1611727380617}, {"name": "响应耗时(s)", "status": "passed", "attachments": [{"name": "响应耗时(s)", "source": "867cd6ba-b0d9-494c-a836-c619f8cde6f5-attachment.txt", "type": "text/plain"}], "start": 1611727380682, "stop": 1611727380683}, {"name": "响应内容", "status": "passed", "attachments": [{"name": "响应内容", "source": "db1eb398-a272-4b31-9d68-94a9a1bcd23e-attachment.txt", "type": "text/plain"}], "start": 1611727380683, "stop": 1611727380684}, {"name": "存储实际响应", "status": "passed", "attachments": [{"name": "存储实际响应", "source": "c79ae384-2db0-4058-b52c-0f1ab5ea5cea-attachment.txt", "type": "text/plain"}], "start": 1611727380685, "stop": 1611727380686}, {"name": "第1个断言", "status": "passed", "attachments": [{"name": "第1个断言", "source": "48432082-0698-4b60-ac8c-2a0d6d554fb6-attachment.txt", "type": "text/plain"}], "start": 1611727380687, "stop": 1611727380688}], "attachments": [{"name": "stderr", "source": "0a6bd0e3-0122-4b7b-b79f-acab342ebba2-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "cases", "value": "['case_008', '删除用户zy7y', 'users/&$.case_005.data.id&', '读', 'delete', 'params', '', '', '', '{\"$.meta\":{\"msg\": \"删除成功\", \"status\": 200}}']"}], "start": 1611727380615, "stop": 1611727380689, "uuid": "7db2d73d-6696-4596-93da-58f15d28bb2f", "historyId": "e48abca8fb0895e685397860fb6393f1", "testCaseId": "881516e7ef2e2aa5436f6a3c3e6a5bcb", "fullName": "test.test_api#test_main", "labels": [{"name": "parentSuite", "value": "test"}, {"name": "suite", "value": "test_api"}, {"name": "host", "value": "LAPTOP-FR8LEA9G"}, {"name": "thread", "value": "5708-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test.test_api"}]}
|
|
@ -13,7 +13,7 @@
|
|||
"username": "admin",
|
||||
"mobile": "12345678",
|
||||
"email": "adsfad@qq.com",
|
||||
"token": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y"
|
||||
"token": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78"
|
||||
},
|
||||
"meta": {
|
||||
"msg": "登录成功",
|
||||
|
@ -45,7 +45,7 @@
|
|||
},
|
||||
{
|
||||
"id": 508,
|
||||
"role_name": "主管",
|
||||
"role_name": "超级管理员",
|
||||
"username": "asdf1",
|
||||
"create_time": 1511853015,
|
||||
"mobile": "123123",
|
||||
|
@ -59,16 +59,16 @@
|
|||
"create_time": 1511853353,
|
||||
"mobile": "1111",
|
||||
"email": "asdf@qq.com",
|
||||
"mg_state": true
|
||||
"mg_state": false
|
||||
},
|
||||
{
|
||||
"id": 510,
|
||||
"role_name": "超级管理员",
|
||||
"username": "123",
|
||||
"create_time": 1606037001,
|
||||
"mobile": "15515515555",
|
||||
"email": "1213@qq.com",
|
||||
"mg_state": true
|
||||
"username": "tige1200",
|
||||
"create_time": 1611720418,
|
||||
"mobile": "test",
|
||||
"email": "test@test.com",
|
||||
"mg_state": false
|
||||
}
|
||||
]
|
||||
},
|
File diff suppressed because one or more lines are too long
|
@ -2,5 +2,5 @@
|
|||
"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",
|
||||
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y"
|
||||
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78"
|
||||
}
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"data": {
|
||||
"id": 594,
|
||||
"id": 512,
|
||||
"rid": -1,
|
||||
"username": "testery",
|
||||
"username": "tery",
|
||||
"mobile": null,
|
||||
"email": null,
|
||||
"mg_state": 0
|
|
@ -0,0 +1 @@
|
|||
{"uuid": "3add3a9a-6b09-4cbc-b641-6720183b0bd9", "children": ["7db2d73d-6696-4596-93da-58f15d28bb2f"], "befores": [{"name": "cases", "status": "passed", "start": 1611727380614, "stop": 1611727380614}], "start": 1611727380614, "stop": 1611727380689}
|
|
@ -0,0 +1 @@
|
|||
"实际结果:{'msg': '更新失败', 'status': 400} = 预期结果:{'msg': '设置状态成功', 'status': 200}"
|
|
@ -0,0 +1 @@
|
|||
0.180329
|
|
@ -0,0 +1 @@
|
|||
""
|
|
@ -0,0 +1 @@
|
|||
0.159627
|
|
@ -1 +0,0 @@
|
|||
{"name": "删除用户zy7y", "status": "passed", "steps": [{"name": "请求地址", "status": "passed", "attachments": [{"name": "请求地址", "source": "0fd5fda2-f709-4862-9ab8-9898f02c7a83-attachment.txt", "type": "text/plain"}], "start": 1606055460666, "stop": 1606055460666}, {"name": "请求头", "status": "passed", "attachments": [{"name": "请求头", "source": "8dd42d81-4893-4ad4-bdb2-5742ab8f07e9-attachment.txt", "type": "text/plain"}], "start": 1606055460666, "stop": 1606055460667}, {"name": "请求参数", "status": "passed", "attachments": [{"name": "请求参数", "source": "ee8ca11d-2c3e-4c2d-9ece-56a4f9e29bf4-attachment.txt", "type": "text/plain"}], "start": 1606055460667, "stop": 1606055460668}, {"name": "上传文件", "status": "passed", "attachments": [{"name": "上传文件", "source": "b174812b-b6b9-44f7-86ea-aba5ec790c1c-attachment.txt", "type": "text/plain"}], "start": 1606055460668, "stop": 1606055460669}, {"name": "响应耗时(s)", "status": "passed", "attachments": [{"name": "响应耗时(s)", "source": "f18ace6b-2ed5-47d1-860c-94f65972cc6d-attachment.txt", "type": "text/plain"}], "start": 1606055460716, "stop": 1606055460716}, {"name": "响应内容", "status": "passed", "attachments": [{"name": "响应内容", "source": "bc5c23ce-baf0-40d6-8d3d-7282cb62067f-attachment.txt", "type": "text/plain"}], "start": 1606055460717, "stop": 1606055460717}, {"name": "存储实际响应", "status": "passed", "attachments": [{"name": "存储实际响应", "source": "47f9d7ab-18f7-4f4c-8817-5de69cf7be9c-attachment.txt", "type": "text/plain"}], "start": 1606055460718, "stop": 1606055460719}, {"name": "第1个断言", "status": "passed", "attachments": [{"name": "第1个断言", "source": "6ced281b-f5b2-40b8-b222-a807155379ef-attachment.txt", "type": "text/plain"}], "start": 1606055460720, "stop": 1606055460721}], "attachments": [{"name": "stderr", "source": "fb3fcfed-ab6a-410f-bca4-c3e4af7b2d45-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case", "value": "['case_008', '删除用户zy7y', 'users/&$.case_005.data.id&', '读', 'delete', 'params', '', '', '{\"$.meta\":{\"msg\": \"删除成功\", \"status\": 200}}']"}], "start": 1606055460665, "stop": 1606055460721, "uuid": "41832a6a-a9fc-4745-919e-e6a92ef82d51", "historyId": "a86ca099b0f3d8ed88fb7191ad51c143", "testCaseId": "08d97ba530f9b18be2971da4c2ed1083", "fullName": "test.test_api.TestApi#test_main", "labels": [{"name": "parentSuite", "value": "test"}, {"name": "suite", "value": "test_api"}, {"name": "subSuite", "value": "TestApi"}, {"name": "host", "value": "DESKTOP-0T59F1A"}, {"name": "thread", "value": "7848-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test.test_api"}]}
|
|
@ -0,0 +1 @@
|
|||
0.055548
|
|
@ -23,7 +23,7 @@
|
|||
},
|
||||
{
|
||||
"id": 508,
|
||||
"role_name": "主管",
|
||||
"role_name": "超级管理员",
|
||||
"username": "asdf1",
|
||||
"create_time": 1511853015,
|
||||
"mobile": "123123",
|
||||
|
@ -37,16 +37,16 @@
|
|||
"create_time": 1511853353,
|
||||
"mobile": "1111",
|
||||
"email": "asdf@qq.com",
|
||||
"mg_state": true
|
||||
"mg_state": false
|
||||
},
|
||||
{
|
||||
"id": 510,
|
||||
"role_name": "超级管理员",
|
||||
"username": "123",
|
||||
"create_time": 1606037001,
|
||||
"mobile": "15515515555",
|
||||
"email": "1213@qq.com",
|
||||
"mg_state": true
|
||||
"username": "tige1200",
|
||||
"create_time": 1611720418,
|
||||
"mobile": "test",
|
||||
"email": "test@test.com",
|
||||
"mg_state": false
|
||||
}
|
||||
]
|
||||
},
|
|
@ -0,0 +1 @@
|
|||
""
|
|
@ -0,0 +1 @@
|
|||
0.062655
|
|
@ -1 +0,0 @@
|
|||
{"name": "get请求查询用户数据列表", "status": "failed", "statusDetails": {"message": "AssertionError", "trace": "self = <test.test_api.TestApi object at 0x000001A9542ABD48>\ncase = ['case_004', 'get请求查询用户数据列表', 'users', '', 'get', 'data', ...]\n\n @pytest.mark.parametrize('case', cases)\n def test_main(self, case):\n response, expect = BaseRequest.send_request(case)\n # 断言操作\n> DataProcess.assert_result(response, expect)\n\ntest_api.py:43: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\ncls = <class 'tools.data_process.DataProcess'>\nresponse = {'data': None, 'meta': {'msg': '无效token', 'status': 400}}\nexpect_str = '{\"$.meta\":{\"msg\": \"获取管理员列表成功\", \"status\": 200}}'\n\n @classmethod\n def assert_result(cls, response: dict, expect_str: str):\n \"\"\" 预期结果实际结果断言方法\n :param response: 实际响应字典\n :param expect_str: 预期响应内容,从excel中读取\n return None\n \"\"\"\n expect_dict = convert_json(expect_str)\n index = 0\n for k, v in expect_dict.items():\n actual = extractor(response, k)\n index += 1\n logger.info(f'第{index}个断言,实际结果:{actual} | 预期结果:{v} \\n断言结果 {actual == v}')\n allure_step(f'第{index}个断言', f'实际结果:{actual} = 预期结果:{v}')\n> assert actual == v\nE AssertionError\n\n..\\tools\\data_process.py:95: AssertionError"}, "steps": [{"name": "请求地址", "status": "passed", "attachments": [{"name": "请求地址", "source": "b5253a05-da3c-415a-8ea0-bd00b18382f4-attachment.txt", "type": "text/plain"}], "start": 1606055460236, "stop": 1606055460237}, {"name": "请求头", "status": "passed", "attachments": [{"name": "请求头", "source": "4f3399e2-d32d-48b0-bbad-dd1a25aad929-attachment.txt", "type": "text/plain"}], "start": 1606055460237, "stop": 1606055460238}, {"name": "请求参数", "status": "passed", "attachments": [{"name": "请求参数", "source": "a3768f08-0980-4d45-983d-804e782344ee-attachment.txt", "type": "text/plain"}], "start": 1606055460239, "stop": 1606055460240}, {"name": "上传文件", "status": "passed", "attachments": [{"name": "上传文件", "source": "05f68f52-cdb2-4796-bec8-50723fc941b2-attachment.txt", "type": "text/plain"}], "start": 1606055460240, "stop": 1606055460241}, {"name": "响应耗时(s)", "status": "passed", "attachments": [{"name": "响应耗时(s)", "source": "d047fe0e-38d2-4704-8036-538f6dcab678-attachment.txt", "type": "text/plain"}], "start": 1606055460278, "stop": 1606055460279}, {"name": "响应内容", "status": "passed", "attachments": [{"name": "响应内容", "source": "0903dca6-53d4-4279-a63e-9ae875186313-attachment.txt", "type": "text/plain"}], "start": 1606055460279, "stop": 1606055460280}, {"name": "存储实际响应", "status": "passed", "attachments": [{"name": "存储实际响应", "source": "48ac09e5-cea8-4fa1-8166-2697d1b35169-attachment.txt", "type": "text/plain"}], "start": 1606055460280, "stop": 1606055460281}, {"name": "第1个断言", "status": "passed", "attachments": [{"name": "第1个断言", "source": "900c9b00-8335-42fd-89cf-3817d14937d3-attachment.txt", "type": "text/plain"}], "start": 1606055460282, "stop": 1606055460282}], "attachments": [{"name": "stderr", "source": "ba362366-259a-4027-a734-1d82b443b80b-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case", "value": "['case_004', 'get请求查询用户数据列表', 'users', '', 'get', 'data', '', '{\"pagenum\": 1, \"pagesize\": \"12\", \"msg\": &$.msg&}', '{\"$.meta\":{\"msg\": \"获取管理员列表成功\", \"status\": 200}}']"}], "start": 1606055460236, "stop": 1606055460283, "uuid": "0ffd1a85-d223-4e87-9830-41613e3f9f60", "historyId": "5fa6656b8b1b28bc1fdd0eb962f2b477", "testCaseId": "08d97ba530f9b18be2971da4c2ed1083", "fullName": "test.test_api.TestApi#test_main", "labels": [{"name": "parentSuite", "value": "test"}, {"name": "suite", "value": "test_api"}, {"name": "subSuite", "value": "TestApi"}, {"name": "host", "value": "DESKTOP-0T59F1A"}, {"name": "thread", "value": "7848-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test.test_api"}]}
|
|
@ -1 +0,0 @@
|
|||
{"uuid": "5db68522-114d-4184-ab31-ff9240af493f", "befores": [{"name": "case", "status": "passed", "start": 1606055460665, "stop": 1606055460665}], "start": 1606055460665, "stop": 1606055460722}
|
|
@ -13,7 +13,7 @@
|
|||
"username": "admin",
|
||||
"mobile": "12345678",
|
||||
"email": "adsfad@qq.com",
|
||||
"token": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y"
|
||||
"token": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78"
|
||||
},
|
||||
"meta": {
|
||||
"msg": "登录成功",
|
||||
|
@ -45,7 +45,7 @@
|
|||
},
|
||||
{
|
||||
"id": 508,
|
||||
"role_name": "主管",
|
||||
"role_name": "超级管理员",
|
||||
"username": "asdf1",
|
||||
"create_time": 1511853015,
|
||||
"mobile": "123123",
|
||||
|
@ -59,16 +59,16 @@
|
|||
"create_time": 1511853353,
|
||||
"mobile": "1111",
|
||||
"email": "asdf@qq.com",
|
||||
"mg_state": true
|
||||
"mg_state": false
|
||||
},
|
||||
{
|
||||
"id": 510,
|
||||
"role_name": "超级管理员",
|
||||
"username": "123",
|
||||
"create_time": 1606037001,
|
||||
"mobile": "15515515555",
|
||||
"email": "1213@qq.com",
|
||||
"mg_state": true
|
||||
"username": "tige1200",
|
||||
"create_time": 1611720418,
|
||||
"mobile": "test",
|
||||
"email": "test@test.com",
|
||||
"mg_state": false
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -86,10 +86,10 @@
|
|||
},
|
||||
"case_005": {
|
||||
"data": {
|
||||
"id": 594,
|
||||
"username": "testery",
|
||||
"id": 512,
|
||||
"username": "tery",
|
||||
"role_id": -1,
|
||||
"create_time": 1606055460
|
||||
"create_time": 1611727380
|
||||
},
|
||||
"meta": {
|
||||
"msg": "创建成功",
|
||||
|
@ -98,9 +98,9 @@
|
|||
},
|
||||
"case_006": {
|
||||
"data": {
|
||||
"id": 594,
|
||||
"id": 512,
|
||||
"rid": -1,
|
||||
"username": "testery",
|
||||
"username": "tery",
|
||||
"mobile": null,
|
||||
"email": null,
|
||||
"mg_state": 0
|
||||
|
@ -112,9 +112,9 @@
|
|||
},
|
||||
"case_007": {
|
||||
"data": {
|
||||
"id": 594,
|
||||
"id": 512,
|
||||
"rid": -1,
|
||||
"username": "testery",
|
||||
"username": "tery",
|
||||
"mobile": null,
|
||||
"email": null,
|
||||
"mg_state": 0
|
|
@ -1,10 +1,11 @@
|
|||
[32m2020-11-22 22:31:00.237[0m | [31m[1mERROR [0m | [36mtools[0m:[36mextractor[0m:[36m29[0m - [31m[1m提取不到内容,丢给你一个错误!'bool' object is not subscriptable[0m
|
||||
[32m2020-11-22 22:31:00.276[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||||
请求地址:http://www.ysqorz.top:8888/api/private/v1/users
|
||||
[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
|
||||
[32m2020-11-22 22:31:00.279[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
|
||||
[32m2020-11-22 22:31:00.280[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m93[0m - [1m第1个断言,实际结果:{'msg': '无效token', 'status': 400} | 预期结果:{'msg': '获取管理员列表成功', 'status': 200}
|
||||
[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
|
|
@ -2,5 +2,5 @@
|
|||
"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",
|
||||
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MDYwNTU0NTksImV4cCI6MTYwNjE0MTg1OX0.1Ck1JiEfxadrEvrskgUnNaVxicEbAAVPqCLQqECcP_Y"
|
||||
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78"
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{"uuid": "6620930e-d1e5-4ac9-bbd6-323116bcd213", "children": ["5afeaf9c-d24a-4ec8-bfc7-b84646fb008e"], "befores": [{"name": "cases", "status": "passed", "start": 1611727380998, "stop": 1611727380998}], "start": 1611727380998, "stop": 1611727381058}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
{"name": "修改用户状态接口", "status": "passed", "steps": [{"name": "请求地址", "status": "passed", "attachments": [{"name": "请求地址", "source": "05cf6e0d-4fa0-449b-9e15-383e77d14667-attachment.txt", "type": "text/plain"}], "start": 1611727380476, "stop": 1611727380477}, {"name": "请求头", "status": "passed", "attachments": [{"name": "请求头", "source": "19437e16-d42d-466a-812c-883d341325fc-attachment.txt", "type": "text/plain"}], "start": 1611727380477, "stop": 1611727380478}, {"name": "请求参数", "status": "passed", "attachments": [{"name": "请求参数", "source": "e1c503b7-f4a8-4d0e-96ec-0596c23d3ac4-attachment.txt", "type": "text/plain"}], "start": 1611727380478, "stop": 1611727380478}, {"name": "上传文件", "status": "passed", "attachments": [{"name": "上传文件", "source": "f97062dd-6d99-48c3-a45f-8f28a3b4358a-attachment.txt", "type": "text/plain"}], "start": 1611727380478, "stop": 1611727380479}, {"name": "响应耗时(s)", "status": "passed", "attachments": [{"name": "响应耗时(s)", "source": "80f3b79b-ed34-41ec-8259-3b96186f0027-attachment.txt", "type": "text/plain"}], "start": 1611727380536, "stop": 1611727380537}, {"name": "响应内容", "status": "passed", "attachments": [{"name": "响应内容", "source": "b37e524f-629c-47d8-b183-caae96b1fda0-attachment.txt", "type": "text/plain"}], "start": 1611727380537, "stop": 1611727380538}, {"name": "存储实际响应", "status": "passed", "attachments": [{"name": "存储实际响应", "source": "ff0c8b9c-124a-4920-9af9-7eca9fcc2734-attachment.txt", "type": "text/plain"}], "start": 1611727380538, "stop": 1611727380539}, {"name": "第1个断言", "status": "passed", "attachments": [{"name": "第1个断言", "source": "3bd58d14-bacb-4fd7-bea7-a7654d3839b0-attachment.txt", "type": "text/plain"}], "start": 1611727380540, "stop": 1611727380541}], "attachments": [{"name": "stderr", "source": "323c703d-bf67-477f-b0a6-c45b6f0a997a-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "cases", "value": "['case_006', '修改用户状态接口', 'users/&$.case_005.data.id&/state/&$.case_005.data.careate_time&', '读', 'put', 'data', '', '', '', '{\"$.meta\":{\"msg\": \"设置状态成功\", \"status\": 200}}']"}], "start": 1611727380475, "stop": 1611727380541, "uuid": "3628a2df-0373-46e2-ba37-ce4f3749f6ef", "historyId": "9b58e419aa66c81ba5e26368887473ad", "testCaseId": "881516e7ef2e2aa5436f6a3c3e6a5bcb", "fullName": "test.test_api#test_main", "labels": [{"name": "parentSuite", "value": "test"}, {"name": "suite", "value": "test_api"}, {"name": "host", "value": "LAPTOP-FR8LEA9G"}, {"name": "thread", "value": "5708-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test.test_api"}]}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"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",
|
||||
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78"
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
[32m2021-01-27 14:03:01.036[0m | [1mINFO [0m | [36mapi.base_requests[0m:[36msend_api[0m:[36m80[0m - [1m
|
||||
最终请求地址:http://www.ysqorz.top:8888/api/private/v1/users/1024/
|
||||
请求方法:put
|
||||
请求头:{'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', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjUwMCwicmlkIjowLCJpYXQiOjE2MTE3MjczNzksImV4cCI6MTYxMTgxMzc3OX0.RpFpMOgYZBOS46IEQ5iRUSQ904te4F_viQaEBXTmC78'}
|
||||
请求参数:None
|
||||
上传文件:None
|
||||
响应数据:{'data': None, 'meta': {'msg': '更新失败', 'status': 400}}[0m
|
||||
[32m2021-01-27 14:03:01.039[0m | [1mINFO [0m | [36mtools.data_process[0m:[36msave_response[0m:[36m27[0m - [1m添加key: case_019, 对应value: {'data': None, 'meta': {'msg': '更新失败', 'status': 400}}[0m
|
||||
[32m2021-01-27 14:03:01.041[0m | [1mINFO [0m | [36mtools.data_process[0m:[36massert_result[0m:[36m115[0m - [1m第1个断言,实际结果:{'msg': '更新失败', 'status': 400} | 预期结果:{'msg': '设置状态成功', 'status': 200}
|
||||
断言结果 False[0m
|
|
@ -0,0 +1 @@
|
|||
"实际结果:None = 预期结果:400"
|
|
@ -0,0 +1 @@
|
|||
"http://www.ysqorz.top:8888/api/private/v1/users/1024/"
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"username": "tery",
|
||||
"password": "123456"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue