Package qm :: Package test :: Package classes :: Module previous_testrun :: Class PreviousTestRun
[hide private]
[frames] | no frames]

Class PreviousTestRun
source code

                          object --+        
                                   |        
                 extension.Extension --+    
                                       |    
expectation_database.ExpectationDatabase --+
                                           |
                                          PreviousTestRun

A 'PreviousTestRun' uses test results as expectations.

A 'PreviousTestRun' uses a ResultsFile such as generated by 'qmtest run' to determine the expected outcome for the current test run.

Nested Classes [hide private]

Inherited from extension.Extension: Type, __metaclass__


Instance Methods [hide private]
  __init__(self, **args)
Construct a new 'Extension'.
  Lookup(self, test_id)
Look up the expected outcome for the given test.

Inherited from expectation_database.ExpectationDatabase: GetExpectedOutcomes

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]
file_name  
results_file  
_argument_dictionary  
_argument_list  

Inherited from expectation_database.ExpectationDatabase: kind, test_database, testrun_parameters

Inherited from extension.Extension: arguments

Inherited from object: __class__


Method Details [hide private]

__init__(self, **args)
(Constructor)

source code 

Construct a new 'Extension'.

'args': Keyword arguments providing values for Extension parameters. The values should be appropriate for the corresponding fields. Derived classes must pass along any unrecognized keyword arguments to this method so that additional arguments can be added in the future without necessitating changes to derived classes.

This method will place all of the arguments into this objects instance dictionary.

Derived classes may override this method, but should call this method during their processing.
Overrides: extension.Extension.__init__
(inherited documentation)

Lookup(self, test_id)

source code 

Look up the expected outcome for the given test.

'test_id' -- test-id for which the outcome is queried.

returns -- a Result object associated with this test_id.
Overrides: expectation_database.ExpectationDatabase.Lookup
(inherited documentation)

Class Variable Details [hide private]

file_name

Value:
''                                                                     
      

results_file

Value:
{}                                                                     
      

_argument_dictionary

Value:
{'file_name': <<class 'qm.fields.TextField'> file_name>,
 'results_file': <<class 'qm.fields.PythonField'> results_file>,
 'test_database': <<class 'qm.fields.PythonField'> test_database>,
 'testrun_parameters': <<class 'qm.fields.PythonField'> testrun_parame\
ters>}                                                                 
      

_argument_list

Value:
[<<class 'qm.fields.PythonField'> test_database>,
 <<class 'qm.fields.PythonField'> results_file>,
 <<class 'qm.fields.PythonField'> testrun_parameters>,
 <<class 'qm.fields.TextField'> file_name>]