Table of Contents

Class: ProcessTarget qm/test/classes/process_target.py

A ProcessTarget runs tests in child processes.

Base Classes   
Target
Methods   
IsIdle
RunTest
Start
Stop
_GetInterpreter
__ReadResults
__init__
  IsIdle 
IsIdle ( self )

Return true if the target is idle.

returns
True if the target is idle. If the target is idle, additional tasks may be assigned to it.
  RunTest 
RunTest (
        self,
        descriptor,
        context,
        )

Run the test given by test_id.

descriptor
The TestDescriptor for the test.
context
The Context in which to run the test.
  Start 
Start (
        self,
        response_queue,
        engine=None,
        )

Start the target.

response_queue
The Queue in which the results of test executions are placed.
engine
The ExecutionEngine that is starting the target, or None if this target is being started without an ExecutionEngine.
  Stop 
Stop ( self )

Stop the target.

postconditions
The target may no longer be used.
  _GetInterpreter 
_GetInterpreter ( self )

Return the interpreter to use.

returns
A list giving the path to an interpreter, and arguments to provide the interpreter. This interpreter is used to run QMTest. If [] is returned, then no intepreter is used.
  __ReadResults 
__ReadResults ( self,  fd )

Read results from one of the children.

fd
The descriptor from which the results should be read.
  __init__ 
__init__ (
        self,
        database,
        properties,
        )

Construct a new ProcessTarget.

database
The Database containing the tests that will be run.
properties
A dictionary mapping strings (property names) to strings (property values).

Table of Contents

This document was automatically generated on Mon Jan 3 09:42:29 2005 by HappyDoc version 2.1