1 |
- {"uid":"31be5f406a17e3f7","name":"test_02_case[ComM-search_pattern10-ComMNmVariant-FULL]","fullName":"testcase.test_case#test_02_case","historyId":"1f0ea13ac51907acfb02692eed5e8afa","time":{"start":1664025538558,"stop":1664025538559,"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': 'PTCANConnector'}\nparam_name = 'ComMNmVariant', expect_value = 'FULL'\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': 'PTCANConnector'}\nparam_name = 'ComMNmVariant', expect_value = 'FULL'\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":"827d1e85a77dcc9a","name":"log","source":"827d1e85a77dcc9a.txt","type":"text/plain","size":108},{"uid":"7a6c388c4b26c8f7","name":"stderr","source":"7a6c388c4b26c8f7.txt","type":"text/plain","size":86}],"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":"48112-MainThread"},{"name":"framework","value":"pytest"},{"name":"language","value":"cpython3"},{"name":"package","value":"testcase.test_case"},{"name":"resultFormat","value":"allure2"}],"parameters":[{"name":"expect_value","value":"'FULL'"},{"name":"module_name","value":"'ComM'"},{"name":"param_name","value":"'ComMNmVariant'"},{"name":"search_pattern","value":"{'xpath_str': './/SHORT-NAME', 'xpath_text': 'PTCANConnector', 'xpath_rule': 'CONTAINS'}"}],"links":[],"hidden":true,"retry":true,"extra":{"categories":[],"tags":[]},"source":"31be5f406a17e3f7.json","parameterValues":["'FULL'","'ComM'","'ComMNmVariant'","{'xpath_str': './/SHORT-NAME', 'xpath_text': 'PTCANConnector', 'xpath_rule': 'CONTAINS'}"]}
|