efd7456010382fcf.json 3.7 KB

1
  1. {"uid":"efd7456010382fcf","name":"test_01_case[Dem-DemWarningIndicatorRequestedProcessing-DEM_PROCESS_WIR_ALL_DTC]","fullName":"testcase.test_case#test_01_case","historyId":"58ebed3b15a7bc82f1e1d9f44fd7be0b","time":{"start":1664025514725,"stop":1664025514725,"duration":0},"description":"\n 该用例适用于 对某一配置项值进行检查,可能有多个container 都具有该配置项,但所有配置项的值都相同。\n 当有一个值与预期值不匹配时,将报错。\n :param module_name:\n :param param_name:\n :param expect_value:\n :return:\n ","descriptionHtml":"<pre><code>该用例适用于 对某一配置项值进行检查,可能有多个container 都具有该配置项,但所有配置项的值都相同。\n当有一个值与预期值不匹配时,将报错。\n:param module_name:\n:param param_name:\n:param expect_value:\n:return:\n</code></pre>\n","status":"broken","statusMessage":"AttributeError: 'ModuleCfgCheck' object has no attribute 'arxml_root'","statusTrace":"module_name = 'Dem', param_name = 'DemWarningIndicatorRequestedProcessing'\nexpect_value = 'DEM_PROCESS_WIR_ALL_DTC'\n\n @pytest.mark.parametrize(\"module_name, param_name, expect_value\", get_xlsx_data_by_item_type(ItemType.FIXED_VALUE))\n def test_01_case(module_name, param_name, expect_value):\n '''\n 该用例适用于 对某一配置项值进行检查,可能有多个container 都具有该配置项,但所有配置项的值都相同。\n 当有一个值与预期值不匹配时,将报错。\n :param module_name:\n :param param_name:\n :param expect_value:\n :return:\n '''\n item = (param_name, expect_value)\n> res = check_module_param_check(PROJECT, module_name, item)\n\ntestcase\\test_case.py:26: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\nBase\\ModuleCfgCheck.py:96: in check_module_param_check\n cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nself = <Base.ModuleCfgCheck.ModuleCfgCheck object at 0x000001F943D8BDC0>\ncheck_items = [('DemWarningIndicatorRequestedProcessing', 'DEM_PROCESS_WIR_ALL_DTC')]\nsearch_pattern = None, get_match_element_function = None\n\n def do_param_check(self, check_items: List, search_pattern=None, get_match_element_function=None) -> bool:\n match_res = False\n for param_name, param_expect_value in check_items:\n cfg_check = CfgCheckBase()\n if get_match_element_function != None:\n match_element = get_match_element_function(check_items, **search_pattern)\n else:\n> match_element = self.arxml_root\nE AttributeError: 'ModuleCfgCheck' object has no attribute 'arxml_root'\n\nBase\\ModuleCfgCheck.py:63: AttributeError","flaky":false,"newFailed":false,"newBroken":false,"newPassed":false,"retriesCount":0,"retriesStatusChange":false,"beforeStages":[],"afterStages":[],"labels":[{"name":"parentSuite","value":"testcase"},{"name":"suite","value":"test_case"},{"name":"host","value":"LAPTOP-QT63IHFO"},{"name":"thread","value":"40940-MainThread"},{"name":"framework","value":"pytest"},{"name":"language","value":"cpython3"},{"name":"package","value":"testcase.test_case"},{"name":"resultFormat","value":"allure2"}],"parameters":[{"name":"expect_value","value":"'DEM_PROCESS_WIR_ALL_DTC'"},{"name":"module_name","value":"'Dem'"},{"name":"param_name","value":"'DemWarningIndicatorRequestedProcessing'"}],"links":[],"hidden":true,"retry":true,"extra":{"categories":[],"tags":[]},"source":"efd7456010382fcf.json","parameterValues":["'DEM_PROCESS_WIR_ALL_DTC'","'Dem'","'DemWarningIndicatorRequestedProcessing'"]}