Author: gnichols
Date: 2010-03-05 19:16:26 +0000 (Fri, 05 Mar 2010)
New Revision: 419
Modified:
trunk/v7/rundocument.py
Log:
555895 - FEAT: results.xml could divide out the various sub tests.
Modified: trunk/v7/rundocument.py
===================================================================
--- trunk/v7/rundocument.py 2010-03-05 19:15:42 UTC (rev 418)
+++ trunk/v7/rundocument.py 2010-03-05 19:16:26 UTC (rev 419)
@@ -127,16 +127,17 @@
def __getTestOutput(self, outputElement):
output = ""
- for node in outputElement.childNodes:
- if node.nodeType == node.ELEMENT_NODE and node.tagName == Tags.output:
- output += "\nSection %s " % node.getAttribute(Attributes.name)
- if node.getAttribute(Attributes.description):
- output += " - " +
node.getAttribute(Attributes.description)
- output += "\n"
- output += self.__getTestOutput(node)
- output += "End Section\n"
- elif node.nodeType == node.TEXT_NODE:
- output += node.data
+ if outputElement:
+ for node in outputElement.childNodes:
+ if node.nodeType == node.ELEMENT_NODE and node.tagName == Tags.output:
+ output += "\nSection %s " %
node.getAttribute(Attributes.name)
+ if node.getAttribute(Attributes.description):
+ output += " - " +
node.getAttribute(Attributes.description)
+ output += "\n"
+ output += self.__getTestOutput(node)
+ output += "End Section\n"
+ elif node.nodeType == node.TEXT_NODE:
+ output += node.data
return output
def setTestOutputXXX(self, output):
Show replies by date