| Home | Trees | Index | Help |
|---|
| Package qm :: Package test :: Module resource_adapter :: Class ResourceAdapter |
|
object--+ |Extension--+ |Runnable--+ |Resource--+ | ResourceAdapter
A 'ResourceAdapter' converts test classes to resource classes.
If 'C' is a test class, then a class derived from 'ResourceAdapter' and 'C' (in that order!) will be a resource class. The resource class 'Setup' method is equivalent to the 'Test' class 'Run' method. The 'CleanUp' action is empty.| Method Summary | |
|---|---|
Set up the resource. | |
| Inherited from Resource | |
Clean up the resource. | |
| Inherited from Runnable | |
Construct a new 'Runnable'. | |
Return the 'Attachment's to this 'Runnable'. | |
Return the 'Database' in which this test or resource is stored. | |
Return the name of this test or resource. | |
| Inherited from Extension | |
| |
Return the name of the extension class. | |
Return the arguments to this extension instance. | |
Create a DOM document for 'self'. | |
Create a DOM node for 'self'. | |
Write an XML description of 'self' to a file. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Class Variable Summary | |
|---|---|
list |
resources = []
|
| Inherited from Resource | |
str |
kind = 'resource'
|
| Inherited from Runnable | |
list |
arguments = [<<class 'qm.fields.SetField'> resources>]
|
str |
EXTRA_DATABASE = 'qmtest_database'
|
str |
EXTRA_ID = 'qmtest_id'
|
str |
RESOURCE_FIELD_ID = 'resources'
|
| Method Details |
|---|
SetUp(self, context, result)Set up the resource. 'context' -- A 'Context' giving run-time parameters to the resource. The resource may place additional variables into the 'context'; these variables will be visible to tests that depend on the resource. 'result' -- A 'Result' object. The outcome will be 'Result.PASS' when this method is called. The 'result' may be modified by this method to indicate outcomes other than 'Result.PASS' or to add annotations. This method should not return a value. Derived classes must override this method.
|
| Class Variable Details |
|---|
resources
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Sep 27 15:49:06 2007 | http://epydoc.sf.net |