Lines Matching refs:xmlnode
11 def __init__(self, xmlnode): argument
12 self.fixture = xmlnode.getAttribute("classname")
13 self.name = xmlnode.getAttribute("name")
14 self.value_param = xmlnode.getAttribute("value_param")
15 self.type_param = xmlnode.getAttribute("type_param")
17 custom_status = xmlnode.getAttribute("custom_status")
18 failures = xmlnode.getElementsByTagName("failure")
25 self.status = xmlnode.getAttribute("status")
32 self.parseLongMetric(xmlnode, "bytesIn");
33 self.parseLongMetric(xmlnode, "bytesOut");
34 self.parseIntMetric(xmlnode, "samples");
35 self.parseIntMetric(xmlnode, "outliers");
36 self.parseFloatMetric(xmlnode, "frequency", 1);
37 self.parseLongMetric(xmlnode, "min");
38 self.parseLongMetric(xmlnode, "median");
39 self.parseLongMetric(xmlnode, "gmean");
40 self.parseLongMetric(xmlnode, "mean");
41 self.parseLongMetric(xmlnode, "stddev");
42 self.parseFloatMetric(xmlnode, "gstddev");
43 self.parseFloatMetric(xmlnode, "time");
45 def parseLongMetric(self, xmlnode, name, default = 0): argument
46 if xmlnode.hasAttribute(name):
47 tmp = xmlnode.getAttribute(name)
53 def parseIntMetric(self, xmlnode, name, default = 0): argument
54 if xmlnode.hasAttribute(name):
55 tmp = xmlnode.getAttribute(name)
61 def parseFloatMetric(self, xmlnode, name, default = 0): argument
62 if xmlnode.hasAttribute(name):
63 tmp = xmlnode.getAttribute(name)
69 def parseStringMetric(self, xmlnode, name, default = None): argument
70 if xmlnode.hasAttribute(name):
71 tmp = xmlnode.getAttribute(name)