| | |
| | | xml += ' <stop>%s</stop>\n' % self.stop |
| | | xml += ' <result>%s</result>\n' % self.result |
| | | xml += ' <duration>%d</duration>\n' % self.duration |
| | | xml += ' <log>\n' |
| | | xml += ' <log>\n<![CDATA[' |
| | | xml += '%s' % self.log |
| | | xml += ' </log>\n' |
| | | xml += ' ]]></log>\n' |
| | | xml += ' </test>\n' |
| | | return xml |
| | | |
| | | def appendLog(self, log): |
| | | log=log.replace('<','') |
| | | log=log.replace('>','') |
| | | log=log.replace('&','&amp;') |
| | | self.log +=' %s\n' % log |
| | | #log=log.replace('<','') |
| | | #log=log.replace('>','') |
| | | #log=log.replace('&','&amp;') |
| | | self.log +='%s\n' % log |
| | | |
| | | def getName(self): |
| | | return self.name |