KXQTS::TestResultHandler Class Reference

Reads XML in the XQTSResult.xsd format, and provides access to the reported results. More...

#include <TestResultHandler.h>

Inheritance diagram for KXQTS::TestResultHandler:

Inheritance graph
[legend]
List of all members.

Public Types

typedef QHash< QString, QString > CommentHash
typedef QHash< QString, TestResult::StatusHash

Public Member Functions

CommentHash comments () const
virtual bool endDocument ()
Hash result () const
virtual bool startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
 TestResultHandler ()

Detailed Description

Reads XML in the XQTSResult.xsd format, and provides access to the reported results.

Author:
Frans Englich <frans.englich@telia.com>

Definition at line 33 of file TestResultHandler.h.


Member Typedef Documentation

typedef QHash<QString, QString> KXQTS::TestResultHandler::CommentHash

A hash mapping test-case names to their' comments.

Definition at line 45 of file TestResultHandler.h.

typedef QHash<QString, TestResult::Status> KXQTS::TestResultHandler::Hash

A hash where the key is the class's name, that is test-case/@name, and the value the test's result status.

Definition at line 40 of file TestResultHandler.h.


Constructor & Destructor Documentation

TestResultHandler::TestResultHandler (  ) 

Creates a TestResultHandler that will read file when run() is called.

Definition at line 23 of file TestResultHandler.cpp.


Member Function Documentation

bool TestResultHandler::endDocument (  )  [virtual]

Performs finalization.

Definition at line 54 of file TestResultHandler.cpp.

TestResultHandler::Hash TestResultHandler::result (  )  const

Note:
Do not reimplement this function.
Returns:
the result obtained from reading the XML file.

Definition at line 61 of file TestResultHandler.cpp.

Referenced by KXQTS::Worker::threadFinished().

bool TestResultHandler::startElement ( const QString &  namespaceURI,
const QString &  localName,
const QString &  qName,
const QXmlAttributes &  atts 
) [virtual]

Reads the test-case element and its attributes, everything else is ignored.

Definition at line 30 of file TestResultHandler.cpp.

References KXQTS::TestResult::statusFromString(), and KXQTS::Global::xqtsResultNS.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Feb 8 14:54:31 2007 for Patternist by  doxygen 1.5.1