Table of Contents

Class: StorageResultsStream qm/test/web/web.py

A StorageResultsStream stores results.

A StorageResultsStream does not write any output. It simply stores the results for future display.

Base Classes   
ResultStream
Methods   
GetAnnotations
GetResourceResults
GetResult
GetTestResults
GetTestResultsInOrder
IsFinished
Start
Summarize
WriteAnnotation
WriteResult
__init__
  GetAnnotations 
GetAnnotations ( self )

Return the annotations for this run.

  GetResourceResults 
GetResourceResults ( self )

Return the accumulated resource results.

returns
A dictionary mapping resource names to Result objects.
  GetResult 
GetResult ( self,  name )

Return the Result with the indicated name.

name
A string giving the name of a test or resource result.
returns
The Result instance corresponding to name.
  GetTestResults 
GetTestResults ( self )

Return the accumulated test results.

returns
A dictionary mapping test names to Result objects.
  GetTestResultsInOrder 
GetTestResultsInOrder ( self )

Return the test results in the order they appeared.

returns
A sequence of test results, in the order that they appeared.
  IsFinished 
IsFinished ( self )

Return true iff no more results are forthcoming.

returns
True if no more results will be written to this stream.
  Start 
Start ( self,  test_ids )

Start collecting results.

test_ids
The names of the tests that we are about to run.

Start collecting new results. Discard results for the test_ids, but not for other tests.

  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.

Derived class methods may override this method. They should, however, invoke this version before returning.

  WriteAnnotation 
WriteAnnotation (
        self,
        key,
        value,
        )

  WriteResult 
WriteResult ( self,  result )

Output a test result.

result
A Result.
  __init__ 
__init__ ( self )

Construct a StorageResultsStream.


Table of Contents

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