예제 #1
0
 def _savereport(self, report, runid):
     #text
     textfilename = Utility.expand(self.getoption('BaseReporter_TextFile'), runid = runid)
     textcontent = str(report)
     Utility.writefile(textfilename, textcontent)
     #html
     htmlfilename = Utility.expand(self.getoption('BaseReporter_HtmlFile'), runid = runid)
     htmlcontent = report.tohtml()
     Utility.writefile(htmlfilename, htmlcontent)
예제 #2
0
 def _savereport(self, report, runid):
     #text
     textfilename = Utility.expand(self.getoption('BaseReporter_TextFile'),
                                   runid=runid)
     textcontent = str(report)
     Utility.writefile(textfilename, textcontent)
     #html
     htmlfilename = Utility.expand(self.getoption('BaseReporter_HtmlFile'),
                                   runid=runid)
     htmlcontent = report.tohtml()
     Utility.writefile(htmlfilename, htmlcontent)
예제 #3
0
 def _saveextract(self, runnode, runid):
     filename = Utility.expand(self.getoption('BaseExtractor_XmlFile'), runid = runid)
     content = runnode.toprettyxml()
     Utility.writefile(filename, content)