KXQTS::TestSuite Class Reference

Represents a test suite in the W3C XML Query Test Suite format. More...

#include <TestSuite.h>

Inheritance diagram for KXQTS::TestSuite:

Inheritance graph
[legend]
Collaboration diagram for KXQTS::TestSuite:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual QVariant data (const Qt::ItemDataRole role, int column) const
QDate designDate () const
virtual TestContainerparent () const
TestSuiteResultrunSuite (const ExecutionMode mode)
void setDesignDate (const QDate &version)
void setVersion (const QString &version)
 TestSuite ()
void toXML (XMLWriter &receiver, TestCase *const tc) const
QString version () const

Static Public Member Functions

static TestSuiteopenCatalog (QIODevice *input, QString &errorMsg, const QUrl &fileName, const bool useExclusionList)
static TestSuiteopenCatalog (const QUrl &catalogFile, QString &errorMsg, const bool useExclusionList)

Detailed Description

Represents a test suite in the W3C XML Query Test Suite format.

TestSuite contains the test suite's test cases and meta data.

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

Definition at line 39 of file TestSuite.h.


Member Function Documentation

QDate TestSuite::designDate (  )  const

When the catalog was designed, last modified.

Definition at line 196 of file TestSuite.cpp.

Referenced by KXQTS::TestSuiteHandler::startElement().

Here is the caller graph for this function:

TestSuite * TestSuite::openCatalog ( QIODevice *  input,
QString &  errorMsg,
const QUrl &  fileName,
const bool  useExclusionList 
) [static]

Essentially similar to open(const QUrl &, QString &errorMsg), with the difference that it takes directly a QIODevice as input, as opposed to a file name locating the catalog file to read.

Parameters:
input the test suite catalog
fileName this URI is used for resolving relative paths inside the catalog file into absolute.
errorMsg if an error occurs, this QString is set to contain the message. Whether an error occured can therefore be determined by checknig if this variable still is null after the call
useExclusionList whether the excludeTestGroups.txt file should be used to exclude test groups for this catalog

Definition at line 103 of file TestSuite.cpp.

References KXQTS::TestSuiteHandler::testSuite().

Here is the call graph for this function:

TestSuite * TestSuite::openCatalog ( const QUrl &  catalogFile,
QString &  errorMsg,
const bool  useExclusionList 
) [static]

Creates and returns a pointer to a TestSuite instance, which was instantiated from the XQuery Test Suite catalog file catalogFile.

If loading went wrong, null is returned and errorMsg is set with a human readable message string. However, catalogFile is not validated; if the XML file is not valid against the XQTS task force's W3C XML Schema, the behavior and result for this function is undefined.

This function blocks. Currently is only local files supported.

Definition at line 62 of file TestSuite.cpp.

TestContainer * TestSuite::parent (  )  const [virtual]

Returns:
always null

Implements KXQTS::TreeItem.

Definition at line 211 of file TestSuite.cpp.

TestSuiteResult * TestSuite::runSuite ( const ExecutionMode  mode  ) 

Evaluates all the test cases in this TestSuite, and returns it all in a TestSuiteResult.

Definition at line 54 of file TestSuite.cpp.

References KXQTS::TestItem::CompileAndRun, KXQTS::TestContainer::execute(), and version().

Here is the call graph for this function:

QString TestSuite::version (  )  const

The version of the catalog test suite. For example, "0.8.0".

Definition at line 191 of file TestSuite.cpp.

Referenced by runSuite().

Here is the caller 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