TestCenter Reference
Logging.py File Reference

Go to the source code of this file.

Namespaces

namespace  TestSupport
 A package of python modules helping to build tests.
 
namespace  TestSupport.Logging
 Package to provide logging functions.
 

Functions

 TestSupport.Logging.setStopped (stopped)
 
 TestSupport.Logging.info (message, stack=False, type='', depth=0)
 Put an info message to the log.
 
 TestSupport.Logging.infoHTML (message, type='', depth=0)
 Put an info message to the log while interpreting HTML.
 
 TestSupport.Logging.warning (message, stack=False, type='', depth=0)
 Put a warning to the log.
 
 TestSupport.Logging.warningHTML (message, type='', depth=0)
 Put a warning to the log while interpreting HTML.
 
 TestSupport.Logging.error (message, stack=False, type='', depth=0)
 Put an error to the log.
 
 TestSupport.Logging.errorHTML (message, type='', depth=0)
 Put an error to the log while interpreting HTML.
 
 TestSupport.Logging.showImage (description, *files)
 Put the ImageShow command to the log.
 
 TestSupport.Logging.showFile (description, *files)
 Put the FileShow command to the log.
 
 TestSupport.Logging.showDiff (description, fromLines, toLines, showOnlyContextOfDiff=False, numberOfContextLines=10)
 Creates a HTML diff from the two files and puts the FileShow command to the log.
 
 TestSupport.Logging.getStack (depth=0)
 Get the current stack.
 

Variables

bool TestSupport.Logging.gStopOnFirstError = False
 
bool TestSupport.Logging.gStopped = False