Table of Contents

Class: TextResultStream qm/test/classes/text_result_stream.py

A TextResultStream displays test results textually.

A TextResultStream displays information textually, in human readable form. This ResultStream is used when QMTest is run without a graphical user interface.

Base Classes   
FileResultStream
Methods   
Summarize
WriteResult
_DisplayAnnotations
_DisplayHeading
_DisplayResult
_DisplayStatistics
_FormatStatistics
_SummarizeRelativeTestStats
_SummarizeResults
_SummarizeTestStats
_WriteOutcome
__init__
  Summarize 
Summarize ( self )

Output summary information about the results.

When this method is called, the test run is complete. Summary information should be displayed for the user, if appropriate. Any finalization, such as the closing of open files, should also be performed at this point.

  WriteResult 
WriteResult ( self,  result )

Output a test or resource result.

result
A Result.
  _DisplayAnnotations 
_DisplayAnnotations ( self,  result )

Display the annotations associated with result.

result
The Result to dispay.
  _DisplayHeading 
_DisplayHeading ( self,  heading )

Display heading.

heading
The string to use as a heading for the next section of the report.
  _DisplayResult 
_DisplayResult (
        self,
        result,
        format,
        )

Display result.

result
The Result of a test or resource execution.
format
The format to use when displaying results.
  _DisplayStatistics 
_DisplayStatistics ( self )

Write out statistical information about the results.

Write out statistical information about the results.

  _FormatStatistics 
_FormatStatistics ( self,  format )

Output statistical information.

format
A format string with (optional) fill-ins corresponding to statistical information.

The formatted string is written to the result file.

  _SummarizeRelativeTestStats 
_SummarizeRelativeTestStats ( self )

Generate statistics showing results relative to expectations.

  _SummarizeResults 
_SummarizeResults ( self,  results )

Summarize each of the results.

results
The sequence of Result objects to summarize.
  _SummarizeTestStats 
_SummarizeTestStats ( self )

Generate statistics about the overall results.

  _WriteOutcome 
_WriteOutcome (
        self,
        name,
        kind,
        outcome,
        expected_outcome=None,
        )

Write a line indicating the outcome of a test or resource.

name
The name of the test or resource.
kind
The kind of result being displayed.
outcome
A string giving the outcome.
expected_outcome
If not None, the expected outcome.
  __init__ 
__init__ ( self,  arguments )

Construct a TextResultStream.

arguments
The arguments to this result stream.
suite_ids
The suites that will be executed during the test run.

Table of Contents

This document was automatically generated on Mon Jan 3 09:42:29 2005 by HappyDoc version 2.1