|
TestCenter Reference
|
Allows collecting log messages and logging them later. More...
Public Member Functions | |
| __init__ (self, testHelper=None) | |
| startLogCollect (self) | |
| stopLogCollect (self) | |
| logMessages (self, logHandler) | |
| Public Member Functions inherited from TestCenterAdvanced.TestCase.LogCollectorBase | |
| __init__ (self, testHelper) | |
| logHandler (self) | |
| collect (self) | |
| clearState (self) | |
Public Attributes | |
| list | messageCache = [] |
| str | log = "" |
| Public Attributes inherited from TestCenterAdvanced.TestCase.LogCollectorBase | |
| bool | hasWarnings = False |
| bool | hasErrors = False |
| logHandler | |
Additional Inherited Members | |
| Protected Attributes inherited from TestCenterAdvanced.TestCase.LogCollectorBase | |
| _testHelper = testHelper | |
Allows collecting log messages and logging them later.
Keeps the logging state during log collection.
Definition at line 103 of file TestCase.py.
| TestCenterAdvanced.TestCase.LogCollector.__init__ | ( | self, | |
| testHelper = None ) |
| TestCenterAdvanced.TestCase.LogCollector.logMessages | ( | self, | |
| logHandler ) |
Definition at line 128 of file TestCase.py.
References log, TestCenterAdvanced.TestCase.LogCollectorBase.logHandler, TestCenterAdvanced.TestCase.RunTestFunctionData.logHandler, and messageCache.
| TestCenterAdvanced.TestCase.LogCollector.startLogCollect | ( | self | ) |
Reimplemented from TestCenterAdvanced.TestCase.LogCollectorBase.
Definition at line 114 of file TestCase.py.
| TestCenterAdvanced.TestCase.LogCollector.stopLogCollect | ( | self | ) |
Reimplemented from TestCenterAdvanced.TestCase.LogCollectorBase.
Definition at line 121 of file TestCase.py.
References log, TestCenterAdvanced.TestCase.LogCollectorBase.logHandler, TestCenterAdvanced.TestCase.RunTestFunctionData.logHandler, and stopLogCollect().
Referenced by stopLogCollect().
| str TestCenterAdvanced.TestCase.LogCollector.log = "" |
Definition at line 112 of file TestCase.py.
Referenced by logMessages(), and stopLogCollect().
| TestCenterAdvanced.TestCase.LogCollector.messageCache = [] |
Definition at line 111 of file TestCase.py.
Referenced by logMessages().