diff --git a/zigzag/zigzag_test_log.py b/zigzag/zigzag_test_log.py index 83edacf..78fcd1b 100644 --- a/zigzag/zigzag_test_log.py +++ b/zigzag/zigzag_test_log.py @@ -930,9 +930,10 @@ def automation_content(self): """ if self._automation_content is None: try: - self._automation_content = _ZigZagTestLogTempest._TEMPEST_UUID_RGX.search( - self._testcase_xml.attrib['name']).group(0) - except AttributeError: + automation_content = list(filter(_ZigZagTestLogTempest._TEMPEST_UUID_RGX.search, + self.test_execution_parameters))[0] + self._automation_content = _ZigZagTestLogTempest._TEMPEST_UUID_RGX.search(automation_content).group(0) + except IndexError: # happens when we filter to an empty list raise ZigZagTestLogError('OHH snap there is no UUID!!!') return self._automation_content