95 showTestFunctionSortingLiterals=False,
97 assert isinstance(testCaseName, str)
102 commonAttributes = {
"name": str(testCaseName),
"type":
"FunctionalTestCase"}
104 self.
_xml = etree.Element(
"ExtraTestCaseResult")
106 information = etree.SubElement(self.
_xml,
"Information")
107 testCaseInfo = etree.SubElement(information,
"TestCase")
108 infoAttributes = {
"timeout":
"0"}
109 infoAttributes.update(commonAttributes)
110 for key
in infoAttributes:
111 testCaseInfo.set(key, infoAttributes[key])
112 etree.SubElement(testCaseInfo,
"Author").text = str(author)
113 etree.SubElement(testCaseInfo,
"Package").text = str(package)
114 etree.SubElement(testCaseInfo,
"Maintainer").text = str(maintainer)
if maintainer
else ""
115 etree.SubElement(testCaseInfo,
"Comment").text = str(comment)
if comment
else ""
116 etree.SubElement(testCaseInfo,
"File").text = str(file)
if file
else ""
117 etree.SubElement(testCaseInfo,
"Line").text = str(line)
if line
else ""
118 etree.SubElement(testCaseInfo,
"showTestFunctionSortingLiterals").text = (
119 "1" if showTestFunctionSortingLiterals
else "0"
124 result = etree.SubElement(self.
_xml,
"Result")
126 resultAttributes = {
"retries":
"0",
"duration": str(duration)}
127 resultAttributes.update(commonAttributes)
128 for key
in resultAttributes: