TestCenter Reference
|
Classes | |
class | CancelTestException |
class | ExpectInfos |
class | SetLoggingCallerStackFrame |
class | SuppressedErrors |
class | SuppressedWarnings |
class | TC_ChangeSet |
class | TestHelper |
Singleton for important helper facilities for the different tests. More... | |
Functions | |
takeCurrentSpecialMessage () | |
emitSpecialMessage (loggingMethod, file, line, type, message, escapeHtml=True, formattedStack='') | |
emitSpecialCommand (file, line, type, fileList, message, escapeHtml=True) | |
UseStackFrameFromCallerForLogging (func) | |
regexpToString (exp) | |
Variables | |
bool | _mlab_do_not_reload = True |
str | gCurrentSpecialMessage = "" |
str | gSpecialMessageMarker = "<MLAB TC=1/>" |
bool | gEnablePrettyLogging = False |
bool | gLogInfoMessages = True |
IncreaseLoggingStackDepthDecorator = UseStackFrameFromCallerForLogging | |
TestSupport.TestHelper.emitSpecialCommand | ( | file, | |
line, | |||
type, | |||
fileList, | |||
message, | |||
escapeHtml = True ) |
Definition at line 69 of file TestHelper.py.
TestSupport.TestHelper.emitSpecialMessage | ( | loggingMethod, | |
file, | |||
line, | |||
type, | |||
message, | |||
escapeHtml = True, | |||
formattedStack = '' ) |
Definition at line 46 of file TestHelper.py.
TestSupport.TestHelper.regexpToString | ( | exp | ) |
Definition at line 124 of file TestHelper.py.
Referenced by TestSupport.TestHelper.SuppressedErrors.handleResult(), TestSupport.TestHelper.SuppressedWarnings.handleResult(), and TestSupport.TestHelper.ExpectInfos.handleResult().
TestSupport.TestHelper.takeCurrentSpecialMessage | ( | ) |
Definition at line 40 of file TestHelper.py.
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 91 of file TestHelper.py.
|
protected |
Definition at line 33 of file TestHelper.py.
str TestSupport.TestHelper.gCurrentSpecialMessage = "" |
Definition at line 35 of file TestHelper.py.
bool TestSupport.TestHelper.gEnablePrettyLogging = False |
Definition at line 37 of file TestHelper.py.
bool TestSupport.TestHelper.gLogInfoMessages = True |
Definition at line 38 of file TestHelper.py.
str TestSupport.TestHelper.gSpecialMessageMarker = "<MLAB TC=1/>" |
Definition at line 36 of file TestHelper.py.
TestSupport.TestHelper.IncreaseLoggingStackDepthDecorator = UseStackFrameFromCallerForLogging |
Definition at line 101 of file TestHelper.py.