Home | Trees | Indices | Help |
---|
|
object --+ | extension.Extension --+ | target.Target --+ | ThreadTarget
A target implementation that runs tests in local threads.
Each thread executes one test or resource at a time.
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
arguments = [qm.fields.IntegerField(name= "threads", title= "N A list of the arguments to the extension class. |
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Construct a 'ThreadTarget'. 'database' -- The 'Database' containing the tests that will be run. 'properties' -- A dictionary mapping strings (property names) to strings (property values).
|
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.
|
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 the target. postconditions -- The target may no longer be used.
|
Run the test given by 'descriptor'. 'descriptor' -- The 'TestDescriptor' for the test. 'context' -- The 'Context' in which to run the test. Derived classes may override this method.
|
Run the test given by 'descriptor'. 'descriptor' -- The 'TestDescriptor' for the test. 'context' -- The 'Context' in which to run the test. This method will be called from the thread that has been assigned the test. |
Record the 'result'. 'result' -- A 'Result' of a test or resource execution.
|
Begin setting up the indicated resource. 'resource_name' -- A string naming a resource. returns -- If the resource has already been set up, returns a tuple '(outcome, map)'. The 'outcome' indicates the outcome that resulted when the resource was set up; the 'map' is a map from strings to strings indicating properties added by this resource. Otherwise, returns 'None', but marks the resource as in the process of being set up; it is the caller's responsibility to finish setting it up by calling '_FinishResourceSetUp'.
|
Finish setting up a resource. 'resource' -- The 'Resource' itself. 'result' -- The 'Result' associated with setting up the resource. 'properties' -- A dictionary of additional context properties that should be provided to tests that depend on this resource. returns -- A tuple of the same form as is returned by '_BeginResourceSetUp' when the resource has already been set up.
|
Note that the current thread. This method is called by the thread when it has completed a task. |
Write a trace 'message'. 'message' -- A string to be output as a trace message. |
Return the path to a temporary directory. returns -- The path to a temporary directory to pass along to tests and resources via the 'TMPDIR_CONTEXT_PROPERTY'.
|
|
argumentsA list of the arguments to the extension class. Each element of this list should be an instance of 'Field'. The 'Field' instance describes the argument. Derived classes may redefine this class variable. However, derived classes should not explicitly include the arguments from base classes; QMTest will automatically combine all the arguments found throughout the class hierarchy.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:41 2011 | http://epydoc.sourceforge.net |