Commit e10677b1 by 李江源

wndows试运行

parent b759cb78
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{"uuid": "96f21ac8-65ac-4b3b-b3dc-733bab63e305", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907153, "stop": 1731224907153}], "start": 1731224907153, "stop": 1731224907203}
\ No newline at end of file
{"uuid": "3a7e2d48-4b9e-4ec2-a0eb-bf1de0c2f0f2", "befores": [{"name": "method", "status": "passed", "start": 1731224907611, "stop": 1731224907611}], "start": 1731224907611, "stop": 1731224907626}
\ No newline at end of file
{"uuid": "e1365a93-4752-4e7d-8998-ca2261e74b03", "befores": [{"name": "level", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907605}
\ No newline at end of file
{"uuid": "4df75a46-8be8-46e6-a3fa-031e833242ea", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907375, "stop": 1731224907376}], "start": 1731224907375, "stop": 1731224907425}
\ No newline at end of file
{"uuid": "20654e42-2ecb-4b90-bf42-1a9cf269e97a", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907006, "stop": 1731224907006}], "start": 1731224907006, "stop": 1731224907044}
\ No newline at end of file
{"uuid": "5f96f9e2-9fed-4d8e-a5f1-dfc9a7140dfb", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907006, "stop": 1731224907006}], "start": 1731224907006, "stop": 1731224907051}
\ No newline at end of file
{"uuid": "fc2b43ad-d389-4cb1-ab24-4a049ed56ba9", "befores": [{"name": "module", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907523}
\ No newline at end of file
{"name": "反向用例-用户名正确-密码为空", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败,用例数据为:{'username': 'admin', 'password': ''},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{\"state\":false,\"message\":\"账号或密码错误\",\"code\":200,\"logId\":\"1855517125880946688\"}", "trace": "self = <MyApiAutoTest_v3_3.test_case.test_demo.test_bpm.TestBPM object at 0x000001845E428050>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, case_id = 'T006', module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码为空', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json', case_data = {'password': '', 'username': 'admin'}\nexpect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_demo\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_case\\test_demo\\test_bpm.py:36: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <MyApiAutoTest_v3_3.test_case.test_demo.test_bpm.TestBPM object at 0x000001845E428050>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, case_id = 'T006', module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码为空', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json', case_data = {'password': '', 'username': 'admin'}\nexpect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_demo\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except AssertionError:\n logor.error(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\nE AssertionError: 断言失败,用例数据为:{'username': 'admin', 'password': ''},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{\"state\":false,\"message\":\"账号或密码错误\",\"code\":200,\"logId\":\"1855517125880946688\"}\n\ntest_case\\test_demo\\test_bpm.py:39: AssertionError"}, "attachments": [{"name": "log", "source": "1db7a65a-e53a-412e-ae08-aa80d1ac0197-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T006'"}, {"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名正确-密码为空'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': ''}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224906953, "stop": 1731224906988, "uuid": "681ad714-02ca-4889-9434-a5db3b48e34d", "historyId": "68f814e29a457ebc6b5588e2d54e220c", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_demo"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "3f39308a-8781-426e-8e35-3215c44bcf3f", "children": ["19f6f33b-9b89-4443-93cf-da97bcf92bac", "91af28f1-0917-49b6-99a7-a7936693b813", "4df3d3f7-71d8-4805-8c94-18290bd84d93", "f13c7574-90e0-42bf-af4f-a7fe6acb1850", "55b765ec-4b87-4a97-aa3e-3bcba0c9c812", "681ad714-02ca-4889-9434-a5db3b48e34d", "72fbae52-01c1-42d0-8ba4-f452173b180b", "cdc03c49-28ad-47e4-bded-41ff3e0e6938", "09a8ce4c-f0b4-41ed-8be5-f3185fea0c05", "1fb213ba-7ea2-4a28-b2af-390dfe51e1a6", "00af9398-bb1b-4cc5-828c-828818cb267f", "ba0960d7-b425-45a2-a391-c9fab6d57f0f", "a7dd2070-c231-4a18-8d0f-e0c1abe997b9", "8b6752d4-06e7-4a25-98e3-2ff1088ab0a5", "a66ee57d-2c37-4efb-88a6-4a371c9b913a", "6804c6a6-86e5-4d6b-93c6-dcbf08750f2b", "8ead9ee3-1dc8-4bb4-af95-43b519c6a5bc", "a60992c9-9e8b-4442-a4e3-077adb8c8b56", "2541793e-841c-4bb9-9a48-0125539478d6", "625eed2c-7c72-4e9e-a3d2-369dd90d643a"], "befores": [{"name": "_session_faker", "status": "passed", "start": 1731224906103, "stop": 1731224906214}], "start": 1731224906103, "stop": 1731224907926}
\ No newline at end of file
{"uuid": "b139584c-4ae3-4052-b6ea-f32c7c3f1de4", "befores": [{"name": "url", "status": "passed", "start": 1731224907611, "stop": 1731224907611}], "start": 1731224907611, "stop": 1731224907625}
\ No newline at end of file
{"uuid": "abfa1fc6-dc1f-428c-b4cf-84107958636a", "befores": [{"name": "method", "status": "passed", "start": 1731224907006, "stop": 1731224907006}], "start": 1731224907006, "stop": 1731224907047}
\ No newline at end of file
{"uuid": "1847a21e-75a3-44ac-bffa-ebecdafa30c2", "befores": [{"name": "module", "status": "passed", "start": 1731224907688, "stop": 1731224907688}], "start": 1731224907688, "stop": 1731224907791}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, 'put', 'http://36.139.193.99:8088/api/demension/v1/dem/updateDem', 'application/json', {'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}, None, None, None)或{}
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'},期望数据为:{'state': True, 'message': '更新维度成功!'}, 服务器返回的数据为:{"state":true,"message":"更新维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "d9a9e668-f89d-4739-9d0a-9136e5943986", "befores": [{"name": "title", "status": "passed", "start": 1731224907152, "stop": 1731224907152}], "start": 1731224907152, "stop": 1731224907218}
\ No newline at end of file
{"uuid": "7e4a0b0f-b098-428a-8d06-5cd1a993d59d", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907690, "stop": 1731224907690}], "start": 1731224907690, "stop": 1731224907773}
\ No newline at end of file
{"uuid": "7118a854-d640-47a1-a75f-d2dfbfe8b673", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224906306, "stop": 1731224906306}], "start": 1731224906306, "stop": 1731224906343}
\ No newline at end of file
{"uuid": "90990744-df21-4bf0-b227-abb6bb0555f4", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907690, "stop": 1731224907690}], "start": 1731224907690, "stop": 1731224907765}
\ No newline at end of file
{"uuid": "01bafeea-0195-44f7-8ec5-0f6758425fd7", "befores": [{"name": "method", "status": "passed", "start": 1731224906305, "stop": 1731224906306}], "start": 1731224906305, "stop": 1731224906347}
\ No newline at end of file
{"uuid": "9d75d39c-0baf-4644-b98f-e417b8b67074", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907108, "stop": 1731224907108}], "start": 1731224907108, "stop": 1731224907143}
\ No newline at end of file
{"uuid": "77dd724a-dedf-43ca-b106-79ce8899896f", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907099}
\ No newline at end of file
{"uuid": "e55d1615-588d-4990-aec5-c705b871860a", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224906997}
\ No newline at end of file
{"uuid": "890e90a9-25f2-4425-b2d8-37598761408d", "befores": [{"name": "api", "status": "passed", "start": 1731224907633, "stop": 1731224907633}], "start": 1731224907633, "stop": 1731224907685}
\ No newline at end of file
{"uuid": "0810f78f-d9f9-4721-a071-08d36357e652", "befores": [{"name": "module", "status": "passed", "start": 1731224907633, "stop": 1731224907633}], "start": 1731224907633, "stop": 1731224907685}
\ No newline at end of file
{"uuid": "21cd24f0-6da3-43f7-85a1-46bb3994b92c", "befores": [{"name": "mime", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907100}
\ No newline at end of file
{"uuid": "b883204b-54f7-4fea-b961-f70781459756", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907439, "stop": 1731224907439}], "start": 1731224907439, "stop": 1731224907482}
\ No newline at end of file
{"name": "正向用例", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败,用例数据为:{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]},期望数据为:{'state': True, 'message': '保存组织参数成功!'}, 服务器返回的数据为:{\"state\":false,\"message\":\"Required String parameter 'orgCode' is not present\",\"code\":200,\"logId\":\"1855517128653381632\"}", "trace": "self = <MyApiAutoTest_v3_3.test_case.test_zs.test_bpm.TestBPM object at 0x000001845E46DC40>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, case_id = 'T17', module = '组织管理', api = '保存组织参数', title = '正向用例'\nlevel = '中', method = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}, expect_data = {'message': '保存组织参数成功!', 'state': True}, sql_type = None, sql_data = None\nupdate_key = None\n\n @allure.epic(\"BPM_张三\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE assert False == True\nE + where False = <built-in method get of dict object at 0x000001845E5A8840>('state')\nE + where <built-in method get of dict object at 0x000001845E5A8840> = {'code': 200, 'logId': '1855517128653381632', 'message': \"Required String parameter 'orgCode' is not present\", 'state': False}.get\nE + where {'code': 200, 'logId': '1855517128653381632', 'message': \"Required String parameter 'orgCode' is not present\", 'state': False} = json()\nE + where json = <Response [500]>.json\n\ntest_case\\test_zs\\test_bpm.py:37: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <MyApiAutoTest_v3_3.test_case.test_zs.test_bpm.TestBPM object at 0x000001845E46DC40>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, case_id = 'T17', module = '组织管理', api = '保存组织参数', title = '正向用例'\nlevel = '中', method = 'post', url = 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', mime = 'query|json'\ncase_data = {'body': [{'alias': 'sz', 'value': 1}], 'query': {'orgCode': 'testAddOrg'}}, expect_data = {'message': '保存组织参数成功!', 'state': True}, sql_type = None, sql_data = None\nupdate_key = None\n\n @allure.epic(\"BPM_张三\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except AssertionError:\n logor.error(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\nE AssertionError: 断言失败,用例数据为:{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]},期望数据为:{'state': True, 'message': '保存组织参数成功!'}, 服务器返回的数据为:{\"state\":false,\"message\":\"Required String parameter 'orgCode' is not present\",\"code\":200,\"logId\":\"1855517128653381632\"}\n\ntest_case\\test_zs\\test_bpm.py:40: AssertionError"}, "attachments": [{"name": "log", "source": "47d336eb-f989-4b55-8949-cbd2c6cd00c6-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T17'"}, {"name": "module", "value": "'组织管理'"}, {"name": "api", "value": "'保存组织参数'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams'"}, {"name": "mime", "value": "'query|json'"}, {"name": "case_data", "value": "{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}"}, {"name": "expect_data", "value": "{'state': True, 'message': '保存组织参数成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224907634, "stop": 1731224907673, "uuid": "8ead9ee3-1dc8-4bb4-af95-43b519c6a5bc", "historyId": "469c26340b814641be47e4fd9050fbea", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "保存组织参数"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_张三"}, {"name": "parentSuite", "value": "test_case.test_zs"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "3713614f-231f-45f7-b854-f1441ae3ad1e", "befores": [{"name": "api", "status": "passed", "start": 1731224907844, "stop": 1731224907844}], "start": 1731224907844, "stop": 1731224907922}
\ No newline at end of file
{"uuid": "da76d991-90cc-4278-813d-2ce8577cb16b", "befores": [{"name": "api", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224907002}
\ No newline at end of file
{"uuid": "005a6100-5549-4682-992a-da0cb96b1d2d", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907797, "stop": 1731224907797}], "start": 1731224907797, "stop": 1731224907834}
\ No newline at end of file
{"uuid": "51920a6b-b9fc-4f86-9fe9-18f4e2e26247", "befores": [{"name": "api", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906889}
\ No newline at end of file
{"uuid": "d2614258-0c63-4b6d-a4a5-b3d00f405460", "befores": [{"name": "title", "status": "passed", "start": 1731224907690, "stop": 1731224907690}], "start": 1731224907690, "stop": 1731224907790}
\ No newline at end of file
{"uuid": "8bd0920e-bc99-4290-88b4-91a8280246e7", "befores": [{"name": "method", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907101}
\ No newline at end of file
{"uuid": "4d3f6ce6-05fa-423a-abe8-c3197ac01bf1", "befores": [{"name": "case_data", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906782}
\ No newline at end of file
{"uuid": "6f3ed63a-0b4c-45d6-9344-c583d0248524", "befores": [{"name": "url", "status": "passed", "start": 1731224907845, "stop": 1731224907845}], "start": 1731224907845, "stop": 1731224907920}
\ No newline at end of file
{"uuid": "19d48138-5294-4e3d-be56-bd837164d964", "befores": [{"name": "mime", "status": "passed", "start": 1731224906306, "stop": 1731224906306}], "start": 1731224906306, "stop": 1731224906345}
\ No newline at end of file
{"uuid": "a0f885b2-ca78-4a75-a5eb-aa643dd8b365", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907611, "stop": 1731224907611}], "start": 1731224907611, "stop": 1731224907630}
\ No newline at end of file
{"uuid": "867af039-997e-47af-86b3-49f3d2f5e776", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906882}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, 'post', 'http://36.139.193.99:8088/auth', 'application/json', {'username': 'admin', 'password': ''}, None, None, None)或{}
ERROR  root:test_bpm.py:38 断言失败,用例数据为:{'username': 'admin', 'password': ''},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1855517125880946688"}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, 'post', 'http://36.139.193.99:8088/api/org/v1/org/addOrg', 'json', {'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}, 'select|delete', {'delete': 'delete from uc_org where CODE_="testAddOrg";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";'}, 'demId')或{}
INFO  root:__init__.py:46 执行的功能为:delete, 功能描述为:执行删除的sql语句, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\db.py, 所在的行为:33行,形参的值为:(<MyApiAutoTest_v3_3.common.db.DB object at 0x000001845E4F68D0>, 'delete from uc_org where CODE_="testAddOrg";')或{}
INFO  root:__init__.py:46 执行的功能为:select, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\db.py, 所在的行为:45行,形参的值为:(<MyApiAutoTest_v3_3.common.db.DB object at 0x000001845E4F68D0>, 'SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";')或{}
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'code': 'testAddOrg', 'demId': '1855517127655137280', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'},期望数据为:{'state': True, 'message': '添加组织成功!'}, 服务器返回的数据为:{"state":true,"message":"添加组织成功!","value":"","code":200}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "08419c7c-a659-4335-94ed-4a524d092597-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T14'"}, {"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'更新维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'put'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/updateDem'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'code': 'testAddDem', 'description': '测试添加的维度', 'isDefault': 0, 'name': '测试添加的维度'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '更新维度成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224907487, "stop": 1731224907514, "uuid": "8b6752d4-06e7-4a25-98e3-2ff1088ab0a5", "historyId": "5dc8084ea7ab8b6cf5ba6056afd9c959", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "更新维度"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_张三"}, {"name": "parentSuite", "value": "test_case.test_zs"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "4ee399d8-bd4b-4d27-8472-2001758dee90", "befores": [{"name": "module", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907608}
\ No newline at end of file
{"uuid": "34a8ec59-d059-428a-9899-aa3e949599b3", "befores": [{"name": "case_data", "status": "passed", "start": 1731224906306, "stop": 1731224906306}], "start": 1731224906306, "stop": 1731224906345}
\ No newline at end of file
{"uuid": "77286109-51e1-41f6-9764-a687c4ffaae3", "befores": [{"name": "level", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907101}
\ No newline at end of file
{"uuid": "3f49763a-9011-4629-9155-9812aa96fd69", "befores": [{"name": "level", "status": "passed", "start": 1731224907690, "stop": 1731224907690}], "start": 1731224907690, "stop": 1731224907789}
\ No newline at end of file
{"uuid": "cb559051-5e8a-4f61-89a9-431628b1c739", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907108, "stop": 1731224907108}], "start": 1731224907108, "stop": 1731224907142}
\ No newline at end of file
{"uuid": "3806a446-d98b-4386-b8fa-a10f9a82178c", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907518}
\ No newline at end of file
{"uuid": "665cc64c-ac77-4f1f-97b9-81d50390b58d", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907439, "stop": 1731224907439}], "start": 1731224907439, "stop": 1731224907476}
\ No newline at end of file
{"uuid": "44fbb6a2-08f4-43a4-b5a4-83363febf496", "befores": [{"name": "module", "status": "passed", "start": 1731224907226, "stop": 1731224907226}], "start": 1731224907226, "stop": 1731224907273}
\ No newline at end of file
{"uuid": "44fdfc66-762e-4cd1-8687-0fda612ccdd8", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906782}
\ No newline at end of file
{"uuid": "7bafe218-52dd-4259-b1fc-57c8576d0b04", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907153, "stop": 1731224907153}], "start": 1731224907153, "stop": 1731224907206}
\ No newline at end of file
{"uuid": "7165f614-2ebb-4078-8bff-afc4bef9a656", "befores": [{"name": "method", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906945}
\ No newline at end of file
{"uuid": "93af785b-5699-4d24-8707-282916ce9255", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906818}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, 'post', 'http://36.139.193.99:8088/api/user/v1/user/addUser', 'json', {'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}, 'delete', 'delete from uc_user where ACCOUNT_="testAddUser";', None)或{}
INFO  root:__init__.py:46 执行的功能为:delete, 功能描述为:执行删除的sql语句, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\db.py, 所在的行为:33行,形参的值为:(<MyApiAutoTest_v3_3.common.db.DB object at 0x000001845E4F68D0>, 'delete from uc_user where ACCOUNT_="testAddUser";')或{}
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1},期望数据为:{'state': True, 'message': '用户添加成功!'}, 服务器返回的数据为:{"state":true,"message":"用户添加成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "cd274f76-4065-4a02-86b1-bd9eb6239fc0", "befores": [{"name": "module", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906890}
\ No newline at end of file
{"uuid": "102ac9ad-a049-454c-876b-964a09cc258f", "befores": [{"name": "title", "status": "passed", "start": 1731224907611, "stop": 1731224907611}], "start": 1731224907611, "stop": 1731224907627}
\ No newline at end of file
{"uuid": "45de203e-3ef9-40a7-b72f-c22f7809d6f3", "befores": [{"name": "module", "status": "passed", "start": 1731224907439, "stop": 1731224907439}], "start": 1731224907439, "stop": 1731224907482}
\ No newline at end of file
{"uuid": "b74c3a32-9e6a-478c-b6f5-c89fa44ae4e2", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907796, "stop": 1731224907796}], "start": 1731224907796, "stop": 1731224907841}
\ No newline at end of file
{"uuid": "f441eb7f-9e69-4fa8-9d39-db26ff551825", "befores": [{"name": "api", "status": "passed", "start": 1731224907107, "stop": 1731224907107}], "start": 1731224907107, "stop": 1731224907148}
\ No newline at end of file
{"uuid": "6dbf8598-d2bf-4e5d-a812-dc5017b3f083", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907634, "stop": 1731224907634}], "start": 1731224907634, "stop": 1731224907682}
\ No newline at end of file
{"uuid": "0ca0e463-cbb3-4fed-a0b1-aff4fa71ff80", "befores": [{"name": "mime", "status": "passed", "start": 1731224907374, "stop": 1731224907374}], "start": 1731224907374, "stop": 1731224907431}
\ No newline at end of file
{"uuid": "766dbfc0-42dd-4417-944f-99c9ac23db26", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907439, "stop": 1731224907439}], "start": 1731224907439, "stop": 1731224907473}
\ No newline at end of file
{"uuid": "94d6cc51-9fe6-4285-9b45-c43c4384b30e", "befores": [{"name": "update_key", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906816}
\ No newline at end of file
{"uuid": "385e56b0-225e-4502-a8d4-59d22eb00186", "befores": [{"name": "title", "status": "passed", "start": 1731224907844, "stop": 1731224907844}], "start": 1731224907844, "stop": 1731224907921}
\ No newline at end of file
{"uuid": "b4e846fd-663a-4c83-8d1e-623cd082cbcc", "befores": [{"name": "mime", "status": "passed", "start": 1731224907611, "stop": 1731224907611}], "start": 1731224907611, "stop": 1731224907624}
\ No newline at end of file
{"name": "正向用例", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败,用例数据为:{'ids': '1855517127655137280'},期望数据为:{'state': True, 'message': '删除维度成功!'}, 服务器返回的数据为:{\"state\":false,\"message\":\"【测试添加的维度(testAddDem)】的维度下存在组织,不允许删除 \",\"value\":\"\",\"code\":200}", "trace": "self = <MyApiAutoTest_v3_3.test_case.test_zs.test_bpm.TestBPM object at 0x000001845E46DB20>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, case_id = 'T12', module = '维度管理', api = '根据维度编码删除维度', title = '正向用例'\nlevel = '中', method = 'DELETE', url = 'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds', mime = 'query', case_data = {'ids': '1855517127655137280'}\nexpect_data = {'message': '删除维度成功!', 'state': True}, sql_type = 'select', sql_data = 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";', update_key = 'ids'\n\n @allure.epic(\"BPM_张三\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert False == True\nE + where False = <built-in method get of dict object at 0x000001845E58BC00>('state')\nE + where <built-in method get of dict object at 0x000001845E58BC00> = {'code': 200, 'message': '【测试添加的维度(testAddDem)】的维度下存在组织,不允许删除 ', 'state': False, 'value': ''}.get\nE + where {'code': 200, 'message': '【测试添加的维度(testAddDem)】的维度下存在组织,不允许删除 ', 'state': False, 'value': ''} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_zs\\test_bpm.py:37: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <MyApiAutoTest_v3_3.test_case.test_zs.test_bpm.TestBPM object at 0x000001845E46DB20>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, case_id = 'T12', module = '维度管理', api = '根据维度编码删除维度', title = '正向用例'\nlevel = '中', method = 'DELETE', url = 'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds', mime = 'query', case_data = {'ids': '1855517127655137280'}\nexpect_data = {'message': '删除维度成功!', 'state': True}, sql_type = 'select', sql_data = 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";', update_key = 'ids'\n\n @allure.epic(\"BPM_张三\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except AssertionError:\n logor.error(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\nE AssertionError: 断言失败,用例数据为:{'ids': '1855517127655137280'},期望数据为:{'state': True, 'message': '删除维度成功!'}, 服务器返回的数据为:{\"state\":false,\"message\":\"【测试添加的维度(testAddDem)】的维度下存在组织,不允许删除 \",\"value\":\"\",\"code\":200}\n\ntest_case\\test_zs\\test_bpm.py:40: AssertionError"}, "attachments": [{"name": "log", "source": "8d02f5c7-321d-48f9-954f-4478de6f240a-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T12'"}, {"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'根据维度编码删除维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': '需要更新'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除维度成功!'}"}, {"name": "sql_type", "value": "'select'"}, {"name": "sql_data", "value": "'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'"}, {"name": "update_key", "value": "'ids'"}], "start": 1731224907798, "stop": 1731224907825, "uuid": "2541793e-841c-4bb9-9a48-0125539478d6", "historyId": "17597f94d112e1dba9833de4d94ce28f", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "根据维度编码删除维度"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_张三"}, {"name": "parentSuite", "value": "test_case.test_zs"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "5a695d05-45b0-4e71-a6e2-01b46b510664", "befores": [{"name": "mime", "status": "passed", "start": 1731224907107, "stop": 1731224907107}], "start": 1731224907107, "stop": 1731224907145}
\ No newline at end of file
{"uuid": "49d95f21-feb1-49c6-8a1a-3329e44e5f49", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907608}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:get_sql_connect, 功能描述为:根据key获取数据库连接信息, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:29行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E429280>, 'host')或{}
INFO  root:__init__.py:46 执行的功能为:get_sql_connect, 功能描述为:根据key获取数据库连接信息, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:29行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E429280>, 'port')或{}
INFO  root:__init__.py:46 执行的功能为:get_sql_connect, 功能描述为:根据key获取数据库连接信息, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:29行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E429280>, 'username')或{}
INFO  root:__init__.py:46 执行的功能为:get_sql_connect, 功能描述为:根据key获取数据库连接信息, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:29行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E429280>, 'password')或{}
INFO  root:__init__.py:46 执行的功能为:get_sql_connect, 功能描述为:根据key获取数据库连接信息, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:29行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E429280>, 'database')或{}
INFO  root:__init__.py:46 执行的功能为:get_host, 功能描述为:根据key获取域名, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:24行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E460260>, 'bpm')或{}
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, 'post', 'http://36.139.193.99:8088/auth', 'application/json', {'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}, None, None, None)或{}
INFO  root:test_bpm.py:41 断言成功,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzEzMTExMzAsImlhdCI6MTczMTIyNDczMH0.nujtbsNRmxSXDP6PJ6dm6GmIZU7vY4kvjzeJ1sjh8mMRliOmtcsr39RJ2VL4vibY7iyZNci0GN0pEdy9ICBmFw","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
\ No newline at end of file
{"uuid": "b562e41a-0f81-4ff0-8542-649a96b7f8e2", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906881}
\ No newline at end of file
{"name": "反向用例-维度id为空", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败,用例数据为:{'ids': ''},期望数据为:{'state': False, 'message': '维度id不能为空!'}, 服务器返回的数据为:{\"state\":false,\"message\":\"删除维度失败,维度ids必填\",\"code\":200,\"logId\":\"1855517129550962688\"}", "trace": "self = <MyApiAutoTest_v3_3.test_case.test_zs.test_bpm.TestBPM object at 0x000001845E46DA90>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, case_id = 'T14', module = '维度管理', api = '根据维度编码删除维度'\ntitle = '反向用例-维度id为空', level = '中', method = 'DELETE', url = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query', case_data = {'ids': ''}\nexpect_data = {'message': '维度id不能为空!', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_张三\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert '删除维度失败,维度ids必填' == '维度id不能为空!'\nE \nE - 维度id不能为空!\nE + 删除维度失败,维度ids必填\n\ntest_case\\test_zs\\test_bpm.py:37: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <MyApiAutoTest_v3_3.test_case.test_zs.test_bpm.TestBPM object at 0x000001845E46DA90>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, case_id = 'T14', module = '维度管理', api = '根据维度编码删除维度'\ntitle = '反向用例-维度id为空', level = '中', method = 'DELETE', url = 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', mime = 'query', case_data = {'ids': ''}\nexpect_data = {'message': '维度id不能为空!', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_张三\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except AssertionError:\n logor.error(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\nE AssertionError: 断言失败,用例数据为:{'ids': ''},期望数据为:{'state': False, 'message': '维度id不能为空!'}, 服务器返回的数据为:{\"state\":false,\"message\":\"删除维度失败,维度ids必填\",\"code\":200,\"logId\":\"1855517129550962688\"}\n\ntest_case\\test_zs\\test_bpm.py:40: AssertionError"}, "attachments": [{"name": "log", "source": "a449c85c-a51e-4ec8-8290-99ebc1958ef6-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T14'"}, {"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'根据维度编码删除维度'"}, {"name": "title", "value": "'反向用例-维度id为空'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'DELETE'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'ids': ''}"}, {"name": "expect_data", "value": "{'state': False, 'message': '维度id不能为空!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224907845, "stop": 1731224907888, "uuid": "625eed2c-7c72-4e9e-a3d2-369dd90d643a", "historyId": "e3050e2f234ddf0f662637a33116a88d", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "根据维度编码删除维度"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_张三"}, {"name": "parentSuite", "value": "test_case.test_zs"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "55e0818f-53ee-4fea-9af4-d47246d87540", "befores": [{"name": "api", "status": "passed", "start": 1731224907152, "stop": 1731224907152}], "start": 1731224907152, "stop": 1731224907220}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "b32fe2a3-cb59-48c8-817e-92138ac19b1a-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T13'"}, {"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'设置默认维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'put'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem'"}, {"name": "mime", "value": "'query'"}, {"name": "case_data", "value": "{'code': 'testAddDem'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '设置默认维度成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224907440, "stop": 1731224907472, "uuid": "a7dd2070-c231-4a18-8d0f-e0c1abe997b9", "historyId": "a638a20e475b27cdf565aed15cdc30cd", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "设置默认维度"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_张三"}, {"name": "parentSuite", "value": "test_case.test_zs"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "49383b73-146f-46d6-98fe-85cf61010b66", "befores": [{"name": "level", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224907000}
\ No newline at end of file
{"uuid": "519a80b8-93c9-4008-a67f-61695e97cd89", "befores": [{"name": "title", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906785}
\ No newline at end of file
{"uuid": "df597f18-0384-4d68-8268-b703001ef728", "befores": [{"name": "title", "status": "passed", "start": 1731224907796, "stop": 1731224907796}], "start": 1731224907796, "stop": 1731224907838}
\ No newline at end of file
{"uuid": "4a232487-22bd-48b6-a311-1e45b85a06a1", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907612, "stop": 1731224907612}], "start": 1731224907612, "stop": 1731224907622}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "26e5a230-275b-45ac-9812-dc8b9d0f9f99-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T18'"}, {"name": "module", "value": "'用户管理'"}, {"name": "api", "value": "'添加用户'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/user/v1/user/addUser'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'id': '', 'account': 'testAddUser', 'address': '', 'email': '', 'fullname': '测试添加的用户', 'mobile': '', 'password': '123456', 'photo': '', 'sex': '', 'status': 1}"}, {"name": "expect_data", "value": "{'state': True, 'message': '用户添加成功!'}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_data", "value": "'delete from uc_user where ACCOUNT_=\"testAddUser\";'"}, {"name": "update_key", "value": "None"}], "start": 1731224907690, "stop": 1731224907763, "uuid": "a60992c9-9e8b-4442-a4e3-077adb8c8b56", "historyId": "7d7d78fb8b4eff103011d131874f9c4b", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "用户管理"}, {"name": "story", "value": "添加用户"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM_张三"}, {"name": "parentSuite", "value": "test_case.test_zs"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "6acd6792-0e97-4c6d-b4ef-c9c76cdd883c", "befores": [{"name": "case_data", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906884}
\ No newline at end of file
{"uuid": "96cb6d82-c400-4e1e-baca-7ff758a7748c", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907600}
\ No newline at end of file
{"uuid": "81ce0097-c835-42f5-b7cb-8cd20b3f6a21", "befores": [{"name": "title", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906823}
\ No newline at end of file
{"uuid": "e64ce953-0a2a-40a1-993e-da252f9d245c", "befores": [{"name": "url", "status": "passed", "start": 1731224906306, "stop": 1731224906306}], "start": 1731224906306, "stop": 1731224906346}
\ No newline at end of file
{"uuid": "1d10de13-4194-4311-963d-f949f187987a", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224906306, "stop": 1731224906306}], "start": 1731224906306, "stop": 1731224906344}
\ No newline at end of file
{"uuid": "5e4d397d-9058-4eb5-8e74-f971b0d70bec", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907690, "stop": 1731224907690}], "start": 1731224907690, "stop": 1731224907771}
\ No newline at end of file
{"uuid": "29fb020f-9751-413a-8755-061cbde1a329", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906817}
\ No newline at end of file
{"uuid": "5c0d6235-e701-4efd-a71b-819b7e37e3b9", "befores": [{"name": "method", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906821}
\ No newline at end of file
{"uuid": "6c83f267-f796-49c5-8f7a-4dffbaad6dda", "befores": [{"name": "api", "status": "passed", "start": 1731224907796, "stop": 1731224907796}], "start": 1731224907796, "stop": 1731224907840}
\ No newline at end of file
{"uuid": "49fc32ad-4b10-4ab0-9ac7-709a1fd7c565", "befores": [{"name": "title", "status": "passed", "start": 1731224907226, "stop": 1731224907226}], "start": 1731224907226, "stop": 1731224907271}
\ No newline at end of file
{"uuid": "788a9042-f69d-4d58-a201-a2c986fa888d", "befores": [{"name": "api", "status": "passed", "start": 1731224907690, "stop": 1731224907690}], "start": 1731224907688, "stop": 1731224907790}
\ No newline at end of file
{"uuid": "0919baf8-656f-4544-b60d-a0759732c1f9", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907633, "stop": 1731224907633}], "start": 1731224907633, "stop": 1731224907686}
\ No newline at end of file
{"uuid": "28cdcf70-8b0f-4c0f-af7d-b42fc11ec5e4", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907227, "stop": 1731224907227}], "start": 1731224907227, "stop": 1731224907266}
\ No newline at end of file
{"uuid": "e3b23b13-1e07-4290-8600-08910a5dfbf1", "befores": [{"name": "case_id", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224907003}
\ No newline at end of file
{"uuid": "fbb88bd3-4728-491f-ae97-48559e6e9dd4", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907844, "stop": 1731224907844}], "start": 1731224907844, "stop": 1731224907924}
\ No newline at end of file
{"name": "反向用例-用户名正确-密码过长", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{\"state\":false,\"message\":\"解密密码异常,请检查RSA公钥和私钥配置\",\"code\":200,\"logId\":\"1855517125125971968\"}", "trace": "self = <MyApiAutoTest_v3_3.test_case.test_demo.test_bpm.TestBPM object at 0x000001845E42A4E0>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, case_id = 'T003', module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码过长', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEj...LfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE=', 'username': 'admin'}\nexpect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_demo\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert '解密密码异常,请检查RSA公钥和私钥配置' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 解密密码异常,请检查RSA公钥和私钥配置\n\ntest_case\\test_demo\\test_bpm.py:36: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <MyApiAutoTest_v3_3.test_case.test_demo.test_bpm.TestBPM object at 0x000001845E42A4E0>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, case_id = 'T003', module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码过长', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEj...LfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE=', 'username': 'admin'}\nexpect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_demo\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except AssertionError:\n logor.error(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\nE AssertionError: 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{\"state\":false,\"message\":\"解密密码异常,请检查RSA公钥和私钥配置\",\"code\":200,\"logId\":\"1855517125125971968\"}\n\ntest_case\\test_demo\\test_bpm.py:39: AssertionError"}, "attachments": [{"name": "log", "source": "ae918bd3-b573-4a74-be6e-8fb420fbb21c-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T003'"}, {"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名正确-密码过长'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224906790, "stop": 1731224906809, "uuid": "4df3d3f7-71d8-4805-8c94-18290bd84d93", "historyId": "f113bde1b9e64b7560197c25580bc705", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_demo"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "fd09c913-0570-45fe-bb22-3f1c4cd9774c", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907845, "stop": 1731224907845}], "start": 1731224907845, "stop": 1731224907918}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "1df35848-3619-499b-a8e3-aaef1afa89b4-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T15'"}, {"name": "module", "value": "'组织管理'"}, {"name": "api", "value": "'添加组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/addOrg'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'code': 'testAddOrg', 'demId': '需要更新', 'exceedLimitNum': 0, 'grade': '', 'limitNum': 0, 'name': '测试添加的组织', 'nowNum': 0, 'orderNo': 0, 'parentId': '0'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加组织成功!'}"}, {"name": "sql_type", "value": "'select|delete'"}, {"name": "sql_data", "value": "{'delete': 'delete from uc_org where CODE_=\"testAddOrg\";', 'select': 'SELECT ID_ FROM uc_demension WHERE CODE_=\"testAddDem\";'}"}, {"name": "update_key", "value": "'demId'"}], "start": 1731224907528, "stop": 1731224907589, "uuid": "a66ee57d-2c37-4efb-88a6-4a371c9b913a", "historyId": "45592bfb3b2f0c6bce8b183ef4959ec1", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "添加组织"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM_张三"}, {"name": "parentSuite", "value": "test_case.test_zs"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, 'post', 'http://36.139.193.99:8088/api/org/v1/orgParam/saveOrgParams', 'query|json', {'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]}, None, None, None)或{}
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'query': {'orgCode': 'testAddOrg'}, 'body': [{'alias': 'sz', 'value': 1}]},期望数据为:{'state': True, 'message': '保存组织参数成功!'}, 服务器返回的数据为:{"state":false,"message":"Required String parameter 'orgCode' is not present","code":200,"logId":"1855517128653381632"}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, 'get', 'http://36.139.193.99:8088/refresh', None, None, None, None, None)或{}
INFO  root:test_bpm.py:41 断言成功,用例数据为:None,期望数据为:{'loginStatus': True}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzEzMTExMzEsImlhdCI6MTczMTIyNDczMX0.txK-xYU0Ei7SSB6OoaxEEBa_gbB99COH72g_1XeUNSyyGc_6Tt0wfp40xCV_8a0ZHhCKAJcdrFTMNSt5YieEVQ","username":"admin","account":"admin","userId":"","expiration":86400,"loginStatus":true}
\ No newline at end of file
{"uuid": "bcd8c166-b41f-4f3c-9182-bcf048060a52", "befores": [{"name": "url", "status": "passed", "start": 1731224907439, "stop": 1731224907439}], "start": 1731224907439, "stop": 1731224907478}
\ No newline at end of file
{"uuid": "029376bc-ec26-474b-a252-37b7864a1c0e", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907797, "stop": 1731224907797}], "start": 1731224907797, "stop": 1731224907835}
\ No newline at end of file
{"uuid": "50cc4480-ebfb-4fc4-b0a6-00723e7d49f3", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907007, "stop": 1731224907007}], "start": 1731224907007, "stop": 1731224907043}
\ No newline at end of file
{"uuid": "4ebb9ded-3a9a-4d44-ab84-08f0b19ba4f9", "befores": [{"name": "url", "status": "passed", "start": 1731224907107, "stop": 1731224907107}], "start": 1731224907107, "stop": 1731224907145}
\ No newline at end of file
{"uuid": "3260dbd2-679f-42e2-9124-30e45779d302", "befores": [{"name": "mime", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907603}
\ No newline at end of file
{"uuid": "d84bd6f6-6c35-4173-af76-a7234eaf77d4", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907593}
\ No newline at end of file
{"uuid": "c20603f2-a29c-47c8-8e74-50f4cd4003f9", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907440, "stop": 1731224907440}], "start": 1731224907440, "stop": 1731224907472}
\ No newline at end of file
{"uuid": "5135e31e-ba61-44a3-95e4-492fd4492b9f", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907845, "stop": 1731224907845}], "start": 1731224907845, "stop": 1731224907917}
\ No newline at end of file
{"uuid": "94293513-ab81-4033-a607-52ef1175cff2", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907845, "stop": 1731224907845}], "start": 1731224907845, "stop": 1731224907918}
\ No newline at end of file
{"uuid": "1c108b80-5079-4c13-9369-815cbb85a078", "befores": [{"name": "mime", "status": "passed", "start": 1731224907796, "stop": 1731224907796}], "start": 1731224907796, "stop": 1731224907836}
\ No newline at end of file
{"uuid": "258a66ee-4f56-48ae-a8e7-a5ac07965528", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907153, "stop": 1731224907153}], "start": 1731224907153, "stop": 1731224907193}
\ No newline at end of file
{"uuid": "93de7415-f781-4553-a420-6e28c18a3245", "befores": [{"name": "level", "status": "passed", "start": 1731224907226, "stop": 1731224907226}], "start": 1731224907226, "stop": 1731224907271}
\ No newline at end of file
{"uuid": "11508890-be9d-47b5-94c3-fd228d3e0481", "befores": [{"name": "api", "status": "passed", "start": 1731224906305, "stop": 1731224906305}], "start": 1731224906305, "stop": 1731224906349}
\ No newline at end of file
{"uuid": "b9a8767f-73e0-41d6-abf9-8d8dc00ddf65", "befores": [{"name": "module", "status": "passed", "start": 1731224907107, "stop": 1731224907107}], "start": 1731224907107, "stop": 1731224907148}
\ No newline at end of file
{"uuid": "1c948201-c084-4299-b761-7b023e237bac", "befores": [{"name": "level", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906785}
\ No newline at end of file
{"uuid": "691629c2-06a1-4f35-a44e-cf4fe89dd3cc", "befores": [{"name": "title", "status": "passed", "start": 1731224907006, "stop": 1731224907006}], "start": 1731224907006, "stop": 1731224907049}
\ No newline at end of file
{"uuid": "9ccd0f99-4ae9-4906-950c-194125e0cf95", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907602}
\ No newline at end of file
{"uuid": "43d80c16-b20c-4d4d-bf9d-e83651c89fac", "befores": [{"name": "url", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224906999}
\ No newline at end of file
{"uuid": "dfdb9ee1-27d5-41b2-ab2a-d61de03fde08", "befores": [{"name": "api", "status": "passed", "start": 1731224907439, "stop": 1731224907439}], "start": 1731224907439, "stop": 1731224907481}
\ No newline at end of file
{"uuid": "a52ae480-fc82-454d-a8e7-bea12a11d32c", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907375, "stop": 1731224907375}], "start": 1731224907375, "stop": 1731224907428}
\ No newline at end of file
{"uuid": "f5f7be18-2631-43f0-8a38-ef4db1d91c14", "befores": [{"name": "level", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906946}
\ No newline at end of file
{"uuid": "1615f60e-e667-4381-aaa8-67e99c4dd9cd", "befores": [{"name": "method", "status": "passed", "start": 1731224907796, "stop": 1731224907796}], "start": 1731224907796, "stop": 1731224907837}
\ No newline at end of file
{"uuid": "22df6b82-3180-42b0-8180-e7634972334d", "befores": [{"name": "level", "status": "passed", "start": 1731224907107, "stop": 1731224907107}], "start": 1731224907107, "stop": 1731224907147}
\ No newline at end of file
{"uuid": "fa7f13f8-609a-4fc8-bdf1-221e37071d99", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907098}
\ No newline at end of file
{"uuid": "1d43a697-4f2c-4479-b0cc-31cb44207211", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907153, "stop": 1731224907153}], "start": 1731224907153, "stop": 1731224907197}
\ No newline at end of file
{"uuid": "a5b2fd2a-3b25-4df5-acb4-601f516d1eb8", "befores": [{"name": "mime", "status": "passed", "start": 1731224907153, "stop": 1731224907153}], "start": 1731224907153, "stop": 1731224907209}
\ No newline at end of file
{"uuid": "e4206b49-2e23-4a56-ab50-4938c7779f34", "befores": [{"name": "update_key", "status": "passed", "start": 1731224906306, "stop": 1731224906306}], "start": 1731224906306, "stop": 1731224906341}
\ No newline at end of file
{"uuid": "98559001-a943-4995-936e-c59317aeb02e", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907515}
\ No newline at end of file
{"uuid": "c9c3bfb9-2172-42c5-ba6e-7e690ae6b181", "befores": [{"name": "method", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224906999}
\ No newline at end of file
{"uuid": "4e9c3eb4-3488-42d5-ad60-a1f5b1016972", "befores": [{"name": "url", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906783}
\ No newline at end of file
{"uuid": "14d52286-518f-442a-8ede-d477b551c075", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907611, "stop": 1731224907611}], "start": 1731224907611, "stop": 1731224907622}
\ No newline at end of file
{"uuid": "6d7bcd5e-7637-4d53-b050-bef31f38fb7c", "befores": [{"name": "title", "status": "passed", "start": 1731224906305, "stop": 1731224906305}], "start": 1731224906305, "stop": 1731224906349}
\ No newline at end of file
{"uuid": "5011d2be-189e-4ddc-91ef-9aeea5bd4181", "befores": [{"name": "title", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906888}
\ No newline at end of file
{"uuid": "f538197b-bb8a-409f-9ae3-cdcd531e5825", "befores": [{"name": "module", "status": "passed", "start": 1731224907611, "stop": 1731224907611}], "start": 1731224907611, "stop": 1731224907628}
\ No newline at end of file
{"uuid": "3337ce24-837e-4716-ba2a-5a11a5390c93", "children": ["19f6f33b-9b89-4443-93cf-da97bcf92bac", "91af28f1-0917-49b6-99a7-a7936693b813", "4df3d3f7-71d8-4805-8c94-18290bd84d93", "f13c7574-90e0-42bf-af4f-a7fe6acb1850", "55b765ec-4b87-4a97-aa3e-3bcba0c9c812", "681ad714-02ca-4889-9434-a5db3b48e34d", "72fbae52-01c1-42d0-8ba4-f452173b180b", "cdc03c49-28ad-47e4-bded-41ff3e0e6938", "09a8ce4c-f0b4-41ed-8be5-f3185fea0c05", "1fb213ba-7ea2-4a28-b2af-390dfe51e1a6", "00af9398-bb1b-4cc5-828c-828818cb267f"], "befores": [{"name": "req_fix", "status": "passed", "start": 1731224906214, "stop": 1731224906305}], "afters": [{"name": "req_fix::0", "status": "passed", "start": 1731224907925, "stop": 1731224907925}], "start": 1731224906214, "stop": 1731224907925}
\ No newline at end of file
{"uuid": "3b393836-0bf2-41a7-b887-da3182f979e5", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907690, "stop": 1731224907690}], "start": 1731224907690, "stop": 1731224907768}
\ No newline at end of file
{"uuid": "09e09085-30a5-4fe1-b247-3f304a3d7317", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907107, "stop": 1731224907107}], "start": 1731224907107, "stop": 1731224907144}
\ No newline at end of file
{"uuid": "a3d6dc37-44e0-4d19-84c5-04fe2a75725c", "befores": [{"name": "mime", "status": "passed", "start": 1731224907226, "stop": 1731224907226}], "start": 1731224907226, "stop": 1731224907268}
\ No newline at end of file
{"uuid": "6c1997a2-464d-4140-ae63-4d00b069d2dc", "befores": [{"name": "method", "status": "passed", "start": 1731224907153, "stop": 1731224907153}], "start": 1731224907153, "stop": 1731224907214}
\ No newline at end of file
{"uuid": "dcba5461-e077-4665-be02-55c3d7de9922", "befores": [{"name": "url", "status": "passed", "start": 1731224907634, "stop": 1731224907634}], "start": 1731224907634, "stop": 1731224907682}
\ No newline at end of file
{"uuid": "29fa0d89-4d46-4c54-8e49-8ab4e3995ec2", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907440, "stop": 1731224907440}], "start": 1731224907440, "stop": 1731224907473}
\ No newline at end of file
{"uuid": "9d374192-e99f-4f41-8f76-82348c3efe6f", "befores": [{"name": "update_key", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224906995}
\ No newline at end of file
{"uuid": "16dff635-d6e6-44fb-bca1-67cc29ca72d5", "befores": [{"name": "api", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907102}
\ No newline at end of file
{"uuid": "e817a318-d4a7-4d44-930c-c608c9483ff3", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907226, "stop": 1731224907226}], "start": 1731224907226, "stop": 1731224907267}
\ No newline at end of file
{"uuid": "22072a93-1ac9-4ee4-943d-b374a161350b", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907227, "stop": 1731224907227}], "start": 1731224907227, "stop": 1731224907266}
\ No newline at end of file
{"uuid": "e1f3e81a-90f4-4ec2-a37f-79d0be052b94", "befores": [{"name": "mime", "status": "passed", "start": 1731224907006, "stop": 1731224907006}], "start": 1731224907006, "stop": 1731224907046}
\ No newline at end of file
{"uuid": "81025c7c-bbad-44fa-a49a-66d4a17ee20c", "befores": [{"name": "update_key", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906938}
\ No newline at end of file
{"uuid": "38ff8c67-1884-4367-bd5a-0c23ae1e1d9f", "befores": [{"name": "mime", "status": "passed", "start": 1731224907634, "stop": 1731224907634}], "start": 1731224907634, "stop": 1731224907682}
\ No newline at end of file
{"uuid": "8e8f6b17-5a6f-4c89-8f92-a9a32ef69d1b", "befores": [{"name": "method", "status": "passed", "start": 1731224907844, "stop": 1731224907845}], "start": 1731224907844, "stop": 1731224907920}
\ No newline at end of file
{"uuid": "648d3c0a-a895-4abe-944f-1113597b3f09", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907152, "stop": 1731224907152}], "start": 1731224907152, "stop": 1731224907221}
\ No newline at end of file
{"uuid": "576c8e2a-7022-47ed-ad24-d1529f8c6047", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907006, "stop": 1731224907006}], "start": 1731224907006, "stop": 1731224907044}
\ No newline at end of file
{"uuid": "f718872d-61d3-4d86-96f2-8b763de9333f", "befores": [{"name": "method", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907519}
\ No newline at end of file
{"uuid": "4bcdcb1f-82d7-431a-aff6-5faae4c0204f", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907107, "stop": 1731224907108}], "start": 1731224907107, "stop": 1731224907144}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, 'post', 'http://36.139.193.99:8088/auth', 'application/json', {'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}, None, None, None)或{}
INFO  root:test_bpm.py:41 断言成功,用例数据为:{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1855517126522675200"}
\ No newline at end of file
{"uuid": "9cbd5fd8-1103-4af6-b26b-43a37cdf1ed7", "befores": [{"name": "method", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907604}
\ No newline at end of file
{"uuid": "5bddc074-5db8-42c8-85e5-228950a2d3da", "befores": [{"name": "case_id", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906891}
\ No newline at end of file
{"uuid": "cb19c1fa-9402-46ee-ac6d-014299dd8dd7", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907006, "stop": 1731224907006}], "start": 1731224907006, "stop": 1731224907045}
\ No newline at end of file
{"uuid": "d1217e99-9cc4-4480-bc6d-96becad928e1", "befores": [{"name": "module", "status": "passed", "start": 1731224907844, "stop": 1731224907844}], "start": 1731224907844, "stop": 1731224907923}
\ No newline at end of file
{"uuid": "895d05d0-9596-46b6-8b2d-b2a0d966dbe1", "befores": [{"name": "url", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906886}
\ No newline at end of file
{"uuid": "a6e9ddcd-8fdf-416c-9e36-3cb141619bc3", "befores": [{"name": "module", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907103}
\ No newline at end of file
{"uuid": "5c77221a-6382-41bd-bb0d-f2b320a129b7", "befores": [{"name": "title", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907606}
\ No newline at end of file
{"uuid": "e2cfb1ad-9018-476a-9246-b46765dde578", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907153, "stop": 1731224907153}], "start": 1731224907153, "stop": 1731224907201}
\ No newline at end of file
{"uuid": "2628f790-a446-4ccc-8ac9-bd767ab93781", "befores": [{"name": "api", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906948}
\ No newline at end of file
{"uuid": "5d96112e-a32b-4a0a-a536-3987497b7e3d", "befores": [{"name": "title", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224907000}
\ No newline at end of file
{"uuid": "6339715c-82f0-4098-bc6e-286658ce5bb0", "befores": [{"name": "api", "status": "passed", "start": 1731224907226, "stop": 1731224907226}], "start": 1731224907226, "stop": 1731224907272}
\ No newline at end of file
{"uuid": "f1bebe60-eff5-4215-ac34-0b47e16b7267", "befores": [{"name": "module", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906786}
\ No newline at end of file
{"uuid": "24276753-9e9c-4657-a194-02e80998ff04", "befores": [{"name": "title", "status": "passed", "start": 1731224907633, "stop": 1731224907633}], "start": 1731224907633, "stop": 1731224907684}
\ No newline at end of file
{"uuid": "f82414b1-eac4-428b-b9f4-5e4a438d0d90", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907096}
\ No newline at end of file
{"uuid": "efdd4643-c0cc-4ab1-a601-cdbc7299c969", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907373, "stop": 1731224907373}], "start": 1731224907373, "stop": 1731224907436}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, 'DELETE', 'http://36.139.193.99:8088/api/demension/v1/dem/deleteDemByIds', 'query', {'ids': '需要更新'}, 'select', 'SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";', 'ids')或{}
INFO  root:__init__.py:46 执行的功能为:select, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\db.py, 所在的行为:45行,形参的值为:(<MyApiAutoTest_v3_3.common.db.DB object at 0x000001845E4F68D0>, 'SELECT ID_ FROM uc_demension WHERE CODE_="testAddDem";')或{}
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'ids': '1855517127655137280'},期望数据为:{'state': True, 'message': '删除维度成功!'}, 服务器返回的数据为:{"state":false,"message":"【测试添加的维度(testAddDem)】的维度下存在组织,不允许删除 ","value":"","code":200}
\ No newline at end of file
{"uuid": "1a334c6b-8142-4b79-9477-fd95064de188", "befores": [{"name": "level", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906887}
\ No newline at end of file
{"name": "正向用例", "status": "broken", "statusDetails": {"message": "ValueError: 方法:request_all,传入的媒体类型为:x-www-form-urlencoded, 没有符合的判断分支,可以自行封装,也可以继承之后覆盖", "trace": "self = <MyApiAutoTest_v3_3.test_case.test_zs.test_bpm.TestBPM object at 0x000001845E46DCD0>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, case_id = 'T16', module = '组织管理', api = '删除组织', title = '正向用例'\nlevel = '中', method = 'post', url = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg', mime = 'x-www-form-urlencoded', case_data = 'testAddOrg'\nexpect_data = {'message': '删除组织成功!', 'state': True}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_张三\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n> res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n\ntest_case\\test_zs\\test_bpm.py:33: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n__init__.py:53: in inner\n raise e\n__init__.py:48: in inner\n result = func_name(*args, **kwargs)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, method = 'post'\nurl = 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg', mime = 'x-www-form-urlencoded', case_data = 'testAddOrg', sql_type = None, sql_data = None, update_key = None\n\n @log\n def request_all(self, method, url, mime=None, case_data=None, sql_type=None, sql_data=None, update_key=None):\n if sql_type == \"delete\":\n self.db.delete(sql_data)\n elif sql_type == \"select\":\n select_result = self.db.select(sql_data)\n case_data[update_key] = select_result\n elif sql_type == \"select|delete\" or sql_type == \"delete|select\":\n # 执行删除语句\n self.db.delete(sql_data[\"delete\"])\n # 执行查询语句\n select_result = self.db.select(sql_data[\"select\"])\n case_data[update_key] = select_result\n \n # 根据请求的媒体类型发送请求\n # 发送的数据为json数据\n if mime == \"json\" or mime == \"application/json\":\n return self.session.request(method, url, json=case_data)\n # 发送的数据为文件\n elif mime == \"multipart/form-data\" or mime == \"form-data\":\n return self.session.request(method, url, files=case_data)\n # 通过URL传参\n elif mime == \"query\":\n return self.session.request(method, url, params=case_data)\n # 不传参\n elif mime is None:\n return self.session.request(method, url)\n # 需要同时传参\n elif mime == \"query|json\" or mime == \"json|query\":\n return self.session.request(method, url, json=case_data, params=case_data)\n # 都不是,抛出错误\n else:\n> raise ValueError(f\"方法:request_all,传入的媒体类型为:{mime}, 没有符合的判断分支,可以自行封装,也可以继承之后覆盖\")\nE ValueError: 方法:request_all,传入的媒体类型为:x-www-form-urlencoded, 没有符合的判断分支,可以自行封装,也可以继承之后覆盖\n\nrequests_method\\requests_method.py:63: ValueError"}, "attachments": [{"name": "log", "source": "e2ecabdf-d6f8-4acd-9afe-1fec9045e20d-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T16'"}, {"name": "module", "value": "'组织管理'"}, {"name": "api", "value": "'删除组织'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/org/v1/org/deleteOrg'"}, {"name": "mime", "value": "'x-www-form-urlencoded'"}, {"name": "case_data", "value": "'testAddOrg'"}, {"name": "expect_data", "value": "{'state': True, 'message': '删除组织成功!'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224907612, "stop": 1731224907612, "uuid": "6804c6a6-86e5-4d6b-93c6-dcbf08750f2b", "historyId": "69af0bd69ed14cf779d192406f1531bc", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "组织管理"}, {"name": "story", "value": "删除组织"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_张三"}, {"name": "parentSuite", "value": "test_case.test_zs"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
{"uuid": "77c9e2d8-fef5-4ce9-bd6c-cce3ac0da9d9", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907375, "stop": 1731224907375}], "start": 1731224907375, "stop": 1731224907430}
\ No newline at end of file
{"uuid": "36de2e2a-fd1b-4ab6-9d14-35447963e401", "befores": [{"name": "url", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907100}
\ No newline at end of file
{"uuid": "709a7bc0-bb57-4237-8081-02cdc2e16ccf", "befores": [{"name": "url", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906944}
\ No newline at end of file
{"uuid": "0261a53a-aaab-4ecd-8751-495e110cc058", "befores": [{"name": "module", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906824}
\ No newline at end of file
{"uuid": "392a194c-101e-460e-9f07-90891acdaebf", "befores": [{"name": "mime", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224906998}
\ No newline at end of file
{"uuid": "34d17b6a-cef1-4e73-bbc0-7b51194418dc", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907226, "stop": 1731224907226}], "start": 1731224907226, "stop": 1731224907274}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:get_sql_connect, 功能描述为:根据key获取数据库连接信息, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:29行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E4F62D0>, 'host')或{}
INFO  root:__init__.py:46 执行的功能为:get_sql_connect, 功能描述为:根据key获取数据库连接信息, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:29行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E4F62D0>, 'port')或{}
INFO  root:__init__.py:46 执行的功能为:get_sql_connect, 功能描述为:根据key获取数据库连接信息, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:29行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E4F62D0>, 'username')或{}
INFO  root:__init__.py:46 执行的功能为:get_sql_connect, 功能描述为:根据key获取数据库连接信息, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:29行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E4F62D0>, 'password')或{}
INFO  root:__init__.py:46 执行的功能为:get_sql_connect, 功能描述为:根据key获取数据库连接信息, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:29行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E4F62D0>, 'database')或{}
INFO  root:__init__.py:46 执行的功能为:get_host, 功能描述为:根据key获取域名, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\read_basic_ini.py, 所在的行为:24行,形参的值为:(<MyApiAutoTest_v3_3.common.read_basic_ini.ReadBasicIni object at 0x000001845E46F650>, 'bpm')或{}
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, 'post', 'http://36.139.193.99:8088/api/demension/v1/dem/addDem', 'json', {'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}, 'delete', 'DELETE FROM uc_demension WHERE CODE_="testAddDem";', None)或{}
INFO  root:__init__.py:46 执行的功能为:delete, 功能描述为:执行删除的sql语句, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\common\db.py, 所在的行为:33行,形参的值为:(<MyApiAutoTest_v3_3.common.db.DB object at 0x000001845E4F68D0>, 'DELETE FROM uc_demension WHERE CODE_="testAddDem";')或{}
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'},期望数据为:{'state': True, 'message': '添加维度成功!'}, 服务器返回的数据为:{"state":true,"message":"添加维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "fc41b8c8-6174-473a-a5e5-45bd3bae0314", "befores": [{"name": "method", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906886}
\ No newline at end of file
{"uuid": "ed8681c0-84f9-43fa-b2b4-82baf32bf1d9", "befores": [{"name": "url", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906821}
\ No newline at end of file
{"uuid": "c16363e6-1b0a-47e9-9488-a37560605149", "befores": [{"name": "mime", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906783}
\ No newline at end of file
{"uuid": "44ecf678-5a01-43a4-9ff0-2fea5018fd42", "befores": [{"name": "level", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906822}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, 'post', 'http://36.139.193.99:8088/auth', 'application/json', {'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}, None, None, None)或{}
INFO  root:test_bpm.py:41 断言成功,用例数据为:{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1855517126711418880"}
\ No newline at end of file
{"uuid": "8273cbd0-5b2f-4edb-884a-2d9dd1bf73f7", "befores": [{"name": "method", "status": "passed", "start": 1731224907690, "stop": 1731224907690}], "start": 1731224907690, "stop": 1731224907786}
\ No newline at end of file
{"uuid": "54d3e3b5-8f06-4d1d-a0dd-eeb41858d4cf", "befores": [{"name": "level", "status": "passed", "start": 1731224906305, "stop": 1731224906305}], "start": 1731224906305, "stop": 1731224906347}
\ No newline at end of file
{"uuid": "8cd9ee44-fac8-4b89-8653-26ae9763a358", "befores": [{"name": "url", "status": "passed", "start": 1731224907226, "stop": 1731224907226}], "start": 1731224907226, "stop": 1731224907269}
\ No newline at end of file
{"uuid": "dbd2dd77-1218-4fad-879c-d763ede6b838", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907099}
\ No newline at end of file
{"uuid": "52301441-ad97-43a2-8196-4cbfc4ee4462", "children": ["ba0960d7-b425-45a2-a391-c9fab6d57f0f", "a7dd2070-c231-4a18-8d0f-e0c1abe997b9", "8b6752d4-06e7-4a25-98e3-2ff1088ab0a5", "a66ee57d-2c37-4efb-88a6-4a371c9b913a", "6804c6a6-86e5-4d6b-93c6-dcbf08750f2b", "8ead9ee3-1dc8-4bb4-af95-43b519c6a5bc", "a60992c9-9e8b-4442-a4e3-077adb8c8b56", "2541793e-841c-4bb9-9a48-0125539478d6", "625eed2c-7c72-4e9e-a3d2-369dd90d643a"], "befores": [{"name": "req_fix", "status": "passed", "start": 1731224907279, "stop": 1731224907372}], "afters": [{"name": "req_fix::0", "status": "passed", "start": 1731224907924, "stop": 1731224907924}], "start": 1731224907279, "stop": 1731224907924}
\ No newline at end of file
{"uuid": "4940be2b-a5dc-4a51-aa5a-e17281b37ab8", "befores": [{"name": "module", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906948}
\ No newline at end of file
{"uuid": "eb3efad9-72f8-44f1-87ed-4f6f44a4b7e1", "befores": [{"name": "mime", "status": "passed", "start": 1731224907690, "stop": 1731224907690}], "start": 1731224907690, "stop": 1731224907780}
\ No newline at end of file
{"uuid": "180c49ae-1d16-418d-843e-d3b7bca4bab1", "befores": [{"name": "url", "status": "passed", "start": 1731224907006, "stop": 1731224907006}], "start": 1731224907006, "stop": 1731224907047}
\ No newline at end of file
{"uuid": "3a650d03-9513-491e-9df9-f11f0e6edab9", "befores": [{"name": "title", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907521}
\ No newline at end of file
{"uuid": "e6d33317-d63b-4105-851f-605a52fc3487", "befores": [{"name": "level", "status": "passed", "start": 1731224907844, "stop": 1731224907844}], "start": 1731224907844, "stop": 1731224907921}
\ No newline at end of file
{"uuid": "dccb80d5-2231-4f03-83fe-00a858000978", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907517}
\ No newline at end of file
{"uuid": "bcbeea3b-7241-4b94-917d-30d117f53e51", "befores": [{"name": "update_key", "status": "passed", "start": 1731224906830, "stop": 1731224906830}], "start": 1731224906830, "stop": 1731224906880}
\ No newline at end of file
{"uuid": "ef70a15c-1273-4afb-bfdc-e317f7922779", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907634, "stop": 1731224907634}], "start": 1731224907634, "stop": 1731224907681}
\ No newline at end of file
{"uuid": "7fba1397-a9b3-443b-b532-8d2b4b9d0be5", "befores": [{"name": "module", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224907002}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, 'DELETE', 'http://36.139.193.99:8088/api/demension/v2/dem/deleteDemByIds', 'query', {'ids': ''}, None, None, None)或{}
ERROR  root:test_bpm.py:39 断言失败,用例数据为:{'ids': ''},期望数据为:{'state': False, 'message': '维度id不能为空!'}, 服务器返回的数据为:{"state":false,"message":"删除维度失败,维度ids必填","code":200,"logId":"1855517129550962688"}
\ No newline at end of file
{"uuid": "b5ef564e-9b84-4074-81f2-dfbf9fc70596", "befores": [{"name": "mime", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906944}
\ No newline at end of file
{"uuid": "f36205eb-7747-4dbe-b8eb-06a032ebf8b3", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907524}
\ No newline at end of file
{"uuid": "979f6de3-4e05-4c95-a93b-4cf8f359a981", "befores": [{"name": "title", "status": "passed", "start": 1731224907373, "stop": 1731224907374}], "start": 1731224907373, "stop": 1731224907434}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "9580f2cf-6e43-4d44-b79f-d40cf83abc95-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T11'"}, {"name": "module", "value": "'维度管理'"}, {"name": "api", "value": "'添加维度'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/api/demension/v1/dem/addDem'"}, {"name": "mime", "value": "'json'"}, {"name": "case_data", "value": "{'code': 'testAddDem', 'description': 'testAddDem', 'isDefault': 0, 'name': 'testAddDem'}"}, {"name": "expect_data", "value": "{'state': True, 'message': '添加维度成功!'}"}, {"name": "sql_type", "value": "'delete'"}, {"name": "sql_data", "value": "'DELETE FROM uc_demension WHERE CODE_=\"testAddDem\";'"}, {"name": "update_key", "value": "None"}], "start": 1731224907377, "stop": 1731224907425, "uuid": "ba0960d7-b425-45a2-a391-c9fab6d57f0f", "historyId": "b06c951d4f2fdd7dc1a5686b0f444aad", "testCaseId": "d417f835dc1c783689c0cac5e3ed50b5", "fullName": "test_case.test_zs.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "维度管理"}, {"name": "story", "value": "添加维度"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM_张三"}, {"name": "parentSuite", "value": "test_case.test_zs"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_zs.test_bpm"}]}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, 'post', 'http://36.139.193.99:8088/auth', 'application/json', {'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'}, None, None, None)或{}
ERROR  root:test_bpm.py:38 断言失败,用例数据为:{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1855517125629288448"}
\ No newline at end of file
{"uuid": "6d102f3c-3606-481c-9abe-53a6d503df5c", "befores": [{"name": "mime", "status": "passed", "start": 1731224907845, "stop": 1731224907845}], "start": 1731224907845, "stop": 1731224907919}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, 'post', 'http://36.139.193.99:8088/auth', 'application/json', {'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'}, None, None, None)或{}
ERROR  root:test_bpm.py:38 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzEzMTExMzAsImlhdCI6MTczMTIyNDczMH0.nujtbsNRmxSXDP6PJ6dm6GmIZU7vY4kvjzeJ1sjh8mMRliOmtcsr39RJ2VL4vibY7iyZNci0GN0pEdy9ICBmFw","username":"超级管理员","account":"admin","userId":"1","expiration":86400,"loginStatus":true,"userAttrs":{"tenantId":"-1"}}
\ No newline at end of file
{"uuid": "b424ddf8-0088-4370-811a-68c9fecec7fd", "befores": [{"name": "method", "status": "passed", "start": 1731224907439, "stop": 1731224907439}], "start": 1731224907439, "stop": 1731224907479}
\ No newline at end of file
{"uuid": "66553d57-964f-4cd5-96ab-fce765554bd1", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907097}
\ No newline at end of file
{"uuid": "8f1a1497-0a43-4200-94d8-9db32d169720", "befores": [{"name": "mime", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906885}
\ No newline at end of file
{"uuid": "3590528f-075c-4dfc-855c-c7e202073211", "befores": [{"name": "method", "status": "passed", "start": 1731224907107, "stop": 1731224907107}], "start": 1731224907107, "stop": 1731224907147}
\ No newline at end of file
{"uuid": "99602392-14fe-4ec4-ba85-0230911989bc", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907108, "stop": 1731224907108}], "start": 1731224907108, "stop": 1731224907143}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, 'post', 'http://36.139.193.99:8088/auth', 'application/json', {'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='}, None, None, None)或{}
ERROR  root:test_bpm.py:38 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcwlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdcPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"解密密码异常,请检查RSA公钥和私钥配置","code":200,"logId":"1855517125125971968"}
\ No newline at end of file
{"uuid": "907813ae-1ec0-4078-a52d-04feda495e6f", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907634, "stop": 1731224907634}], "start": 1731224907634, "stop": 1731224907680}
\ No newline at end of file
{"uuid": "ac5e47c9-3196-474c-b397-b770034eed68", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907596}
\ No newline at end of file
{"uuid": "dfce8317-5f1c-447e-88d8-afb28c17c062", "befores": [{"name": "api", "status": "passed", "start": 1731224907006, "stop": 1731224907006}], "start": 1731224907006, "stop": 1731224907050}
\ No newline at end of file
{"name": "反向用例-用户名正确-密码为特殊字符", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败,用例数据为:{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{\"state\":false,\"message\":\"账号或密码错误\",\"code\":200,\"logId\":\"1855517125629288448\"}", "trace": "self = <MyApiAutoTest_v3_3.test_case.test_demo.test_bpm.TestBPM object at 0x000001845E428E90>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, case_id = 'T005', module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码为特殊字符', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'username': 'admin'}, expect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_demo\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_case\\test_demo\\test_bpm.py:36: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <MyApiAutoTest_v3_3.test_case.test_demo.test_bpm.TestBPM object at 0x000001845E428E90>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, case_id = 'T005', module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码为特殊字符', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'username': 'admin'}, expect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_demo\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except AssertionError:\n logor.error(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\nE AssertionError: 断言失败,用例数据为:{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{\"state\":false,\"message\":\"账号或密码错误\",\"code\":200,\"logId\":\"1855517125629288448\"}\n\ntest_case\\test_demo\\test_bpm.py:39: AssertionError"}, "attachments": [{"name": "log", "source": "a88f993a-3d7e-4c6e-8fb1-4015c5e320e3-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T005'"}, {"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名正确-密码为特殊字符'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': '㊚㊛囍㊒㊖☑✔☐☒✘卍'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224906895, "stop": 1731224906932, "uuid": "55b765ec-4b87-4a97-aa3e-3bcba0c9c812", "historyId": "5b54fc1b7f63783d9155a88280542170", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_demo"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"name": "反向用例-密码正确-用户名过长", "status": "passed", "attachments": [{"name": "log", "source": "7df285bf-8315-4a3f-88e5-0bdd00532725-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T009'"}, {"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码正确-用户名过长'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'adminadminadminadminadminadmin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224907108, "stop": 1731224907141, "uuid": "09a8ce4c-f0b4-41ed-8be5-f3185fea0c05", "historyId": "d6ffe46b175439dde0de98e73817b16c", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_demo"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, 'put', 'http://36.139.193.99:8088/api/demension/v1/dem/setDefaultDem', 'query', {'code': 'testAddDem'}, None, None, None)或{}
INFO  root:test_bpm.py:42 断言成功,用例数据为:{'code': 'testAddDem'},期望数据为:{'state': True, 'message': '设置默认维度成功!'}, 服务器返回的数据为:{"state":true,"message":"设置默认维度成功!","value":"","code":200}
\ No newline at end of file
{"uuid": "362ee07c-2cd5-4906-9cf8-5d11c0010d5a", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906940}
\ No newline at end of file
{"uuid": "45a51784-2cee-4c7c-8777-f283b7b821ec", "befores": [{"name": "api", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906786}
\ No newline at end of file
{"uuid": "47b57c04-03b6-4550-8e18-5600504ce7e7", "befores": [{"name": "title", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906947}
\ No newline at end of file
{"uuid": "e4663d07-7799-4212-8f6b-e281e492aa5b", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907375, "stop": 1731224907375}], "start": 1731224907375, "stop": 1731224907427}
\ No newline at end of file
{"uuid": "b51029dd-57bd-4023-8095-5862c6f62037", "befores": [{"name": "level", "status": "passed", "start": 1731224907633, "stop": 1731224907634}], "start": 1731224907633, "stop": 1731224907684}
\ No newline at end of file
{"uuid": "59be8934-fe6c-4395-81f7-a3264cf9c5cd", "befores": [{"name": "method", "status": "passed", "start": 1731224907226, "stop": 1731224907226}], "start": 1731224907226, "stop": 1731224907270}
\ No newline at end of file
{"uuid": "9506c2e8-8b41-4f52-ac71-016183028473", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907797, "stop": 1731224907797}], "start": 1731224907797, "stop": 1731224907835}
\ No newline at end of file
{"uuid": "cef13d75-8d41-4246-a626-e4aad3e33e5c", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906942}
\ No newline at end of file
{"name": "反向用例-密码正确-用户名为空", "status": "passed", "attachments": [{"name": "log", "source": "f622d994-3df6-4ed3-ade6-0e3004d4c230-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T007'"}, {"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码正确-用户名为空'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'Post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224907007, "stop": 1731224907042, "uuid": "72fbae52-01c1-42d0-8ba4-f452173b180b", "historyId": "3bb71f61df1e33b1390cb3a5adf67125", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_demo"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "f3b9da48-02fe-4ffc-9e67-a26266412b12", "befores": [{"name": "url", "status": "passed", "start": 1731224907796, "stop": 1731224907796}], "start": 1731224907796, "stop": 1731224907837}
\ No newline at end of file
{"uuid": "a494b245-ab7e-4238-84a8-8cb9efc9abda", "befores": [{"name": "method", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906784}
\ No newline at end of file
{"name": "反向用例-密码正确-用户名为特殊字符", "status": "passed", "attachments": [{"name": "log", "source": "99f0e09d-9354-4e30-8da1-22a070146de9-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T010'"}, {"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码正确-用户名为特殊字符'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': '㊚㊛囍㊒㊖☑✔☐☒✘卍', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224907153, "stop": 1731224907192, "uuid": "1fb213ba-7ea2-4a28-b2af-390dfe51e1a6", "historyId": "ca917b83e98db4327bdb638860f07b10", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_demo"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "0b12cb0c-10a5-43be-87d7-65476f57ee0d", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906941}
\ No newline at end of file
{"uuid": "2e044949-b9d5-49a2-8a01-041de568f040", "befores": [{"name": "title", "status": "passed", "start": 1731224907439, "stop": 1731224907439}], "start": 1731224907439, "stop": 1731224907480}
\ No newline at end of file
{"uuid": "c0e09be0-43fc-4b81-b6dc-0595a1a5c2a9", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906780}
\ No newline at end of file
{"uuid": "6289e619-98f8-4821-a7cb-972a10686e14", "befores": [{"name": "module", "status": "passed", "start": 1731224907373, "stop": 1731224907373}], "start": 1731224907373, "stop": 1731224907435}
\ No newline at end of file
{"uuid": "37a8daa1-df7c-4261-92bf-3781ec1c5264", "befores": [{"name": "case_id", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906787}
\ No newline at end of file
{"uuid": "c435175f-d845-4ae6-8d83-5d69854ea3c8", "befores": [{"name": "level", "status": "passed", "start": 1731224907611, "stop": 1731224907611}], "start": 1731224907611, "stop": 1731224907626}
\ No newline at end of file
{"uuid": "f56376f1-1420-4cc3-9cad-6f21f1533508", "befores": [{"name": "level", "status": "passed", "start": 1731224907374, "stop": 1731224907374}], "start": 1731224907374, "stop": 1731224907433}
\ No newline at end of file
{"name": "反向用例-密码正确-用户名过短", "status": "passed", "attachments": [{"name": "log", "source": "e876e118-15e8-4b87-895e-d613a08197bf-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T008'"}, {"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-密码正确-用户名过短'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224907055, "stop": 1731224907096, "uuid": "cdc03c49-28ad-47e4-bded-41ff3e0e6938", "historyId": "494e61fa27e17cb5f6dd716d3d739d58", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_demo"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "73b933aa-ba98-4cfa-9839-7fe5833f3482", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907006, "stop": 1731224907007}], "start": 1731224907006, "stop": 1731224907044}
\ No newline at end of file
{"name": "反向用例-用户名正确-密码过短", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败,用例数据为:{'username': 'admin', 'password': '1'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{\"state\":false,\"message\":\"账号或密码错误\",\"code\":200,\"logId\":\"1855517125377630208\"}", "trace": "self = <MyApiAutoTest_v3_3.test_case.test_demo.test_bpm.TestBPM object at 0x000001845E428320>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, case_id = 'T004', module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码过短', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json', case_data = {'password': '1', 'username': 'admin'}\nexpect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_demo\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert '账号或密码错误' == '账户错误或该租户未启用'\nE \nE - 账户错误或该租户未启用\nE + 账号或密码错误\n\ntest_case\\test_demo\\test_bpm.py:36: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <MyApiAutoTest_v3_3.test_case.test_demo.test_bpm.TestBPM object at 0x000001845E428320>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, case_id = 'T004', module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码过短', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json', case_data = {'password': '1', 'username': 'admin'}\nexpect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_demo\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except AssertionError:\n logor.error(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\nE AssertionError: 断言失败,用例数据为:{'username': 'admin', 'password': '1'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{\"state\":false,\"message\":\"账号或密码错误\",\"code\":200,\"logId\":\"1855517125377630208\"}\n\ntest_case\\test_demo\\test_bpm.py:39: AssertionError"}, "attachments": [{"name": "log", "source": "d02f073d-86e0-4407-9b28-345251e87279-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T004'"}, {"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名正确-密码过短'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': '1'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224906830, "stop": 1731224906873, "uuid": "f13c7574-90e0-42bf-af4f-a7fe6acb1850", "historyId": "f4bbe037835d3f5edafde5bd0d60f40b", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_demo"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "447a0a3f-3d2a-4137-9cbb-c7f5eee45bea", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907845, "stop": 1731224907845}], "start": 1731224907845, "stop": 1731224907915}
\ No newline at end of file
{"uuid": "9cbc1fbb-e382-4349-b5c2-4f2ef8f76788", "befores": [{"name": "mime", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906820}
\ No newline at end of file
{"uuid": "c8d5c92a-e051-4579-b4c5-67d9789facbe", "befores": [{"name": "case_id", "status": "passed", "start": 1731224906789, "stop": 1731224906789}], "start": 1731224906789, "stop": 1731224906825}
\ No newline at end of file
{"uuid": "00d76256-d411-42ab-9dbf-5515e98e6587", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907375, "stop": 1731224907375}], "start": 1731224907375, "stop": 1731224907429}
\ No newline at end of file
{"uuid": "f4305857-fdb4-4d3a-aac2-f46fd014b085", "befores": [{"name": "api", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906824}
\ No newline at end of file
{"uuid": "70f96e3e-7248-4b94-a0a9-46adad897523", "befores": [{"name": "url", "status": "passed", "start": 1731224907374, "stop": 1731224907374}], "start": 1731224907374, "stop": 1731224907431}
\ No newline at end of file
{"uuid": "3a0a4896-b7d5-4e42-b11e-33d3ebe2e4fc", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224906306, "stop": 1731224906306}], "start": 1731224906306, "stop": 1731224906343}
\ No newline at end of file
{"uuid": "18217565-1a36-48cd-9ee2-05551a58d325", "befores": [{"name": "level", "status": "passed", "start": 1731224907006, "stop": 1731224907006}], "start": 1731224907006, "stop": 1731224907048}
\ No newline at end of file
{"uuid": "42b733dc-d823-477c-8d0b-f4a15174ac93", "befores": [{"name": "level", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907520}
\ No newline at end of file
{"uuid": "fd4152d5-9d56-42b0-a3c3-bfaf64993f34", "befores": [{"name": "case_data", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224906998}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, 'post', 'http://36.139.193.99:8088/auth', 'application/json', {'username': 'admin', 'password': '1'}, None, None, None)或{}
ERROR  root:test_bpm.py:38 断言失败,用例数据为:{'username': 'admin', 'password': '1'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账号或密码错误","code":200,"logId":"1855517125377630208"}
\ No newline at end of file
{"uuid": "62e13922-3a06-48bc-8b0d-4f7cb248dc2b", "befores": [{"name": "module", "status": "passed", "start": 1731224907796, "stop": 1731224907796}], "start": 1731224907796, "stop": 1731224907840}
\ No newline at end of file
{"uuid": "f0c7c26e-faaa-4908-b432-244a0e87a361", "befores": [{"name": "case_id", "status": "passed", "start": 1731224906305, "stop": 1731224906305}], "start": 1731224906305, "stop": 1731224906351}
\ No newline at end of file
{"uuid": "b29cc0d0-b111-4658-9048-6a56736b77f7", "befores": [{"name": "method", "status": "passed", "start": 1731224907634, "stop": 1731224907634}], "start": 1731224907634, "stop": 1731224907683}
\ No newline at end of file
{"uuid": "92c5c33a-04b8-4c74-8ec6-5191c26d112a", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907103}
\ No newline at end of file
{"uuid": "32c39f00-acdf-4442-8349-57f0497459c2", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224906829, "stop": 1731224906829}], "start": 1731224906829, "stop": 1731224906883}
\ No newline at end of file
{"uuid": "c363923c-fb0c-4475-9329-f8f8736e16bb", "befores": [{"name": "url", "status": "passed", "start": 1731224907153, "stop": 1731224907153}], "start": 1731224907153, "stop": 1731224907212}
\ No newline at end of file
{"uuid": "22b618a0-7416-4637-9545-4c5b42b3cca4", "befores": [{"name": "case_data", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906943}
\ No newline at end of file
{"uuid": "8ce41574-9b60-4acf-8686-99c2dc3bacfb", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907439, "stop": 1731224907439}], "start": 1731224907439, "stop": 1731224907476}
\ No newline at end of file
{"uuid": "643b6dba-0752-4ee5-b4d6-9a02e2b173d2", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907797, "stop": 1731224907797}], "start": 1731224907797, "stop": 1731224907835}
\ No newline at end of file
{"uuid": "3b081f57-1846-4115-829d-1ff8999d8a36", "befores": [{"name": "module", "status": "passed", "start": 1731224906305, "stop": 1731224906305}], "start": 1731224906305, "stop": 1731224906351}
\ No newline at end of file
{"uuid": "ee8de307-ce8c-4e4f-b762-2239754487bf", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907845, "stop": 1731224907845}], "start": 1731224907845, "stop": 1731224907917}
\ No newline at end of file
{"uuid": "65613caa-03f6-44b3-a95f-a7301a9515d3", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907612, "stop": 1731224907612}], "start": 1731224907612, "stop": 1731224907621}
\ No newline at end of file
{"uuid": "265577be-d3bf-4d85-b944-3a59885e3e5f", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907227, "stop": 1731224907227}], "start": 1731224907227, "stop": 1731224907267}
\ No newline at end of file
{"uuid": "ad1b352c-b811-40e2-9022-672e0a6351fe", "befores": [{"name": "url", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907604}
\ No newline at end of file
{"uuid": "be6260e5-a14b-49ae-a798-3b39a1fcb99f", "befores": [{"name": "case_data", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906819}
\ No newline at end of file
{"name": "正向用例", "status": "passed", "attachments": [{"name": "log", "source": "481b78f7-b239-4cf4-ac51-fb5e1b7a1b57-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T011'"}, {"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'刷新token'"}, {"name": "title", "value": "'正向用例'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'get'"}, {"name": "url", "value": "'http://36.139.193.99:8088/refresh'"}, {"name": "mime", "value": "None"}, {"name": "case_data", "value": "None"}, {"name": "expect_data", "value": "{'loginStatus': True}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224907227, "stop": 1731224907261, "uuid": "00af9398-bb1b-4cc5-828c-828818cb267f", "historyId": "ffa44683f901143ac06df43628659da8", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "刷新token"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_demo"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, 'post', 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg', 'x-www-form-urlencoded', 'testAddOrg', None, None, None)或{}
ERROR  root:__init__.py:50 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E4F6B40>, 'post', 'http://36.139.193.99:8088/api/org/v1/org/deleteOrg', 'x-www-form-urlencoded', 'testAddOrg', None, None, None)或{}错误的类型为:<class 'ValueError'>, 错误的描述为:方法:request_all,传入的媒体类型为:x-www-form-urlencoded, 没有符合的判断分支,可以自行封装,也可以继承之后覆盖
\ No newline at end of file
{"uuid": "c95a2ec7-a8cc-45a1-afd6-bd13dba6d119", "befores": [{"name": "method", "status": "passed", "start": 1731224907374, "stop": 1731224907374}], "start": 1731224907374, "stop": 1731224907433}
\ No newline at end of file
{"uuid": "c02cc770-0e27-41fe-8b3d-24157168154d", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907797, "stop": 1731224907797}], "start": 1731224907797, "stop": 1731224907833}
\ No newline at end of file
{"uuid": "5daa8a85-ecf7-4b5a-a966-dda8b52c11ce", "befores": [{"name": "level", "status": "passed", "start": 1731224907152, "stop": 1731224907152}], "start": 1731224907152, "stop": 1731224907217}
\ No newline at end of file
{"uuid": "cc708b0c-716e-4309-a58a-c053f9d49287", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224906996}
\ No newline at end of file
{"uuid": "839fa88e-aa4d-4282-9e4a-9d5bfb359d85", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907227, "stop": 1731224907227}], "start": 1731224907227, "stop": 1731224907263}
\ No newline at end of file
{"uuid": "067afae8-0bf8-4f7e-9abb-ab59230af7bc", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906781}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, 'post', 'http://36.139.193.99:8088/auth', 'application/json', {'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}, None, None, None)或{}
INFO  root:test_bpm.py:41 断言成功,用例数据为:{'username': 'a', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1855517126325542912"}
\ No newline at end of file
{"uuid": "3f10f737-45a8-49c4-974d-fbb64748e09d", "befores": [{"name": "api", "status": "passed", "start": 1731224907611, "stop": 1731224907611}], "start": 1731224907611, "stop": 1731224907628}
\ No newline at end of file
{"uuid": "1dcec69b-a5bf-4df6-8b74-a591af2d1529", "befores": [{"name": "api", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907607}
\ No newline at end of file
{"uuid": "2281a50c-0654-4158-8ec7-991ff8e9a6f5", "befores": [{"name": "url", "status": "passed", "start": 1731224907690, "stop": 1731224907690}], "start": 1731224907690, "stop": 1731224907783}
\ No newline at end of file
{"uuid": "7d774eb6-9daa-4187-abd4-8345d476d72f", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907634, "stop": 1731224907634}], "start": 1731224907634, "stop": 1731224907679}
\ No newline at end of file
{"uuid": "ca9c30e7-0490-4a4b-a7bd-c65d1cf20277", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907611, "stop": 1731224907611}], "start": 1731224907611, "stop": 1731224907624}
\ No newline at end of file
{"uuid": "b78100e1-547e-43ac-95d6-1e1cc6f133fd", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907516}
\ No newline at end of file
{"uuid": "105ae519-b242-4177-84ec-4ddd62642b42", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907688, "stop": 1731224907688}], "start": 1731224907688, "stop": 1731224907793}
\ No newline at end of file
{"uuid": "21308ef0-bf39-4f94-bc0a-79576828d64a", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907634, "stop": 1731224907634}], "start": 1731224907634, "stop": 1731224907681}
\ No newline at end of file
{"uuid": "5101f4e9-813e-418b-877f-bcb4613d6a12", "befores": [{"name": "url", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907519}
\ No newline at end of file
{"uuid": "bc49eee8-724b-42c8-8031-201c9583f5ac", "befores": [{"name": "case_data", "status": "passed", "start": 1731224907690, "stop": 1731224907690}], "start": 1731224907690, "stop": 1731224907776}
\ No newline at end of file
{"uuid": "08e85630-9e5b-419f-a0da-ede27082678d", "befores": [{"name": "title", "status": "passed", "start": 1731224907055, "stop": 1731224907055}], "start": 1731224907055, "stop": 1731224907102}
\ No newline at end of file
{"uuid": "a0fdd90a-51fd-4678-807c-0435c854d7e1", "befores": [{"name": "expect_data", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907517}
\ No newline at end of file
{"uuid": "fa6f570f-b37f-4233-ba26-4ccd0d7208d2", "befores": [{"name": "level", "status": "passed", "start": 1731224907796, "stop": 1731224907796}], "start": 1731224907796, "stop": 1731224907838}
\ No newline at end of file
{"uuid": "63c61e6b-42d0-4a6f-aa85-89afaf0ac694", "befores": [{"name": "update_key", "status": "passed", "start": 1731224906357, "stop": 1731224906357}], "start": 1731224906357, "stop": 1731224906780}
\ No newline at end of file
{"uuid": "d9df977b-6f26-48ae-890c-b97b4530cd66", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224907611, "stop": 1731224907611}], "start": 1731224907611, "stop": 1731224907622}
\ No newline at end of file
{"uuid": "7e069c9c-1862-40e3-a38b-0a0c0b8ec92d", "befores": [{"name": "api", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907521}
\ No newline at end of file
INFO  root:__init__.py:46 执行的功能为:request_all, 功能描述为:None, 所在的py文件为:C:\Python_Home\study_python\program01\MyApiAutoTest_v3_3\requests_method\requests_method.py, 所在的行为:31行,形参的值为:(<MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, 'Post', 'http://36.139.193.99:8088/auth', 'application/json', {'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}, None, None, None)或{}
INFO  root:test_bpm.py:41 断言成功,用例数据为:{'username': '', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{"state":false,"message":"账户错误或该租户未启用","code":200,"logId":"1855517126103244800"}
\ No newline at end of file
{"uuid": "86b9c91a-e5c1-4f13-b94e-68c1fe364a70", "befores": [{"name": "sql_type", "status": "passed", "start": 1731224906790, "stop": 1731224906790}], "start": 1731224906790, "stop": 1731224906818}
\ No newline at end of file
{"uuid": "08e96450-c296-4aae-b54c-d4983342a20f", "befores": [{"name": "module", "status": "passed", "start": 1731224907006, "stop": 1731224907006}], "start": 1731224907006, "stop": 1731224907050}
\ No newline at end of file
{"uuid": "c7685bea-ad6d-42ea-b0c0-07bd6d8c87af", "befores": [{"name": "module", "status": "passed", "start": 1731224907152, "stop": 1731224907152}], "start": 1731224907152, "stop": 1731224907221}
\ No newline at end of file
{"uuid": "a105808d-85eb-47d8-b61c-ef98a3884d6f", "befores": [{"name": "case_id", "status": "passed", "start": 1731224907107, "stop": 1731224907107}], "start": 1731224907107, "stop": 1731224907150}
\ No newline at end of file
{"uuid": "4459a7a3-611f-4bf1-9619-b3090366b67d", "befores": [{"name": "mime", "status": "passed", "start": 1731224907486, "stop": 1731224907486}], "start": 1731224907486, "stop": 1731224907518}
\ No newline at end of file
{"uuid": "d74a1f05-0d82-455d-813e-396f819854d1", "befores": [{"name": "sql_data", "status": "passed", "start": 1731224906952, "stop": 1731224906952}], "start": 1731224906952, "stop": 1731224906996}
\ No newline at end of file
{"name": "反向用例-用户名正确-密码错误", "status": "failed", "statusDetails": {"message": "AssertionError: 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{\"token\":\"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzEzMTExMzAsImlhdCI6MTczMTIyNDczMH0.nujtbsNRmxSXDP6PJ6dm6GmIZU7vY4kvjzeJ1sjh8mMRliOmtcsr39RJ2VL4vibY7iyZNci0GN0pEdy9ICBmFw\",\"username\":\"超级管理员\",\"account\":\"admin\",\"userId\":\"1\",\"expiration\":86400,\"loginStatus\":true,\"userAttrs\":{\"tenantId\":\"-1\"}}", "trace": "self = <MyApiAutoTest_v3_3.test_case.test_demo.test_bpm.TestBPM object at 0x000001845D127800>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, case_id = 'T002', module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码错误', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE', 'username': 'admin'}\nexpect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_demo\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n> assert res.json().get(key) == expect_data[key]\nE AssertionError: assert None == False\nE + where None = <built-in method get of dict object at 0x000001845E502580>('state')\nE + where <built-in method get of dict object at 0x000001845E502580> = {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...AsImlhdCI6MTczMTIyNDczMH0.nujtbsNRmxSXDP6PJ6dm6GmIZU7vY4kvjzeJ1sjh8mMRliOmtcsr39RJ2VL4vibY7iyZNci0GN0pEdy9ICBmFw', ...}.get\nE + where {'account': 'admin', 'expiration': 86400, 'loginStatus': True, 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRl...AsImlhdCI6MTczMTIyNDczMH0.nujtbsNRmxSXDP6PJ6dm6GmIZU7vY4kvjzeJ1sjh8mMRliOmtcsr39RJ2VL4vibY7iyZNci0GN0pEdy9ICBmFw', ...} = json()\nE + where json = <Response [200]>.json\n\ntest_case\\test_demo\\test_bpm.py:36: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <MyApiAutoTest_v3_3.test_case.test_demo.test_bpm.TestBPM object at 0x000001845D127800>\nreq_fix = <MyApiAutoTest_v3_3.requests_method.requests_method.RequestsMethod object at 0x000001845E42A120>, case_id = 'T002', module = '认证接口', api = '登录系统'\ntitle = '反向用例-用户名正确-密码错误', level = '中', method = 'post', url = 'http://36.139.193.99:8088/auth', mime = 'application/json'\ncase_data = {'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE', 'username': 'admin'}\nexpect_data = {'message': '账户错误或该租户未启用', 'state': False}, sql_type = None, sql_data = None, update_key = None\n\n @allure.epic(\"BPM_demo\")\n # @allure.feature(\"模块名称\")\n # @allure.story(\"接口名称\")\n # @allure.title(\"用例标题\")\n # @allure.severity(\"用例等级\")\n @pytest.mark.parametrize(\"case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key\", ReadExcel(USERNAME).get_data())\n def test_bpm(self, req_fix, case_id, module, api, title, level, method, url, mime, case_data, expect_data, sql_type, sql_data, update_key):\n req = req_fix\n \n allure.dynamic.feature(module)\n allure.dynamic.story(api)\n allure.dynamic.title(title)\n allure.dynamic.severity(level)\n \n res = req.request_all(method, url, mime, case_data, sql_type, sql_data, update_key)\n \n try:\n for key in expect_data.keys():\n assert res.json().get(key) == expect_data[key]\n except AssertionError:\n logor.error(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\n> raise AssertionError(f\"断言失败,用例数据为:{case_data},期望数据为:{expect_data}, 服务器返回的数据为:{res.text}\")\nE AssertionError: 断言失败,用例数据为:{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'},期望数据为:{'state': False, 'message': '账户错误或该租户未启用'}, 服务器返回的数据为:{\"token\":\"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInRlbmFudElkIjoiLTEiLCJleHAiOjE3MzEzMTExMzAsImlhdCI6MTczMTIyNDczMH0.nujtbsNRmxSXDP6PJ6dm6GmIZU7vY4kvjzeJ1sjh8mMRliOmtcsr39RJ2VL4vibY7iyZNci0GN0pEdy9ICBmFw\",\"username\":\"超级管理员\",\"account\":\"admin\",\"userId\":\"1\",\"expiration\":86400,\"loginStatus\":true,\"userAttrs\":{\"tenantId\":\"-1\"}}\n\ntest_case\\test_demo\\test_bpm.py:39: AssertionError"}, "attachments": [{"name": "log", "source": "ab335b82-6c10-4852-9219-53c65777096d-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T002'"}, {"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'反向用例-用户名正确-密码错误'"}, {"name": "level", "value": "'中'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE'}"}, {"name": "expect_data", "value": "{'state': False, 'message': '账户错误或该租户未启用'}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224906358, "stop": 1731224906412, "uuid": "91af28f1-0917-49b6-99a7-a7936693b813", "historyId": "2844246667da2592af2b30e55c79200d", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "中"}, {"name": "epic", "value": "BPM_demo"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "1a043cbd-85da-43bf-845d-bce805e6f995", "befores": [{"name": "case_id", "status": "passed", "start": 1731224906894, "stop": 1731224906894}], "start": 1731224906894, "stop": 1731224906949}
\ No newline at end of file
{"uuid": "bb3817cd-3c64-484a-8a3a-b2bba2b3201c", "befores": [{"name": "mime", "status": "passed", "start": 1731224907439, "stop": 1731224907439}], "start": 1731224907439, "stop": 1731224907478}
\ No newline at end of file
{"uuid": "14b54e22-c29b-43b8-9c65-af26e71c4455", "befores": [{"name": "level", "status": "passed", "start": 1731224907439, "stop": 1731224907439}], "start": 1731224907439, "stop": 1731224907479}
\ No newline at end of file
{"name": "正向用例-用户和密码正确", "status": "passed", "attachments": [{"name": "log", "source": "2f26179a-7b0c-4063-8c83-b595ed6b60d2-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "case_id", "value": "'T001'"}, {"name": "module", "value": "'认证接口'"}, {"name": "api", "value": "'登录系统'"}, {"name": "title", "value": "'正向用例-用户和密码正确'"}, {"name": "level", "value": "'高'"}, {"name": "method", "value": "'post'"}, {"name": "url", "value": "'http://36.139.193.99:8088/auth'"}, {"name": "mime", "value": "'application/json'"}, {"name": "case_data", "value": "{'username': 'admin', 'password': 'QKpkgIwnyACrUXQrQVRaSUbhPSOsKnj5hoRN5LGKHT3NmLCwGIN+aGa981YZtlLoEfpVvGDnILn0QU09VHSkgL+Or6oTG1E8OtVTmAEjivAe/a4zLPwd/OfvKYIYbBP5ExZyy+wlVTbLgDfqkuKPGOMPPSLlZWLfvG7yzdc+CyE='}"}, {"name": "expect_data", "value": "{'username': '超级管理员', 'account': 'admin', 'userId': '1', 'expiration': 86400, 'loginStatus': True}"}, {"name": "sql_type", "value": "None"}, {"name": "sql_data", "value": "None"}, {"name": "update_key", "value": "None"}], "start": 1731224906307, "stop": 1731224906341, "uuid": "19f6f33b-9b89-4443-93cf-da97bcf92bac", "historyId": "91a3490156690cb2ff979c0e6b6ca1c6", "testCaseId": "2de48645219de93dc51c83a53a42f952", "fullName": "test_case.test_demo.test_bpm.TestBPM#test_bpm", "labels": [{"name": "feature", "value": "认证接口"}, {"name": "story", "value": "登录系统"}, {"name": "severity", "value": "高"}, {"name": "epic", "value": "BPM_demo"}, {"name": "parentSuite", "value": "test_case.test_demo"}, {"name": "suite", "value": "test_bpm"}, {"name": "subSuite", "value": "TestBPM"}, {"name": "host", "value": "MrLee"}, {"name": "thread", "value": "12240-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.test_demo.test_bpm"}]}
\ No newline at end of file
{"uuid": "47231042-9316-4824-90eb-0c3a573c4579", "befores": [{"name": "update_key", "status": "passed", "start": 1731224907527, "stop": 1731224907527}], "start": 1731224907527, "stop": 1731224907590}
\ No newline at end of file
{"uuid": "4f32d984-768e-44af-972c-5e4890a01218", "befores": [{"name": "api", "status": "passed", "start": 1731224907373, "stop": 1731224907373}], "start": 1731224907373, "stop": 1731224907434}
\ No newline at end of file
{"uuid": "309f5e35-13da-4ef1-9312-e434120e5c22", "befores": [{"name": "title", "status": "passed", "start": 1731224907107, "stop": 1731224907107}], "start": 1731224907107, "stop": 1731224907148}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment