Package pysys :: Module baserunner
[frames] | no frames]

Module baserunner

source code

Contains the base class used to perform the execution and audit trail reporting of a set of tests.

Test selection is by default performed through the pysys.py launch script, which locates and creates a set of class instances representing the tests to be executed. These are passed to the base runner as a list of object references, so that the base runner can then iterate through the list to perform the test execution. For more information see the pysys.baserunner.BaseRunner API documentation.

Classes
  BaseRunner
The base class for executing a set of PySys testcases.
  TestContainer
Class used for co-ordinating the execution of a single test case.
Variables
  global_lock = threading.Lock()
  N_CPUS = 8
  BACKGROUND = 10
  BLOCKED = 26
  DEFAULT_DESCRIPTOR = ['pysystest.xml', '.pysystest', 'descript...
  DEFAULT_FORMAT_RUNLOG = '%(asctime)s %(levelname)-5s %(message)s'
  DEFAULT_FORMAT_STDOUT = '%(asctime)s %(levelname)-5s %(message)s'
  DEFAULT_GROUP = ''
  DEFAULT_INPUT = 'Input'
  DEFAULT_MAKER = ['ConsoleMakeTestHelper', 'pysys.launcher.cons...
  DEFAULT_MODULE = 'run'
  DEFAULT_OUTPUT = 'Output'
  DEFAULT_PROJECTFILE = ['pysysproject.xml', '.pysysproject']
  DEFAULT_REFERENCE = 'Reference'
  DEFAULT_RUNNER = ['BaseRunner', 'pysys.baserunner']
  DEFAULT_STYLESHEET = '/System/Library/Frameworks/Python.framew...
  DEFAULT_TESTCLASS = 'PySysTest'
  DEFAULT_TIMEOUT = 600
  DEFAULT_WRITER = ['XMLResultsWriter', 'pysys.writer', 'testsum...
  DEVNULL = '/dev/null'
  DUMPEDCORE = 25
  DYLD_LIBRARY_PATH = '/usr/lib:/usr/local/lib'
  ENVSEPERATOR = ':'
  FAILED = 23
  FAILS = [26, 25, 24, 23]
  FALSE = False
  FOREGROUND = 11
  HOSTNAME = '10070'
  INSPECT = 21
  LD_LIBRARY_PATH = ''
  LOOKUP = {False: 'FALSE', True: 'TRUE', 20: 'PASSED', 21: 'REQ...
  NOTVERIFIED = 22
  OSFAMILY = 'unix'
  OSWALK_IGNORES = ['Input', 'Output', 'Reference', 'CVS', '.svn']
  PASSED = 20
  PATH = '/bin:/usr/bin:/usr/sbin:/usr/local/bin'
  PLATFORM = 'darwin'
  PRECEDENT = [27, 26, 25, 24, 23, 22, 21, 20]
  PROJECT = None
  SITE_PACKAGES_DIR = '/System/Library/Frameworks/Python.framewo...
  SKIPPED = 27
  TIMEDOUT = 24
  TIMEOUTS = {'ManualTester': 1800, 'WaitForFile': 30, 'WaitForP...
  TRUE = True
  __package__ = 'pysys'
  stdoutHandler = ThreadedStreamHandler(sys.stdout)
Variables Details

DEFAULT_DESCRIPTOR

Value:
['pysystest.xml', '.pysystest', 'descriptor.xml']

DEFAULT_MAKER

Value:
['ConsoleMakeTestHelper', 'pysys.launcher.console']

DEFAULT_STYLESHEET

Value:
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.\
7/site-packages/pysys-log.xsl'

DEFAULT_WRITER

Value:
['XMLResultsWriter',
 'pysys.writer',
 'testsummary_%Y%m%d%H%M%S.xml',
 {}]

LOOKUP

Value:
{False: 'FALSE',
 True: 'TRUE',
 20: 'PASSED',
 21: 'REQUIRES INSPECTION',
 22: 'NOT VERIFIED',
 23: 'FAILED',
 24: 'TIMED OUT',
 25: 'DUMPED CORE',
...

SITE_PACKAGES_DIR

Value:
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.\
7/site-packages'

TIMEOUTS

Value:
{'ManualTester': 1800,
 'WaitForFile': 30,
 'WaitForProcessStop': 10,
 'WaitForSignal': 60,
 'WaitForSocket': 60}