Package qm :: Package test :: Module file_result_reader :: Class FileResultReader
[show private | hide private]
[frames | no frames]

Type FileResultReader

object --+        
         |        
 Extension --+    
             |    
  ResultReader --+
                 |
                FileResultReader

Known Subclasses:
PickleResultReader, XMLResultReader

A 'FileResultReader' gets its input from a file.

A 'FileResultReader' is an abstract base class for other result reader classes that read results from a single file. The file from which results should be read can be specified using either the 'filename' argument or the 'file' argument. The latter is for use by QMTest internally.
Method Summary
  __init__(self, arguments, **args)
Construct a new 'FileResultReader'.
    Inherited from ResultReader
  __iter__(self)
A 'ResultReader' can be iterated over.
  GetAnnotations(self)
Return this run's dictionary of annotations.
  GetResult(self)
Return the next 'Result' from this reader.
    Inherited from Extension
  __getattr__(self, name)
  GetClassName(self)
Return the name of the extension class.
  GetExplicitArguments(self)
Return the arguments to this extension instance.
  MakeDomDocument(self)
Create a DOM document for 'self'.
  MakeDomElement(self, document, element)
Create a DOM node for 'self'.
  Write(self, file)
Write an XML description of 'self' to a file.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
list arguments = [<<class 'qm.fields.TextField'> filename>, <...
NoneType file = None                                                                  
str filename = ''
classobj InvalidFile = qm.test.file_result_reader.InvalidFile
    Inherited from ResultReader
str kind = 'result_reader'

Method Details

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

Construct a new 'FileResultReader'.

'arguments' -- As for 'ResultReader'.

If the file provided is not in the input format expected by this result reader, the derived class '__init__' function must raise an 'InvalidStream' exception.
Overrides:
qm.test.result_reader.ResultReader.__init__

Class Variable Details

arguments

Type:
list
Value:
[<<class 'qm.fields.TextField'> filename>,
 <<class 'qm.fields.PythonField'> file>]                               

file

Type:
NoneType
Value:
None                                                                  

filename

Type:
str
Value:
''                                                                     

Generated by Epydoc 2.1 on Thu Sep 27 15:49:03 2007 http://epydoc.sf.net