def __init__(self, main_test=None, *args, **kwargs):
"""Initialize the result handler.
Note:
Loads the signatures from the DB.
Args:
main_test (object): the main test instance.
"""
super(SignatureHandler, self).__init__(main_test, *args, **kwargs)
self.row_number = 0
self.signatures = SignatureData.objects.all()
self.output_file_path = os.path.join(self.main_test.work_dir,
self.EXCEL_WORKBOOK_NAME)
self.workbook = xlwt.Workbook(encoding=self.EXCEL_FILE_ENCODING)
self.sheet = self.workbook.add_sheet(self.EXCEL_SHEET_NAME,
cell_overwrite_ok=True)
self._prepare_excel_file()
评论列表
文章目录