TestCenter Reference
|
Classes | |
class | SetLoggingCallerStackFrame |
class | SuppressedErrors |
class | SuppressedWarnings |
class | ExpectInfos |
class | TC_ChangeSet |
class | CancelTestException |
class | TestHelper |
Singleton for important helper facilities for the different tests. More... | |
Functions | |
def | takeCurrentSpecialMessage () |
def | emitSpecialMessage (loggingMethod, file, line, type, message, escapeHtml=True, formattedStack='') |
def | emitSpecialCommand (file, line, type, fileList, message, escapeHtml=True) |
def | UseStackFrameFromCallerForLogging (func) |
def | regexpToString (exp) |
Variables | |
string | gCurrentSpecialMessage = "" |
string | gSpecialMessageMarker = "<MLAB TC=1/>" |
bool | gEnablePrettyLogging = False |
bool | gLogInfoMessages = True |
def | IncreaseLoggingStackDepthDecorator = UseStackFrameFromCallerForLogging |
def TestSupport.TestHelper.emitSpecialCommand | ( | file, | |
line, | |||
type, | |||
fileList, | |||
message, | |||
escapeHtml = True |
|||
) |
Definition at line 75 of file TestHelper.py.
Referenced by TestSupport.Logging.errorHTML().
def TestSupport.TestHelper.emitSpecialMessage | ( | loggingMethod, | |
file, | |||
line, | |||
type, | |||
message, | |||
escapeHtml = True , |
|||
formattedStack = '' |
|||
) |
Definition at line 52 of file TestHelper.py.
Referenced by TestSupport.TestHelper.TC_ChangeSet.__init__(), and TestSupport.Logging.setStopped().
def TestSupport.TestHelper.regexpToString | ( | exp | ) |
Definition at line 130 of file TestHelper.py.
Referenced by TestSupport.TestHelper.SuppressedErrors.handleResult(), TestSupport.TestHelper.SuppressedWarnings.handleResult(), and TestSupport.TestHelper.ExpectInfos.handleResult().
def TestSupport.TestHelper.takeCurrentSpecialMessage | ( | ) |
Definition at line 46 of file TestHelper.py.
def TestSupport.TestHelper.UseStackFrameFromCallerForLogging | ( | func | ) |
This decorator is used to specify the stack frame that is used to detect the location while logging. It uses the stack frame that calls the given function. Functions with this decorator can call each other recursively. The first stack frame of such a recursion is then used.
Definition at line 97 of file TestHelper.py.
string TestSupport.TestHelper.gCurrentSpecialMessage = "" |
Definition at line 41 of file TestHelper.py.
bool TestSupport.TestHelper.gEnablePrettyLogging = False |
Definition at line 43 of file TestHelper.py.
bool TestSupport.TestHelper.gLogInfoMessages = True |
Definition at line 44 of file TestHelper.py.
string TestSupport.TestHelper.gSpecialMessageMarker = "<MLAB TC=1/>" |
Definition at line 42 of file TestHelper.py.
def TestSupport.TestHelper.IncreaseLoggingStackDepthDecorator = UseStackFrameFromCallerForLogging |
Definition at line 107 of file TestHelper.py.