The image below is the result of performance testing. One of my issue is: How can I transfer my result into a XML file?
I've been trying file writing method. But what if the data I need to parse is massive? Is there a method or plugin to done it with a smarter way?
My code so far:
def generate_xml(jank_perc):
with open('jankyresult.xml','a') as f:
f.write('<?xml version="1.0" ?>\n')
f.write("<root>\n")
f.write(" <doc>\n")
f.write(" <Jankyframes>" + jank_perc + '%' + "</Jankyframes>\n")
f.write(" </doc>\n")
f.write("</root>\n")
I don't want to create manually. I hope there is a smarter way to do it. Thanks for answering!
