qm :: test :: runnable :: Runnable :: Class Runnable
[hide private]
[frames] | no frames]

Class Runnable

source code

         object --+    
                  |    
extension.Extension --+
                      |
                     Runnable
Known Subclasses:

A 'Runnable' can run on a 'Target'.

'Runnable' is an abstract base class for 'Test' and 'Resource'.

Nested Classes [hide private]
  ResourceField
A 'ResourceField' contains the name of a resource.

Inherited from extension.Extension: Type, __metaclass__

Instance Methods [hide private]
 
__init__(self, arguments=None, **args)
Construct a new 'Runnable'.
source code
 
GetId(self)
Return the name of this test or resource.
source code
 
GetDatabase(self)
Return the 'Database' in which this test or resource is stored.
source code
 
GetAttachments(self)
Return the 'Attachment's to this 'Runnable'.
source code
 
__GetAttachments(self, field, value, attachments)
Return the 'Attachments' that are part of 'field'.
source code

Inherited from extension.Extension: GetClassName, GetExplicitArguments, MakeDomDocument, MakeDomElement, Write, __getattr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  EXTRA_ID = 'qmtest_id'
The name of the extra keyword argument to '__init__' that specifies the name of the test or resource.
  EXTRA_DATABASE = 'qmtest_database'
The name of the extra keyword argument to '__init__' that specifies the database containing the test or resource.
  RESOURCE_FIELD_ID = 'resources'
The name of the field that contains the resources on which this test or resource depends.
  arguments = [<<class 'qm.fields.SetField'> resources>]
A list of the arguments to the extension class.
  _argument_dictionary = {'resources': <<class 'qm.fields.SetFie...
A map from argument names to 'Field' instances.
  _argument_list = [<<class 'qm.fields.SetField'> resources>]
A list of all the 'Field's in this class.
  resources = []

Inherited from extension.Extension: kind

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, arguments=None, **args)
(Constructor)

source code 

Construct a new 'Runnable'.

'arguments' -- As for 'Extension.__init__'.

'args' -- As for 'Extension.__init__.

Overrides: object.__init__

GetId(self)

source code 

Return the name of this test or resource.

'context' -- The 'Context' in which this entity is running.

returns -- The name of this test or resource.

GetDatabase(self)

source code 

Return the 'Database' in which this test or resource is stored.

returns -- The 'Database' in which this test or resource is stored.

GetAttachments(self)

source code 

Return the 'Attachment's to this 'Runnable'.

returns -- A sequence consisting of the 'Attachment' objects associated with this runnable.

__GetAttachments(self, field, value, attachments)

source code 

Return the 'Attachments' that are part of 'field'.

'field' -- The 'Field' being examined.

'value' -- The value of that 'Field' in 'self'.

'attachments' -- A sequence consisting of the attachments found so far. Additional 'Attachment's are appended to this sequence by this function.


Class Variable Details [hide private]

_argument_dictionary

A map from argument names to 'Field' instances.

A map from the names of arguments for this class to the corresponding 'Field'.

Value:
{'resources': <<class 'qm.fields.SetField'> resources>}