Exemple #1
0
 def setOptionalHeaderInfo(self, logData):
     """get optional header info - only present if called by Komodo"""
     logData.systemName = logData.setOptional(self.RE.systemName)
     logData.build = logData.setOptional(self.RE.shortBuild) # preferred
     if logData.build == 'NA':
         logData.build = logData.setOptional(self.RE.build)  # revert to previous
     logData.geography = logData.setOptional(self.RE.geography)
     logData.country = logData.setOptionalNull(self.RE.country)
     if logData.country and len(logData.country) != 3:  # Only accept 3 character ISO3 codes - RTC 57575
         logData.country = None
     logData.setBrowser(self.RE.browser)
Exemple #2
0
 def setOptionalCaseInfo(self, logData):
     """get optional case info - only present if inserted in log during manual execution"""
     logData.commFirmwareManual = logData.setOptional(self.RE.commFirmwareManual)
     logData.commSerial = logData.setOptional(self.RE.commSerial)
     logData.commIdentifier = logData.setOptional(self.RE.commIdentifier)
     logData.pgSerial = logData.setOptional(self.RE.pgSerial)
Exemple #3
0
 def setExceptionInfo(self, logData):
     """get information about exceptions thrown in the test, if any"""
     logData.exceptionInfo = logData.setExceptionInfo(self.RE.exceptionGroups)
     logData.traceback = logData.setOptional(self.RE.traceback)
Exemple #4
0
 def setAutomationHeaderInfo(self, logData):
     """get information which is only present if the test was run from an automated test script"""
     logData.komodoVersion = logData.setOptional(self.RE.komodoVersion)
     logData.commFirmwareAuto = logData.setOptional(self.RE.commFirmwareAuto)