KXQTS::UserTestCase Class Reference

Displays a test case entered manually by the user. More...

#include <UserTestCase.h>

Inheritance diagram for KXQTS::UserTestCase:

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

Collaboration graph
[legend]
List of all members.

Public Slots

void setSourceCode (const QString &code)

Public Member Functions

virtual TestBaseLine::List baseLines () const
virtual int columnCount () const
virtual QString creator () const
virtual QVariant data (const Qt::ItemDataRole role, int column) const
virtual QString description () const
virtual Patternist::ExternalVariableLoader::Ptr externalVariableLoader () const
virtual bool isXPath () const
virtual QDate lastModified () const
virtual QString name () const
virtual TreeItemparent () const
virtual Scenario scenario () const
virtual QString sourceCode (bool &ok) const
virtual QUrl testCasePath () const
virtual QString title () const

Detailed Description

Displays a test case entered manually by the user.

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

Definition at line 30 of file UserTestCase.h.


Member Function Documentation

TestBaseLine::List UserTestCase::baseLines (  )  const [virtual]

Returns:
an empty list.

Implements KXQTS::TestCase.

Definition at line 63 of file UserTestCase.cpp.

References KXQTS::TestBaseLine::Ignore.

QString UserTestCase::creator (  )  const [virtual]

The full name of the creator of the test case. For example, "Frans Englich".

Implements KXQTS::TestCase.

Definition at line 35 of file UserTestCase.cpp.

QString UserTestCase::description (  )  const [virtual]

A description of the test case for human consumption.

Implements KXQTS::TestCase.

Definition at line 47 of file UserTestCase.cpp.

bool UserTestCase::isXPath (  )  const [virtual]

Whether this test case only make use of XPath features.

Returns:
false if the test case exercises any XQuery feature which is not available in XPath 2.0.

Implements KXQTS::TestCase.

Definition at line 89 of file UserTestCase.cpp.

QDate UserTestCase::lastModified (  )  const [virtual]

The date of when the test case was created or last modified.

Implements KXQTS::TestCase.

Definition at line 84 of file UserTestCase.cpp.

QString UserTestCase::name (  )  const [virtual]

The test case's identifier. For example, "Literals001".

Implements KXQTS::TestCase.

Definition at line 41 of file UserTestCase.cpp.

TestCase::Scenario UserTestCase::scenario (  )  const [virtual]

What kind of test this is. For example, whether the test case should result in a parser error or should evaluate without errors.

The vast common case is that one Scenario is returned; the bit signifiance is for the TestCase sub-class UserTestCase.

Implements KXQTS::TestCase.

Definition at line 58 of file UserTestCase.cpp.

References KXQTS::TestCase::Standard.

QString UserTestCase::sourceCode ( bool &  ok  )  const [virtual]

Returns:
the query the user has entered in the editor.
Parameters:
ok is always set to true

Implements KXQTS::TestCase.

Definition at line 78 of file UserTestCase.cpp.

QUrl UserTestCase::testCasePath (  )  const [virtual]

Performs an assert crash.

Implements KXQTS::TestCase.

Definition at line 104 of file UserTestCase.cpp.

QString UserTestCase::title (  )  const [virtual]

The title of the test. This can be the identifier of the test, for example.

Implements KXQTS::TestCase.

Definition at line 53 of file UserTestCase.cpp.

Referenced by data().

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