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

Class ResultReader

source code

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

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]
 
__init__(self, arguments, **args)
Construct a new 'Extension'.
source code
 
GetAnnotations(self)
Return this run's dictionary of annotations.
source code
 
GetResult(self)
Return the next 'Result' from this reader.
source code
 
__iter__(self)
A 'ResultReader' can be iterated over.
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]
  kind = 'result_reader'
A string giving kind of extension is implemented by the class.

Inherited from extension.Extension: arguments

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__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: object.__init__
(inherited documentation)

GetResult(self)

source code 

Return the next 'Result' from this reader.

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