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

Class FileResultStream
source code

            object --+        
                     |        
   extension.Extension --+    
                         |    
result_stream.ResultStream --+
                             |
                            FileResultStream
Known Subclasses:
classes.dejagnu_stream.DejaGNUStream, classes.text_result_stream.TextResultStream, classes.pickle_result_stream.PickleResultStream, classes.xml_result_stream.XMLResultStream, classes.tet_stream.TETStream

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.

Nested Classes [hide private]

Inherited from extension.Extension: Type, __metaclass__


Instance Methods [hide private]
  __init__(self, arguments=None, **args)

Inherited from result_stream.ResultStream: Summarize, WriteAllAnnotations, WriteAnnotation, WriteResult

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]
_argument_dictionary  
_argument_list  
_is_binary_file If true, the file written is a binary file.
arguments A list of the arguments to the extension class.
file  
filename  

Inherited from result_stream.ResultStream: expected_outcomes, kind

Inherited from object: __class__


Method Details [hide private]

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

source code 
Overrides: result_stream.ResultStream.__init__

Class Variable Details [hide private]

_argument_dictionary

Value:
{'expected_outcomes': <<class 'qm.fields.PythonField'> expected_outcom\
es>,
 'file': <<class 'qm.fields.PythonField'> file>,
 'filename': <<class 'qm.fields.TextField'> filename>}                 
      

_argument_list

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

_is_binary_file

If true, the file written is a binary file.

This flag can be overridden by derived classes.
Value:
0                                                                     
      

arguments

A list of the arguments to the extension class.

Each element of this list should be an instance of 'Field'. The 'Field' instance describes the argument.

Derived classes may redefine this class variable. However, derived classes should not explicitly include the arguments from base classes; QMTest will automatically combine all the arguments found throughout the class hierarchy.
Value:
[<<class 'qm.fields.TextField'> filename>,
 <<class 'qm.fields.PythonField'> file>]                               
      

file

Value:
{}                                                                     
      

filename

Value:
''