Package qm :: Package test :: Package classes :: Module compilation_test :: Class CompiledResource
[hide private]
[frames] | no frames]

Class CompiledResource
source code

         object --+            
                  |            
extension.Extension --+        
                      |        
      runnable.Runnable --+    
                          |    
          resource.Resource --+
                              |
                             CompiledResource

A CompiledResource compiles an executable.

Nested Classes [hide private]

Inherited from runnable.Runnable: ResourceField

Inherited from extension.Extension: Type, __metaclass__


Instance Methods [hide private]
  SetUp(self, context, result)
Set up the resource.
  CleanUp(self, result)
Clean up the resource.

Inherited from runnable.Runnable: GetAttachments, GetDatabase, GetId, __init__

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

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


Class Variables [hide private]
options  
source_files  
executable  
_argument_dictionary  
_argument_list  

Inherited from resource.Resource: kind

Inherited from runnable.Runnable: EXTRA_DATABASE, EXTRA_ID, RESOURCE_FIELD_ID, arguments, resources

Inherited from object: __class__


Method Details [hide private]

SetUp(self, context, result)

source code 

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.
Overrides: resource.Resource.SetUp
(inherited documentation)

CleanUp(self, result)

source code 

Clean up 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 may override this method.
Overrides: resource.Resource.CleanUp
(inherited documentation)

Class Variable Details [hide private]

options

Value:
[]                                                                     
      

source_files

Value:
[]                                                                     
      

executable

Value:
''                                                                     
      

_argument_dictionary

Value:
{'executable': <<class 'qm.fields.TextField'> executable>,
 'options': <<class 'qm.fields.SetField'> options>,
 'resources': <<class 'qm.fields.SetField'> resources>,
 'source_files': <<class 'qm.fields.SetField'> source_files>}          
      

_argument_list

Value:
[<<class 'qm.fields.TextField'> executable>,
 <<class 'qm.fields.SetField'> options>,
 <<class 'qm.fields.SetField'> resources>,
 <<class 'qm.fields.SetField'> source_files>]