#include <TestSuite.h>
Inheritance diagram for KXQTS::TestSuite:


Public Member Functions | |
| virtual QVariant | data (const Qt::ItemDataRole role, int column) const |
| QDate | designDate () const |
| virtual TestContainer * | parent () const |
| TestSuiteResult * | runSuite (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 TestSuite * | openCatalog (QIODevice *input, QString &errorMsg, const QUrl &fileName, const bool useExclusionList) |
| static TestSuite * | openCatalog (const QUrl &catalogFile, QString &errorMsg, const bool useExclusionList) |
TestSuite contains the test suite's test cases and meta data.
Definition at line 39 of file TestSuite.h.
| 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.
| 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] |
| 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:

1.5.1