Commit de7ecf67 by 李杨杨

修正一些bug

1 parent 29d6aa04
Showing 41 changed files with 72 additions and 7 deletions
...@@ -72,7 +72,8 @@ class TestBaseProcess: ...@@ -72,7 +72,8 @@ class TestBaseProcess:
def test_device_resource(self): def test_device_resource(self):
""" 检查分析资源 """ """ 检查分析资源 """
resource = device_resource(self.driver) resource = device_resource(self.driver)
assert resource['free_resource'] > 0 and resource['total_resource'] >= resource['free_resource'] logger.info(resource)
assert resource['free'] > 0 and resource['total'] >= resource['free']
@allure.story('step3: 创建任务') @allure.story('step3: 创建任务')
...@@ -81,7 +82,7 @@ class TestBaseProcess: ...@@ -81,7 +82,7 @@ class TestBaseProcess:
@pytest.mark.global_gateway @pytest.mark.global_gateway
def test_create_task(self): def test_create_task(self):
""" 测试大任务创建 """ """ 测试大任务创建 """
create_result = create_task(tasks_url, self.driver, self.task_name, store_conf=self.stor_name, device_type='9.245_gpu0') create_result = create_task(tasks_url, self.driver, self.task_name, store_conf=self.stor_name)
logger.info(create_result) logger.info(create_result)
assert create_result == {self.task_name: '未部署'} or create_result == '已有该任务' assert create_result == {self.task_name: '未部署'} or create_result == '已有该任务'
......
...@@ -10,7 +10,7 @@ import re ...@@ -10,7 +10,7 @@ import re
# 测试平台信息 # 测试平台信息
driver_path = r"D:\chromedriver.exe" driver_path = r"D:\chromedriver.exe"
plat_ip = "192.168.9.245" plat_ip = "192.168.9.234"
# chrome_path = r"D:\Program Files\Google\Chrome\Application\chrome.exe" # chrome_path = r"D:\Program Files\Google\Chrome\Application\chrome.exe"
user = "admin" user = "admin"
passwd = "admin" passwd = "admin"
......
...@@ -17,4 +17,8 @@ from .dataretrieval import vehicle_search ...@@ -17,4 +17,8 @@ from .dataretrieval import vehicle_search
from .deletetask import delete_task from .deletetask import delete_task
__all__ = ['login_fx', 'upload_videos', 'upload_storage_config', 'device_resource', 'create_task', 'create_subtask_batch', 'import_config', __all__ = ['login_fx', 'upload_videos', 'upload_storage_config', 'device_resource', 'create_task', 'create_subtask_batch', 'import_config',
'monitor_subtask_result', 'vehicle_search', 'delete_task']
\ No newline at end of file \ No newline at end of file
'monitor_subtask_result', 'vehicle_search', 'delete_task']
def handler():
return None
\ No newline at end of file \ No newline at end of file
...@@ -69,6 +69,7 @@ def find_task(driver, task_name): ...@@ -69,6 +69,7 @@ def find_task(driver, task_name):
if __name__ == "__main__": if __name__ == "__main__":
from unitinit import * from unitinit import *
from login import login_fx
login_fx(driver, login_url, user, passwd) login_fx(driver, login_url, user, passwd)
print(find_task(driver, "测试2021")) print(find_task(driver, "测试2021"))
......
...@@ -27,8 +27,7 @@ def play_check(ffprobe_path, address): ...@@ -27,8 +27,7 @@ def play_check(ffprobe_path, address):
command = f"{ffprobe_path} -print_format json -show_streams -stimeout 2000000 -i {address}" command = f"{ffprobe_path} -print_format json -show_streams -stimeout 2000000 -i {address}"
try: try:
subp = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8") subp = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8")
subp.wait(10) stdout, _ = subp.communicate(timeout=10)
stdout = subp.stdout.read()
stream_info = json.loads(stdout) stream_info = json.loads(stdout)
return stream_check(stream_info) return stream_check(stream_info)
except Exception as e: except Exception as e:
......
...@@ -374,3 +374,26 @@ ...@@ -374,3 +374,26 @@
[2021-02-04 16:11:24,347] [INFO] [test_monitor_subtask_result] [大货车合并文件: {'capture_result': False, 'stream_result': True}] [2021-02-04 16:11:24,347] [INFO] [test_monitor_subtask_result] [大货车合并文件: {'capture_result': False, 'stream_result': True}]
[2021-02-04 16:11:36,753] [INFO] [test_monitor_subtask_result] [路口滞留: {'capture_result': False, 'stream_result': True}] [2021-02-04 16:11:36,753] [INFO] [test_monitor_subtask_result] [路口滞留: {'capture_result': False, 'stream_result': True}]
[2021-02-04 16:11:49,176] [INFO] [test_monitor_subtask_result] [遗撒+非法停车: {'capture_result': False, 'stream_result': True}] [2021-02-04 16:11:49,176] [INFO] [test_monitor_subtask_result] [遗撒+非法停车: {'capture_result': False, 'stream_result': True}]
[2021-02-25 14:13:29,011] [INFO] [test_login] [http://192.168.9.234:20080/#/video_task/config]
[2021-02-25 14:13:33,277] [INFO] [test_upload_storageconfig] [测试bLwX5]
[2021-02-25 14:13:59,561] [INFO] [test_upload_videos] [['遗撒+非法停车', '大货车合并文件', '路口滞留']]
[2021-02-25 14:14:12,549] [INFO] [test_import_config] [{}]
[2021-02-25 14:14:18,697] [INFO] [test_monitor_subtask_result] [大货车合并文件: None]
[2021-02-25 14:14:24,812] [INFO] [test_monitor_subtask_result] [路口滞留: None]
[2021-02-25 14:20:19,746] [INFO] [test_login] [http://192.168.9.234:20080/#/video_task/config]
[2021-02-25 14:20:23,874] [INFO] [test_upload_storageconfig] [测试lDPJq]
[2021-02-25 14:20:26,678] [INFO] [test_upload_videos] [['大货车合并文件', '路口滞留', '遗撒+非法停车']]
[2021-02-25 14:20:28,459] [INFO] [test_device_resource] [{'total': 8, 'free': 8}]
[2021-02-25 14:26:02,441] [INFO] [test_login] [http://192.168.9.234:20080/#/video_task/config]
[2021-02-25 14:26:06,516] [INFO] [test_upload_storageconfig] [测试7YbRN]
[2021-02-25 14:26:09,289] [INFO] [test_upload_videos] [['大货车合并文件', '路口滞留', '遗撒+非法停车']]
[2021-02-25 14:26:11,077] [INFO] [test_device_resource] [{'total': 8, 'free': 8}]
[2021-02-25 14:26:17,659] [INFO] [test_create_task] [{'测试任务yJqBw': '未部署'}]
[2021-02-25 14:28:08,476] [INFO] [test_create_subtask] [{'大货车合并文件': '部署中', '路口滞留': '部署中', '遗撒+非法停车': '部署中'}]
[2021-02-25 14:28:22,147] [INFO] [test_monitor_subtask_result] [大货车合并文件: None]
[2021-02-25 14:28:28,344] [INFO] [test_monitor_subtask_result] [路口滞留: None]
[2021-02-25 14:28:34,616] [INFO] [test_monitor_subtask_result] [遗撒+非法停车: None]
[2021-02-25 14:28:38,581] [INFO] [test_result_search] [{'first_page': 0, 'total': 0}]
[2021-02-25 14:28:41,684] [INFO] [test_result_search] [{'first_page': 0, 'total': 0}]
[2021-02-25 14:28:44,769] [INFO] [test_result_search] [{'first_page': 0, 'total': 0}]
[2021-02-25 14:30:40,010] [INFO] [test_delete_task] [测试任务yJqBw]
Browser=Chrome Browser=Chrome
Browser.Version=88.0.4324.104 Browser.Version=88.0.4324.182
Stand=Production Stand=Production
Python.Version=3.9 Python.Version=3.9
\ No newline at end of file \ No newline at end of file
{"name": "视频点播和抓拍结果检查: 遗撒+非法停车", "status": "failed", "statusDetails": {"message": "AssertionError: assert None == {'capture_res...result': True}\n +None\n -{'capture_result': True, 'stream_result': True}", "trace": "self = <test_base_process.TestBaseProcess object at 0x0000024153BBF640>\nvideo_name = '遗撒+非法停车'\n\n @allure.story('step7: 任务分析情况检查')\n @allure.title('视频点播和抓拍结果检查: {video_name}')\n @pytest.mark.parametrize('video_name', videos_name)\n def test_monitor_subtask_result(self, video_name):\n \"\"\" 检查视频点播和抓拍结果 \"\"\"\n index_value = videos_name.index(video_name)\n wait_time = 20 if index_value == 0 else 8\n subtask_result = monitor_subtask_result(self.driver, wait_time, ffprobe_path, self.task_name, subtask_name=video_name)\n logger.info(f\"{video_name}: {subtask_result}\")\n> assert subtask_result == {\"capture_result\": True, \"stream_result\": True}\nE AssertionError: assert None == {'capture_res...result': True}\nE +None\nE -{'capture_result': True, 'stream_result': True}\n\ncases\\test_base_process.py:136: AssertionError"}, "description": " 检查视频点播和抓拍结果 ", "parameters": [{"name": "video_name", "value": "'遗撒+非法停车'"}], "start": 1614234508361, "stop": 1614234514618, "uuid": "70e26d76-2e70-487d-9557-1549d8095afd", "historyId": "fe530013cdc3fb5013483650a1f74c2d", "testCaseId": "6fbc2bb48182da145d227a668f1d0e12", "fullName": "test_base_process.TestBaseProcess#test_monitor_subtask_result", "labels": [{"name": "story", "value": "step7: 任务分析情况检查"}, {"name": "feature", "value": "测试流程"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"uuid": "66ffbca0-8ab1-4f03-b9c1-1d15d1d524e3", "children": ["94730ab7-a3e1-435c-8202-18a979e6ce58", "67fbf6e2-d589-492b-94c4-bf8b40a09570", "d47b8dc1-481b-41e0-a99d-fe82c858b622", "4447c7e9-2a7f-49e7-823a-3090596d7adf", "88f34945-ef17-45dc-91ac-a238487a2a44", "9bbfbd66-46d7-40e7-9578-fd80db8f914e", "2333308c-b18b-4a40-8a44-aa1509867c54", "09636141-abec-4a90-9d0d-8d4c5b805fd7", "a913c4c3-84c1-421e-9a69-7aad8a0fcb4c", "72166cc2-d872-42fd-aa7f-51c2173da8c3", "b813b83b-5eb2-4015-ad04-fa910f514e8a", "623b20e3-91e7-42e6-8204-99e48ba84317", "e8d12edd-b93b-4fd5-982a-7b3f466dd418", "5f6089bf-4d55-4f39-b182-6e90e387576c", "eb27ba07-4d2c-4cf0-8d2c-c5444df0c0a3", "70e26d76-2e70-487d-9557-1549d8095afd", "b5d2a11d-d18d-4e4b-a75a-6b619f45ff5b", "91e898d8-e9fb-4141-99ee-4c6bdd1e8af7", "b3d722e8-9b94-4b73-a075-967bd5f71c34", "c5d4f9c2-7be7-4d62-a504-3c23afb5a07a"], "befores": [{"name": "xunit_setup_class_fixture_TestBaseProcess", "status": "passed", "start": 1614234354817, "stop": 1614234356903}], "afters": [{"name": "xunit_setup_class_fixture_TestBaseProcess::0", "status": "passed", "start": 1614234640021, "stop": 1614234642768}], "start": 1614234354817, "stop": 1614234642768}
\ No newline at end of file \ No newline at end of file
{"name": "视频点播和抓拍结果检查: 路口滞留", "status": "failed", "statusDetails": {"message": "AssertionError: assert None == {'capture_res...result': True}\n +None\n -{'capture_result': True, 'stream_result': True}", "trace": "self = <test_base_process.TestBaseProcess object at 0x0000024153C2ACA0>\nvideo_name = '路口滞留'\n\n @allure.story('step7: 任务分析情况检查')\n @allure.title('视频点播和抓拍结果检查: {video_name}')\n @pytest.mark.parametrize('video_name', videos_name)\n def test_monitor_subtask_result(self, video_name):\n \"\"\" 检查视频点播和抓拍结果 \"\"\"\n index_value = videos_name.index(video_name)\n wait_time = 20 if index_value == 0 else 8\n subtask_result = monitor_subtask_result(self.driver, wait_time, ffprobe_path, self.task_name, subtask_name=video_name)\n logger.info(f\"{video_name}: {subtask_result}\")\n> assert subtask_result == {\"capture_result\": True, \"stream_result\": True}\nE AssertionError: assert None == {'capture_res...result': True}\nE +None\nE -{'capture_result': True, 'stream_result': True}\n\ncases\\test_base_process.py:136: AssertionError"}, "description": " 检查视频点播和抓拍结果 ", "parameters": [{"name": "video_name", "value": "'路口滞留'"}], "start": 1614234502162, "stop": 1614234508346, "uuid": "eb27ba07-4d2c-4cf0-8d2c-c5444df0c0a3", "historyId": "924dd791124a2a062627ea6ad6f78a33", "testCaseId": "6fbc2bb48182da145d227a668f1d0e12", "fullName": "test_base_process.TestBaseProcess#test_monitor_subtask_result", "labels": [{"name": "story", "value": "step7: 任务分析情况检查"}, {"name": "feature", "value": "测试流程"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"name": "检查分析资源", "status": "passed", "description": " 检查分析资源 ", "start": 1614234369294, "stop": 1614234371078, "uuid": "4447c7e9-2a7f-49e7-823a-3090596d7adf", "historyId": "0375a406fd9288281aa6df1020bd747f", "testCaseId": "437a2e115e1c275ad61ce8b8fb109642", "fullName": "test_base_process.TestBaseProcess#test_device_resource", "labels": [{"name": "story", "value": "step2: 准备操作"}, {"name": "feature", "value": "测试流程"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "tag", "value": "task_precondition"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"name": "子任务下发状态检查: 遗撒+非法停车", "status": "failed", "statusDetails": {"message": "AssertionError: assert '部署中' == '工作中'\n - 工作中\n + 部署中", "trace": "self = <test_base_process.TestBaseProcess object at 0x0000024153AE81C0>\nname = '遗撒+非法停车'\n\n @allure.story('step4: 任务下发状态检查')\n @allure.title('子任务下发状态检查: {name}')\n @pytest.mark.parametrize('name', videos_name)\n def test_create_subtask_status(self, name):\n \"\"\" 检查子任务下发状态 \"\"\"\n print(f'校验子任务下发状态: {name}')\n if name in add_result.keys():\n> assert add_result[name] == '工作中'\nE AssertionError: assert '部署中' == '工作中'\nE - 工作中\nE + 部署中\n\ncases\\test_base_process.py:107: AssertionError"}, "description": " 检查子任务下发状态 ", "parameters": [{"name": "name", "value": "'遗撒+非法停车'"}], "start": 1614234488834, "stop": 1614234488834, "uuid": "a913c4c3-84c1-421e-9a69-7aad8a0fcb4c", "historyId": "581c7c28f2c60df4d0803ab5e0b508e4", "testCaseId": "092542573c939fe368ddf490a100baa8", "fullName": "test_base_process.TestBaseProcess#test_create_subtask_status", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "story", "value": "step4: 任务下发状态检查"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"name": "上传存储配置", "status": "passed", "description": " 测试上传存储配置 ", "start": 1614234362450, "stop": 1614234366516, "uuid": "67fbf6e2-d589-492b-94c4-bf8b40a09570", "historyId": "cb574719e78af33439b80d86d7238790", "testCaseId": "8e1afa20ba25b2558076104a9e546f8b", "fullName": "test_base_process.TestBaseProcess#test_upload_storageconfig", "labels": [{"name": "story", "value": "step2: 准备操作"}, {"name": "feature", "value": "测试流程"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"uuid": "4d243170-6f1f-4e60-910f-c242a28b7386", "befores": [{"name": "video_name", "status": "passed", "start": 1614234495933, "stop": 1614234495933}], "start": 1614234495933, "stop": 1614234502157}
\ No newline at end of file \ No newline at end of file
{"name": "配置下发状态检查: 大货车合并文件", "status": "broken", "statusDetails": {"message": "KeyError: '大货车合并文件'", "trace": "self = <test_base_process.TestBaseProcess object at 0x00000241544A0850>\nname = '大货车合并文件'\n\n @allure.story('step6: 配置下发状态检查')\n @allure.title('配置下发状态检查: {name}')\n @pytest.mark.parametrize('name', videos_name)\n def test_import_config_status(self, name):\n \"\"\" 检查配置导入状态 \"\"\"\n> assert import_result[name] == {'参数设置': '运行中', '区域设置': '运行中', '标定设置': '运行中'}\nE KeyError: '大货车合并文件'\n\ncases\\test_base_process.py:125: KeyError"}, "description": " 检查配置导入状态 ", "parameters": [{"name": "name", "value": "'大货车合并文件'"}], "start": 1614234495889, "stop": 1614234495889, "uuid": "b813b83b-5eb2-4015-ad04-fa910f514e8a", "historyId": "890726afb961b6bf1c953d01bb017770", "testCaseId": "38d7c840d5d5e48b250a1ea189395544", "fullName": "test_base_process.TestBaseProcess#test_import_config_status", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "story", "value": "step6: 配置下发状态检查"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"uuid": "123ddf53-a583-4d1f-bbd9-f7c38b854027", "befores": [{"name": "name", "status": "passed", "start": 1614234495918, "stop": 1614234495918}], "start": 1614234495918, "stop": 1614234495928}
\ No newline at end of file \ No newline at end of file
{"uuid": "a62abfd4-85f5-4739-a8b1-d47a8f8fae03", "befores": [{"name": "name", "status": "passed", "start": 1614234488834, "stop": 1614234488834}], "start": 1614234488834, "stop": 1614234488842}
\ No newline at end of file \ No newline at end of file
{"name": "创建大任务", "status": "passed", "description": " 测试大任务创建 ", "start": 1614234371082, "stop": 1614234377660, "uuid": "88f34945-ef17-45dc-91ac-a238487a2a44", "historyId": "a770d0008e2db27a0900108973e4b456", "testCaseId": "f1dbf8132b39fd47a6cbd4fe0453ba65", "fullName": "test_base_process.TestBaseProcess#test_create_task", "labels": [{"name": "story", "value": "step3: 创建任务"}, {"name": "feature", "value": "测试流程"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "tag", "value": "task_precondition"}, {"name": "tag", "value": "global_gateway"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"uuid": "84ce4c21-434d-4eaf-988f-95c8fffadf1c", "befores": [{"name": "name", "status": "passed", "start": 1614234495903, "stop": 1614234495903}], "start": 1614234495903, "stop": 1614234495913}
\ No newline at end of file \ No newline at end of file
{"uuid": "23e91243-b578-4532-bbde-844b3c6a1f26", "befores": [{"name": "name", "status": "passed", "start": 1614234518595, "stop": 1614234518596}], "start": 1614234518595, "stop": 1614234521694}
\ No newline at end of file \ No newline at end of file
{"name": "删除任务", "status": "failed", "statusDetails": {"message": "AssertionError: assert '测试任务yJqBw' == None\n +'测试任务yJqBw'\n -None", "trace": "self = <test_base_process.TestBaseProcess object at 0x0000024153C2A220>\n\n @allure.story('step9: 删除任务')\n @allure.title('删除任务')\n def test_delete_task(self):\n \"\"\" 测试任务删除 \"\"\"\n delete_result = delete_task(self.driver, self.task_name)\n logger.info(delete_result)\n> assert delete_result == None\nE AssertionError: assert '测试任务yJqBw' == None\nE +'测试任务yJqBw'\nE -None\n\ncases\\test_base_process.py:154: AssertionError"}, "description": " 测试任务删除 ", "start": 1614234524782, "stop": 1614234640011, "uuid": "c5d4f9c2-7be7-4d62-a504-3c23afb5a07a", "historyId": "79e3e02e751e5b388263e99c2c6a576d", "testCaseId": "2c4a62d933c9be258d773e43a72328d0", "fullName": "test_base_process.TestBaseProcess#test_delete_task", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "story", "value": "step9: 删除任务"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"uuid": "732e84fa-44d0-4e47-ae70-7938cb8dce4c", "befores": [{"name": "name", "status": "passed", "start": 1614234521698, "stop": 1614234521698}], "start": 1614234521698, "stop": 1614234524779}
\ No newline at end of file \ No newline at end of file
{"name": "登录平台 192.168.9.234", "status": "passed", "description": " 测试登录 ", "start": 1614234356904, "stop": 1614234362443, "uuid": "94730ab7-a3e1-435c-8202-18a979e6ce58", "historyId": "d13eaf958c96351e7bc19bd824b3fc55", "testCaseId": "9f57ae83209c3475661d3bf9bfe27bee", "fullName": "test_base_process.TestBaseProcess#test_login", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "story", "value": "step1: 登录"}, {"name": "tag", "value": "global_gateway"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"name": "过车数据检索: 路口滞留", "status": "failed", "statusDetails": {"message": "AssertionError: assert (0 > 0)", "trace": "self = <test_base_process.TestBaseProcess object at 0x0000024153BB8EB0>\nname = '路口滞留'\n\n @allure.story('step8: 任务分析情况检查')\n @allure.title('过车数据检索: {name}')\n @pytest.mark.parametrize('name', videos_name)\n def test_result_search(self, name):\n \"\"\" 测试过车记录检索 \"\"\"\n search_result = vehicle_search(self.driver, self.task_name, name)\n logger.info(search_result)\n assert isinstance(search_result, dict)\n> assert search_result['first_page'] > 0 and search_result['total'] > search_result['first_page']\nE assert (0 > 0)\n\ncases\\test_base_process.py:146: AssertionError"}, "description": " 测试过车记录检索 ", "parameters": [{"name": "name", "value": "'路口滞留'"}], "start": 1614234518596, "stop": 1614234521685, "uuid": "91e898d8-e9fb-4141-99ee-4c6bdd1e8af7", "historyId": "44e3e874af8559cd74955d8b466b3789", "testCaseId": "debf346c45902e99315f75f63981b1c5", "fullName": "test_base_process.TestBaseProcess#test_result_search", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "story", "value": "step8: 任务分析情况检查"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"name": "添加子任务", "status": "passed", "description": " 测试添加子任务 ", "start": 1614234377664, "stop": 1614234488477, "uuid": "9bbfbd66-46d7-40e7-9578-fd80db8f914e", "historyId": "eb95cb86e54f33f1c657fe3fcb46d396", "testCaseId": "c5632d0973f46f799b36f408ae8d3903", "fullName": "test_base_process.TestBaseProcess#test_create_subtask", "labels": [{"name": "story", "value": "step3: 创建任务"}, {"name": "feature", "value": "测试流程"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "tag", "value": "master_slave_subtask"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"uuid": "24b272c2-6a76-42d2-bfc1-4982df7341ed", "befores": [{"name": "name", "status": "passed", "start": 1614234488820, "stop": 1614234488820}], "start": 1614234488820, "stop": 1614234488830}
\ No newline at end of file \ No newline at end of file
{"name": "子任务下发状态检查: 大货车合并文件", "status": "failed", "statusDetails": {"message": "AssertionError: assert '部署中' == '工作中'\n - 工作中\n + 部署中", "trace": "self = <test_base_process.TestBaseProcess object at 0x0000024153AE8760>\nname = '大货车合并文件'\n\n @allure.story('step4: 任务下发状态检查')\n @allure.title('子任务下发状态检查: {name}')\n @pytest.mark.parametrize('name', videos_name)\n def test_create_subtask_status(self, name):\n \"\"\" 检查子任务下发状态 \"\"\"\n print(f'校验子任务下发状态: {name}')\n if name in add_result.keys():\n> assert add_result[name] == '工作中'\nE AssertionError: assert '部署中' == '工作中'\nE - 工作中\nE + 部署中\n\ncases\\test_base_process.py:107: AssertionError"}, "description": " 检查子任务下发状态 ", "parameters": [{"name": "name", "value": "'大货车合并文件'"}], "start": 1614234488480, "stop": 1614234488484, "uuid": "2333308c-b18b-4a40-8a44-aa1509867c54", "historyId": "6781699b92db86d61e5bfdc57333549a", "testCaseId": "092542573c939fe368ddf490a100baa8", "fullName": "test_base_process.TestBaseProcess#test_create_subtask_status", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "story", "value": "step4: 任务下发状态检查"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"name": "导入任务配置", "status": "broken", "statusDetails": {"message": "selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable\n (Session info: chrome=88.0.4324.182)", "trace": "self = <test_base_process.TestBaseProcess object at 0x0000024153BB99A0>\n\n @allure.story('step5: 导入任务配置')\n @allure.title('导入任务配置')\n def test_import_config(self):\n \"\"\" 测试任务配置导入 \"\"\"\n> import_result_realtime = import_config(self.driver, self.task_name, task_cfg_info, retry_check_times=6)\n\ncases\\test_base_process.py:115: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\nlib\\importconfig.py:76: in import_config\n subtasks_ele[subtasks_title.index(name)].click()\nD:\\Program Files\\Python\\Python39\\lib\\site-packages\\selenium\\webdriver\\remote\\webelement.py:80: in click\n self._execute(Command.CLICK_ELEMENT)\nD:\\Program Files\\Python\\Python39\\lib\\site-packages\\selenium\\webdriver\\remote\\webelement.py:633: in _execute\n return self._parent.execute(command, params)\nD:\\Program Files\\Python\\Python39\\lib\\site-packages\\selenium\\webdriver\\remote\\webdriver.py:321: in execute\n self.error_handler.check_response(response)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nself = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x0000024153AE27C0>\nresponse = {'status': 400, 'value': '{\"value\":{\"error\":\"element not interactable\",\"message\":\"element not interactable\\\\n (Sessio...\\n\\\\tRtlGetAppContainerNamedObjectPath [0x76F776B4+228]\\\\n\\\\tRtlGetAppContainerNamedObjectPath [0x76F77684+180]\\\\n\"}}'}\n\n def check_response(self, response):\n \"\"\"\n Checks that a JSON response from the WebDriver does not have an error.\n \n :Args:\n - response - The JSON response from the WebDriver server as a dictionary\n object.\n \n :Raises: If the response contains an error message.\n \"\"\"\n status = response.get('status', None)\n if status is None or status == ErrorCode.SUCCESS:\n return\n value = None\n message = response.get(\"message\", \"\")\n screen = response.get(\"screen\", \"\")\n stacktrace = None\n if isinstance(status, int):\n value_json = response.get('value', None)\n if value_json and isinstance(value_json, basestring):\n import json\n try:\n value = json.loads(value_json)\n if len(value.keys()) == 1:\n value = value['value']\n status = value.get('error', None)\n if status is None:\n status = value[\"status\"]\n message = value[\"value\"]\n if not isinstance(message, basestring):\n value = message\n message = message.get('message')\n else:\n message = value.get('message', None)\n except ValueError:\n pass\n \n exception_class = ErrorInResponseException\n if status in ErrorCode.NO_SUCH_ELEMENT:\n exception_class = NoSuchElementException\n elif status in ErrorCode.NO_SUCH_FRAME:\n exception_class = NoSuchFrameException\n elif status in ErrorCode.NO_SUCH_WINDOW:\n exception_class = NoSuchWindowException\n elif status in ErrorCode.STALE_ELEMENT_REFERENCE:\n exception_class = StaleElementReferenceException\n elif status in ErrorCode.ELEMENT_NOT_VISIBLE:\n exception_class = ElementNotVisibleException\n elif status in ErrorCode.INVALID_ELEMENT_STATE:\n exception_class = InvalidElementStateException\n elif status in ErrorCode.INVALID_SELECTOR \\\n or status in ErrorCode.INVALID_XPATH_SELECTOR \\\n or status in ErrorCode.INVALID_XPATH_SELECTOR_RETURN_TYPER:\n exception_class = InvalidSelectorException\n elif status in ErrorCode.ELEMENT_IS_NOT_SELECTABLE:\n exception_class = ElementNotSelectableException\n elif status in ErrorCode.ELEMENT_NOT_INTERACTABLE:\n exception_class = ElementNotInteractableException\n elif status in ErrorCode.INVALID_COOKIE_DOMAIN:\n exception_class = InvalidCookieDomainException\n elif status in ErrorCode.UNABLE_TO_SET_COOKIE:\n exception_class = UnableToSetCookieException\n elif status in ErrorCode.TIMEOUT:\n exception_class = TimeoutException\n elif status in ErrorCode.SCRIPT_TIMEOUT:\n exception_class = TimeoutException\n elif status in ErrorCode.UNKNOWN_ERROR:\n exception_class = WebDriverException\n elif status in ErrorCode.UNEXPECTED_ALERT_OPEN:\n exception_class = UnexpectedAlertPresentException\n elif status in ErrorCode.NO_ALERT_OPEN:\n exception_class = NoAlertPresentException\n elif status in ErrorCode.IME_NOT_AVAILABLE:\n exception_class = ImeNotAvailableException\n elif status in ErrorCode.IME_ENGINE_ACTIVATION_FAILED:\n exception_class = ImeActivationFailedException\n elif status in ErrorCode.MOVE_TARGET_OUT_OF_BOUNDS:\n exception_class = MoveTargetOutOfBoundsException\n elif status in ErrorCode.JAVASCRIPT_ERROR:\n exception_class = JavascriptException\n elif status in ErrorCode.SESSION_NOT_CREATED:\n exception_class = SessionNotCreatedException\n elif status in ErrorCode.INVALID_ARGUMENT:\n exception_class = InvalidArgumentException\n elif status in ErrorCode.NO_SUCH_COOKIE:\n exception_class = NoSuchCookieException\n elif status in ErrorCode.UNABLE_TO_CAPTURE_SCREEN:\n exception_class = ScreenshotException\n elif status in ErrorCode.ELEMENT_CLICK_INTERCEPTED:\n exception_class = ElementClickInterceptedException\n elif status in ErrorCode.INSECURE_CERTIFICATE:\n exception_class = InsecureCertificateException\n elif status in ErrorCode.INVALID_COORDINATES:\n exception_class = InvalidCoordinatesException\n elif status in ErrorCode.INVALID_SESSION_ID:\n exception_class = InvalidSessionIdException\n elif status in ErrorCode.UNKNOWN_METHOD:\n exception_class = UnknownMethodException\n else:\n exception_class = WebDriverException\n if value == '' or value is None:\n value = response['value']\n if isinstance(value, basestring):\n if exception_class == ErrorInResponseException:\n raise exception_class(response, value)\n raise exception_class(value)\n if message == \"\" and 'message' in value:\n message = value['message']\n \n screen = None\n if 'screen' in value:\n screen = value['screen']\n \n stacktrace = None\n if 'stackTrace' in value and value['stackTrace']:\n stacktrace = []\n try:\n for frame in value['stackTrace']:\n line = self._value_or_default(frame, 'lineNumber', '')\n file = self._value_or_default(frame, 'fileName', '<anonymous>')\n if line:\n file = \"%s:%s\" % (file, line)\n meth = self._value_or_default(frame, 'methodName', '<anonymous>')\n if 'className' in frame:\n meth = \"%s.%s\" % (frame['className'], meth)\n msg = \" at %s (%s)\"\n msg = msg % (meth, file)\n stacktrace.append(msg)\n except TypeError:\n pass\n if exception_class == ErrorInResponseException:\n raise exception_class(response, message)\n elif exception_class == UnexpectedAlertPresentException:\n alert_text = None\n if 'data' in value:\n alert_text = value['data'].get('text')\n elif 'alert' in value:\n alert_text = value['alert'].get('text')\n raise exception_class(message, screen, stacktrace, alert_text)\n> raise exception_class(message, screen, stacktrace)\nE selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable\nE (Session info: chrome=88.0.4324.182)\n\nD:\\Program Files\\Python\\Python39\\lib\\site-packages\\selenium\\webdriver\\remote\\errorhandler.py:242: ElementNotInteractableException"}, "description": " 测试任务配置导入 ", "start": 1614234488847, "stop": 1614234495817, "uuid": "72166cc2-d872-42fd-aa7f-51c2173da8c3", "historyId": "61d44e252db76607930ab68732704d1b", "testCaseId": "5a286b78dd1a55b8512daf213dc55d0e", "fullName": "test_base_process.TestBaseProcess#test_import_config", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "story", "value": "step5: 导入任务配置"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"name": "过车数据检索: 遗撒+非法停车", "status": "failed", "statusDetails": {"message": "AssertionError: assert (0 > 0)", "trace": "self = <test_base_process.TestBaseProcess object at 0x0000024153C2AF70>\nname = '遗撒+非法停车'\n\n @allure.story('step8: 任务分析情况检查')\n @allure.title('过车数据检索: {name}')\n @pytest.mark.parametrize('name', videos_name)\n def test_result_search(self, name):\n \"\"\" 测试过车记录检索 \"\"\"\n search_result = vehicle_search(self.driver, self.task_name, name)\n logger.info(search_result)\n assert isinstance(search_result, dict)\n> assert search_result['first_page'] > 0 and search_result['total'] > search_result['first_page']\nE assert (0 > 0)\n\ncases\\test_base_process.py:146: AssertionError"}, "description": " 测试过车记录检索 ", "parameters": [{"name": "name", "value": "'遗撒+非法停车'"}], "start": 1614234521698, "stop": 1614234524770, "uuid": "b3d722e8-9b94-4b73-a075-967bd5f71c34", "historyId": "19d104a2360a7b847611511aa64df46e", "testCaseId": "debf346c45902e99315f75f63981b1c5", "fullName": "test_base_process.TestBaseProcess#test_result_search", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "story", "value": "step8: 任务分析情况检查"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"name": "上传视频文件", "status": "passed", "description": " 测试视频上传 ", "start": 1614234366521, "stop": 1614234369291, "uuid": "d47b8dc1-481b-41e0-a99d-fe82c858b622", "historyId": "ccdd872fadb98054e21a729d7f6bd651", "testCaseId": "e9e5de5e40bc42f4db62a13014a288e4", "fullName": "test_base_process.TestBaseProcess#test_upload_videos", "labels": [{"name": "story", "value": "step2: 准备操作"}, {"name": "feature", "value": "测试流程"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "tag", "value": "task_precondition"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"uuid": "4f06f7b1-3195-4e93-85fe-339c05ee45c9", "befores": [{"name": "name", "status": "passed", "start": 1614234495888, "stop": 1614234495888}], "start": 1614234495888, "stop": 1614234495898}
\ No newline at end of file \ No newline at end of file
{"name": "视频点播和抓拍结果检查: 大货车合并文件", "status": "failed", "statusDetails": {"message": "AssertionError: assert None == {'capture_res...result': True}\n +None\n -{'capture_result': True, 'stream_result': True}", "trace": "self = <test_base_process.TestBaseProcess object at 0x0000024153BBFDF0>\nvideo_name = '大货车合并文件'\n\n @allure.story('step7: 任务分析情况检查')\n @allure.title('视频点播和抓拍结果检查: {video_name}')\n @pytest.mark.parametrize('video_name', videos_name)\n def test_monitor_subtask_result(self, video_name):\n \"\"\" 检查视频点播和抓拍结果 \"\"\"\n index_value = videos_name.index(video_name)\n wait_time = 20 if index_value == 0 else 8\n subtask_result = monitor_subtask_result(self.driver, wait_time, ffprobe_path, self.task_name, subtask_name=video_name)\n logger.info(f\"{video_name}: {subtask_result}\")\n> assert subtask_result == {\"capture_result\": True, \"stream_result\": True}\nE AssertionError: assert None == {'capture_res...result': True}\nE +None\nE -{'capture_result': True, 'stream_result': True}\n\ncases\\test_base_process.py:136: AssertionError"}, "description": " 检查视频点播和抓拍结果 ", "parameters": [{"name": "video_name", "value": "'大货车合并文件'"}], "start": 1614234495933, "stop": 1614234502148, "uuid": "5f6089bf-4d55-4f39-b182-6e90e387576c", "historyId": "f2216e6ef92701bfcdcbebc4089c8484", "testCaseId": "6fbc2bb48182da145d227a668f1d0e12", "fullName": "test_base_process.TestBaseProcess#test_monitor_subtask_result", "labels": [{"name": "story", "value": "step7: 任务分析情况检查"}, {"name": "feature", "value": "测试流程"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"uuid": "43be359b-da50-4c8f-b391-76966879af83", "befores": [{"name": "name", "status": "passed", "start": 1614234514631, "stop": 1614234514631}], "start": 1614234514631, "stop": 1614234518591}
\ No newline at end of file \ No newline at end of file
{"uuid": "bb6cd712-6a9f-4979-ba59-665c75ae734c", "befores": [{"name": "video_name", "status": "passed", "start": 1614234508361, "stop": 1614234508361}], "start": 1614234508361, "stop": 1614234514626}
\ No newline at end of file \ No newline at end of file
{"uuid": "c3614b07-4947-4ac2-8b99-9ba4a8c8925e", "befores": [{"name": "video_name", "status": "passed", "start": 1614234502162, "stop": 1614234502162}], "start": 1614234502162, "stop": 1614234508356}
\ No newline at end of file \ No newline at end of file
{"uuid": "abb69483-e88d-4b47-bc16-591ec7d5b678", "befores": [{"name": "name", "status": "passed", "start": 1614234488480, "stop": 1614234488480}], "start": 1614234488480, "stop": 1614234488816}
\ No newline at end of file \ No newline at end of file
Browser=Chrome
Browser.Version=88.0.4324.182
Stand=Production
Python.Version=3.9
\ No newline at end of file \ No newline at end of file
{"name": "子任务下发状态检查: 路口滞留", "status": "failed", "statusDetails": {"message": "AssertionError: assert '部署中' == '工作中'\n - 工作中\n + 部署中", "trace": "self = <test_base_process.TestBaseProcess object at 0x0000024153AE8BE0>\nname = '路口滞留'\n\n @allure.story('step4: 任务下发状态检查')\n @allure.title('子任务下发状态检查: {name}')\n @pytest.mark.parametrize('name', videos_name)\n def test_create_subtask_status(self, name):\n \"\"\" 检查子任务下发状态 \"\"\"\n print(f'校验子任务下发状态: {name}')\n if name in add_result.keys():\n> assert add_result[name] == '工作中'\nE AssertionError: assert '部署中' == '工作中'\nE - 工作中\nE + 部署中\n\ncases\\test_base_process.py:107: AssertionError"}, "description": " 检查子任务下发状态 ", "parameters": [{"name": "name", "value": "'路口滞留'"}], "start": 1614234488821, "stop": 1614234488821, "uuid": "09636141-abec-4a90-9d0d-8d4c5b805fd7", "historyId": "bbcf2ceb9ca1e70aff9dfad3da6c4660", "testCaseId": "092542573c939fe368ddf490a100baa8", "fullName": "test_base_process.TestBaseProcess#test_create_subtask_status", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "story", "value": "step4: 任务下发状态检查"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"name": "配置下发状态检查: 路口滞留", "status": "broken", "statusDetails": {"message": "KeyError: '路口滞留'", "trace": "self = <test_base_process.TestBaseProcess object at 0x00000241544D17C0>\nname = '路口滞留'\n\n @allure.story('step6: 配置下发状态检查')\n @allure.title('配置下发状态检查: {name}')\n @pytest.mark.parametrize('name', videos_name)\n def test_import_config_status(self, name):\n \"\"\" 检查配置导入状态 \"\"\"\n> assert import_result[name] == {'参数设置': '运行中', '区域设置': '运行中', '标定设置': '运行中'}\nE KeyError: '路口滞留'\n\ncases\\test_base_process.py:125: KeyError"}, "description": " 检查配置导入状态 ", "parameters": [{"name": "name", "value": "'路口滞留'"}], "start": 1614234495903, "stop": 1614234495903, "uuid": "623b20e3-91e7-42e6-8204-99e48ba84317", "historyId": "e3bcef8c6eed4b4ba12dc6542ce1ee04", "testCaseId": "38d7c840d5d5e48b250a1ea189395544", "fullName": "test_base_process.TestBaseProcess#test_import_config_status", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "story", "value": "step6: 配置下发状态检查"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"name": "过车数据检索: 大货车合并文件", "status": "failed", "statusDetails": {"message": "AssertionError: assert (0 > 0)", "trace": "self = <test_base_process.TestBaseProcess object at 0x00000241544D15B0>\nname = '大货车合并文件'\n\n @allure.story('step8: 任务分析情况检查')\n @allure.title('过车数据检索: {name}')\n @pytest.mark.parametrize('name', videos_name)\n def test_result_search(self, name):\n \"\"\" 测试过车记录检索 \"\"\"\n search_result = vehicle_search(self.driver, self.task_name, name)\n logger.info(search_result)\n assert isinstance(search_result, dict)\n> assert search_result['first_page'] > 0 and search_result['total'] > search_result['first_page']\nE assert (0 > 0)\n\ncases\\test_base_process.py:146: AssertionError"}, "description": " 测试过车记录检索 ", "parameters": [{"name": "name", "value": "'大货车合并文件'"}], "start": 1614234514631, "stop": 1614234518582, "uuid": "b5d2a11d-d18d-4e4b-a75a-6b619f45ff5b", "historyId": "eb8e99b399ff26bace187cefc5298397", "testCaseId": "debf346c45902e99315f75f63981b1c5", "fullName": "test_base_process.TestBaseProcess#test_result_search", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "story", "value": "step8: 任务分析情况检查"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
{"name": "配置下发状态检查: 遗撒+非法停车", "status": "broken", "statusDetails": {"message": "KeyError: '遗撒+非法停车'", "trace": "self = <test_base_process.TestBaseProcess object at 0x00000241544A08B0>\nname = '遗撒+非法停车'\n\n @allure.story('step6: 配置下发状态检查')\n @allure.title('配置下发状态检查: {name}')\n @pytest.mark.parametrize('name', videos_name)\n def test_import_config_status(self, name):\n \"\"\" 检查配置导入状态 \"\"\"\n> assert import_result[name] == {'参数设置': '运行中', '区域设置': '运行中', '标定设置': '运行中'}\nE KeyError: '遗撒+非法停车'\n\ncases\\test_base_process.py:125: KeyError"}, "description": " 检查配置导入状态 ", "parameters": [{"name": "name", "value": "'遗撒+非法停车'"}], "start": 1614234495918, "stop": 1614234495918, "uuid": "e8d12edd-b93b-4fd5-982a-7b3f466dd418", "historyId": "cff8ce1f0c834f97033d894ba7db59dd", "testCaseId": "38d7c840d5d5e48b250a1ea189395544", "fullName": "test_base_process.TestBaseProcess#test_import_config_status", "labels": [{"name": "feature", "value": "测试流程"}, {"name": "story", "value": "step6: 配置下发状态检查"}, {"name": "epic", "value": "繁星平台基本操作流程测试"}, {"name": "suite", "value": "test_base_process"}, {"name": "subSuite", "value": "TestBaseProcess"}, {"name": "host", "value": "DESKTOP-QBN98O9"}, {"name": "thread", "value": "8312-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_base_process"}]}
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!