Home | Trees | Indices | Help |
---|
|
object --+ | threading._Verbose --+ | threading.Thread --+ | execution_engine.ExecutionEngine --+ | ExecutionThread
A 'ExecutionThread' executes tests in a separate thread.
A 'ExecutionThread' is an 'ExecutionEngine' that runs tests in a separate thread.
This class schedules the tests, plus the setup and cleanup of any resources they require, across one or more targets.
The shedule is determined dynamically as the tests are executed based on which targets are idle and which are not. Therefore, the testing load should be reasonably well balanced, even across a heterogeneous network of testing machines.
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from Inherited from |
|
Set up a test run. 'database' -- The 'Database' containing the tests that will be run. 'test_ids' -- A sequence of IDs of tests to run. Where possible, the tests are started in the order specified. 'context' -- The context object to use when running tests. 'targets' -- A sequence of 'Target' objects, representing targets on which tests may be run. 'result_streams' -- A sequence of 'ResultStream' objects. Each stream will be provided with results as they are available. This thread will not perform any locking of these streams as they are written to; each stream must provide its own synchronization if it will be accessed before 'run' returns. 'expectations' -- If not 'None', a dictionary mapping test IDs to expected outcomes.
|
Run the tests. This method runs the tests specified in the __init__ function.
|
Request termination. Request that the execution thread be terminated. This may take some time; tests that are already running will continue to run, for example. |
Returns true if termination has been requested. return -- True if Terminate has been called. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:41 2011 | http://epydoc.sourceforge.net |