python report module shows up in the tree

This commit is contained in:
sidheshenator 2015-03-26 14:11:40 -04:00
parent f18420aa11
commit dca20e80cd

View File

@ -64,6 +64,7 @@ class SampleGeneralReportModule(GeneralReportModuleAdapter):
# Write the result to the report file. # Write the result to the report file.
report = open(reportPath + '\\' + self.getRelativeFilePath(), 'w') report = open(reportPath + '\\' + self.getRelativeFilePath(), 'w')
report.write("file count = %d" % fileCount) report.write("file count = %d" % fileCount)
Case.getCurrentCase().addReport(report.name, "SampleGeneralReportModule", "Sample Python Report");
report.close() report.close()
progressBar.increment() progressBar.increment()
progressBar.complete() progressBar.complete()