import xml.etree.ElementTree as ET
root = ET.parse('output.xml').getroot()
for suites in root.findall('suite'):
for test in suites.findall('test'):
for status in test.findall('status'):
print status.attrib['status'], test.attrib['id']
root = ET.parse('output.xml').getroot()
for suites in root.findall('suite'):
for test in suites.findall('test'):
for status in test.findall('status'):
print status.attrib['status'], test.attrib['id']
No comments:
Post a Comment