KXQTS::TestContainer Class Reference

an abstract base class, containing an appropriate implementation of TestItem for sub-classes which can contain other TestItem instances. More...

#include <TestContainer.h>

Inheritance diagram for KXQTS::TestContainer:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void appendChild (TreeItem *item)
virtual TreeItemchild (const unsigned int row) const
virtual unsigned int childCount () const
virtual TreeItem::List children () const
virtual int columnCount () const
virtual QString description () const
virtual TestResult::List execute (const ExecutionMode mode, const ExecutionStage stage, TestSuite *ts)
virtual bool isFinalNode () const
virtual ResultSummary resultSummary () const
void setDeleteChildren (const bool val)
virtual void setDescription (const QString &desc)
void setTitle (const QString &title)
QString title () const
virtual ~TestContainer ()

Protected Member Functions

 TestContainer ()

Detailed Description

an abstract base class, containing an appropriate implementation of TestItem for sub-classes which can contain other TestItem instances.

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

Definition at line 30 of file TestContainer.h.


Constructor & Destructor Documentation

TestContainer::TestContainer (  )  [protected]

Constructor, protected. TestContainer is an abstract class, and is not ment to be instantiated, but sub classed.

Definition at line 22 of file TestContainer.cpp.


Member Function Documentation

int TestContainer::columnCount (  )  const [virtual]

Returns:
always 2

Implements KXQTS::TreeItem.

Definition at line 100 of file TestContainer.cpp.

TestResult::List TestContainer::execute ( const ExecutionMode  mode,
const ExecutionStage  stage,
TestSuite ts 
) [virtual]

Returns:
the TestResults of this TestContainer's children.

Implements KXQTS::TestItem.

Definition at line 32 of file TestContainer.cpp.

References child().

Referenced by KXQTS::TestSuite::runSuite().

Here is the call graph for this function:

Here is the caller graph for this function:

bool TestContainer::isFinalNode (  )  const [virtual]

Todo:
Rename this function. Perhaps create a type() hierarchy instead.

Implements KXQTS::TestItem.

Definition at line 95 of file TestContainer.cpp.

TestItem::ResultSummary TestContainer::resultSummary (  )  const [virtual]

Returns:
a ResultSummary for this TestItem.

Implements KXQTS::TestItem.

Definition at line 46 of file TestContainer.cpp.

References child(), and childCount().

Referenced by KXQTS::TestGroup::data().

Here is the call graph for this function:

Here is the caller graph for this function:

void TestContainer::setDeleteChildren ( const bool  val  ) 

Determines whether TestContainer will delete its children upon destruction. By default, it will.

Definition at line 115 of file TestContainer.cpp.


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