cf486bce7188a51a.json 4.8 KB

1
  1. {"uid":"cf486bce7188a51a","name":"test_02_case[ComM-search_pattern12-ComMNmVariant-LIGHT]","fullName":"testcase.test_case#test_02_case","historyId":"2870f87be42c705b62da367de2ebb7aa","time":{"start":1664025656606,"stop":1664025656607,"duration":1},"status":"broken","statusMessage":"AttributeError: 'NoneType' object has no attribute 'nsmap'","statusTrace":"module_name = 'ComM'\nsearch_pattern = {'xpath_rule': 'CONTAINS', 'xpath_str': './/SHORT-NAME', 'xpath_text': 'Lin1'}\nparam_name = 'ComMNmVariant', expect_value = 'LIGHT'\n\n @pytest.mark.parametrize(\"module_name, search_pattern, param_name, expect_value\", get_xlsx_data_by_item_type(ItemType.CUSTOM_PATTERN))\n def test_02_case(module_name, search_pattern, param_name, expect_value):\n item = (param_name, expect_value)\n> res = check_module_param_check(PROJECT, module_name, item, search_pattern)\n\ntestcase\\test_case.py:33: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\nBase\\ModuleCfgCheck.py:96: in check_module_param_check\n cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)\nBase\\ModuleCfgCheck.py:64: in do_param_check\n match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)\nBase\\CfgCheckBase.py:30: in parameter_match\n param_definition_ref_containers = Arxml.get_all_match_element(element,\nBase\\Arxml.py:112: in get_all_match_element\n result = Arxml.get_xpath_result(root_element, xpath_str, xpath_text, xpath_rule)\nBase\\Arxml.py:92: in get_xpath_result\n ns = Arxml.get_arxml_namespace(element)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nelement = None\n\n @staticmethod\n def get_arxml_namespace(element: etree.Element):\n> ns = element.nsmap\nE AttributeError: 'NoneType' object has no attribute 'nsmap'\n\nBase\\Arxml.py:32: AttributeError","flaky":false,"newFailed":false,"newBroken":false,"newPassed":false,"retriesCount":0,"retriesStatusChange":false,"beforeStages":[],"testStage":{"status":"broken","statusMessage":"AttributeError: 'NoneType' object has no attribute 'nsmap'","statusTrace":"module_name = 'ComM'\nsearch_pattern = {'xpath_rule': 'CONTAINS', 'xpath_str': './/SHORT-NAME', 'xpath_text': 'Lin1'}\nparam_name = 'ComMNmVariant', expect_value = 'LIGHT'\n\n @pytest.mark.parametrize(\"module_name, search_pattern, param_name, expect_value\", get_xlsx_data_by_item_type(ItemType.CUSTOM_PATTERN))\n def test_02_case(module_name, search_pattern, param_name, expect_value):\n item = (param_name, expect_value)\n> res = check_module_param_check(PROJECT, module_name, item, search_pattern)\n\ntestcase\\test_case.py:33: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\nBase\\ModuleCfgCheck.py:96: in check_module_param_check\n cmp_result = mcc.do_param_check([check_item], search_pattern, costum_func)\nBase\\ModuleCfgCheck.py:64: in do_param_check\n match_res = cfg_check.parameter_match(match_element, param_name, param_expect_value)\nBase\\CfgCheckBase.py:30: in parameter_match\n param_definition_ref_containers = Arxml.get_all_match_element(element,\nBase\\Arxml.py:112: in get_all_match_element\n result = Arxml.get_xpath_result(root_element, xpath_str, xpath_text, xpath_rule)\nBase\\Arxml.py:92: in get_xpath_result\n ns = Arxml.get_arxml_namespace(element)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nelement = None\n\n @staticmethod\n def get_arxml_namespace(element: etree.Element):\n> ns = element.nsmap\nE AttributeError: 'NoneType' object has no attribute 'nsmap'\n\nBase\\Arxml.py:32: AttributeError","steps":[],"attachments":[{"uid":"c04fff0381dcb758","name":"log","source":"c04fff0381dcb758.txt","type":"text/plain","size":98},{"uid":"dc39fe86cb463488","name":"stderr","source":"dc39fe86cb463488.txt","type":"text/plain","size":76}],"parameters":[],"hasContent":true,"stepsCount":0,"attachmentsCount":2,"shouldDisplayMessage":true},"afterStages":[],"labels":[{"name":"parentSuite","value":"testcase"},{"name":"suite","value":"test_case"},{"name":"host","value":"LAPTOP-QT63IHFO"},{"name":"thread","value":"24636-MainThread"},{"name":"framework","value":"pytest"},{"name":"language","value":"cpython3"},{"name":"package","value":"testcase.test_case"},{"name":"resultFormat","value":"allure2"}],"parameters":[{"name":"expect_value","value":"'LIGHT'"},{"name":"module_name","value":"'ComM'"},{"name":"param_name","value":"'ComMNmVariant'"},{"name":"search_pattern","value":"{'xpath_str': './/SHORT-NAME', 'xpath_text': 'Lin1', 'xpath_rule': 'CONTAINS'}"}],"links":[],"hidden":true,"retry":true,"extra":{"categories":[],"tags":[]},"source":"cf486bce7188a51a.json","parameterValues":["'LIGHT'","'ComM'","'ComMNmVariant'","{'xpath_str': './/SHORT-NAME', 'xpath_text': 'Lin1', 'xpath_rule': 'CONTAINS'}"]}