Package qm :: Package test :: Module result_reader :: Class ResultReader
[hide private]
[frames] | no frames]

Class ResultReader
source code

         object --+    
                  |    
extension.Extension --+
                      |
                     ResultReader
Known Subclasses:
file_result_reader.FileResultReader, classes.sql_result_stream.SQLResultReader

A 'ResultReader' provides access to stored test results.

For instance, a 'ResultReader' may load 'Result's from a pickle file or an XML file.

This is an abstract class.

See also 'ResultStream'.

Nested Classes [hide private]

Inherited from extension.Extension: Type, __metaclass__


Instance Methods [hide private]
  GetAnnotations(self)
Return this run's dictionary of annotations.
  GetResult(self)
Return the next 'Result' from this reader.
  __init__(self, arguments, **args)
Construct a new 'Extension'.
  __iter__(self)
A 'ResultReader' can be iterated over.

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]
kind A string giving kind of extension is implemented by the class.

Inherited from extension.Extension: arguments

Inherited from object: __class__


Method Details [hide private]

GetAnnotations(self)

source code 
Return this run's dictionary of annotations.

GetResult(self)

source code 

Return the next 'Result' from this reader.

returns -- A 'Result', or 'None' if there are no more results.

__init__(self, arguments, **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)

__iter__(self)

source code 
A 'ResultReader' can be iterated over.

Class Variable Details [hide private]

kind

A string giving kind of extension is implemented by the class.

This field is used in an application-specific way; for example, QMTest has 'test' and 'target' extension classes.
Value:
'result_reader'