Package qm :: Package test :: Module file_result_stream :: Class FileResultStream
[show private | hide private]
[frames | no frames]

Type FileResultStream

object --+        
         |        
 Extension --+    
             |    
  ResultStream --+
                 |
                FileResultStream

Known Subclasses:
PickleResultStream, XMLResultStream

A 'FileResultStream' writes its output to a file.

A 'FileResultStream' is an abstract base class for other result stream classes that store results in a single file. The file to which results should be written can be specified using either the 'filename' argument or the 'file' argument. The latter is for use by QMTest internally.
Method Summary
  __init__(self, **args)
Construct a new 'Extension'.
    Inherited from ResultStream
  Summarize(self)
Output summary information about the results.
  WriteAllAnnotations(self, annotations)
Output all annotations in 'annotations' to this stream.
  WriteAnnotation(self, key, value)
Output an annotation for this run.
  WriteResult(self, result)
Output a test result.
    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 expected_outcomes = None                                                                  
NoneType file = None                                                                  
str filename = ''
    Inherited from ResultStream
str kind = 'result_stream'

Method Details

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

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:
qm.test.result_stream.ResultStream.__init__ (inherited documentation)

Class Variable Details

arguments

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

expected_outcomes

Type:
NoneType
Value:
None                                                                  

file

Type:
NoneType
Value:
None                                                                  

filename

Type:
str
Value:
''                                                                     

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