The base class for executing a set of PySys testcases.
BaseRunner is the parent class for running a set of PySys system
testcases. The runner is instantiated with a list of pysys.xml.descriptor.XMLDescriptorContainer objects
detailing the set of testcases to be run. The runner iterates through the
descriptor list and for each entry imports the pysys.basetest.BaseTest subclass for the testcase,
creates an instance of the test class and then calls the setup, execute,
validate and cleanup methods of the test class instance. The runner is
responsible for ensuring the output subdirectory of each testcase is
purged prior to test execution to remove stale output from a previous
run, detects any core files produced during execution of a testcase from
processes started via the pysys.process module, and performs audit trail logging
of the test results on completion of running a set of testcases.
|
__init__(self,
record,
purge,
cycle,
mode,
threads,
outsubdir,
descriptors,
xargs)
Create an instance of the BaseRunner class. |
source code
|
|
|
|
|
setup(self)
Setup method which may optionally be overridden to perform custom
setup operations prior to execution of a set of testcases. |
source code
|
|
|
testComplete(self,
testObj,
dir)
Test complete method which performs completion actions after
execution of a testcase. |
source code
|
|
|
cycleComplete(self)
Cycle complete method which may optionally be overridden to perform
custom operations between the repeated execution of a set of
testcases. |
source code
|
|
|
cleanup(self)
Cleanup method which may optionally be overridden to perform custom
cleanup operations after execution of all testcases. |
source code
|
|
|
start(self,
printSummary=True)
Start the execution of a set of testcases, returning a dictionary of
the testcase outcomes. |
source code
|
|
|
printSummary(self)
Print the output summary at the completion of a test run. |
source code
|
|
|
|
|
|
|
handleKbrdInt(self,
prompt=True)
Handle a keyboard exception caught during running of a set of
testcases. |
source code
|
|
Inherited from process.user.ProcessUser :
__del__ ,
__getattr__ ,
getInstanceCount ,
signalProcess ,
startProcess ,
stopProcess ,
waitForFile ,
waitForSignal ,
waitForSocket ,
waitProcess ,
writeProcess
|