TestCenter Reference
TestCenterAdvanced.TestCase.LogCollector Class Reference

Allows collecting log messages and logging them later. More...

Inheritance diagram for TestCenterAdvanced.TestCase.LogCollector:
TestCenterAdvanced.TestCase.LogCollectorBase

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

Detailed Description

Allows collecting log messages and logging them later.

Keeps the logging state during log collection.

Definition at line 103 of file TestCase.py.

Constructor & Destructor Documentation

◆ __init__()

TestCenterAdvanced.TestCase.LogCollector.__init__ ( self,
testHelper = None )

Definition at line 107 of file TestCase.py.

References __init__().

Referenced by __init__().

Member Function Documentation

◆ logMessages()

TestCenterAdvanced.TestCase.LogCollector.logMessages ( self,
logHandler )

◆ startLogCollect()

TestCenterAdvanced.TestCase.LogCollector.startLogCollect ( self)

Reimplemented from TestCenterAdvanced.TestCase.LogCollectorBase.

Definition at line 114 of file TestCase.py.

◆ stopLogCollect()

TestCenterAdvanced.TestCase.LogCollector.stopLogCollect ( self)

Member Data Documentation

◆ log

str TestCenterAdvanced.TestCase.LogCollector.log = ""

Definition at line 112 of file TestCase.py.

Referenced by logMessages(), and stopLogCollect().

◆ messageCache

TestCenterAdvanced.TestCase.LogCollector.messageCache = []

Definition at line 111 of file TestCase.py.

Referenced by logMessages().


The documentation for this class was generated from the following file:
  • MeVisLab/Standard/Modules/Macros/Tests/TestCenterAdvanced/TestCase.py