Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

TestSuite Class Reference
[Test Case Support]

#include <TestSuite.h>

List of all members.


Detailed Description

Collection of test cases that are intended to be executed as a single unit.

A test suite is used intended to be used as follows. First, the test cases are loaded into the test suite. Then, the test suite is executed. This causes all the test cases loaded in the test suite to be executed in sequence. The test suite is responsible for setting up, executing, and shutting down each test case. After a test case has been shut down, the test suite queries it for the outcome of the test and writes this outcome together with the accompanying test message to an output file. The data structure holding the test cases is defined statically and can hold a maximum of MAX_TEST_CASES_IN_SUITE test cases.

See also:
TestCase
Author:
Alessandro Pasetti (P&P Software GmbH)
Version:
1.0

Definition at line 39 of file TestSuite.h.

Public Member Functions

 TestSuite (FILE *out)
 Constructor defining the output file.

void runTestSuite (void)
 Execute all the test cases currently loaded in the test suite and write outcome information to the output file.

void loadTestCase (TestCase *newTestCase)
 Load a new test case in the test suite.


Constructor & Destructor Documentation

TestSuite::TestSuite FILE *  out  ) 
 

Constructor defining the output file.

Parameters:
out the output file

Definition at line 16 of file TestSuite.cpp.


Member Function Documentation

void TestSuite::loadTestCase TestCase newTestCase  ) 
 

Load a new test case in the test suite.

If the maximum number of test cases in the test suite has been exceeded, then an error message is written to the output file.

Parameters:
newTestCase the test case to be loaded

Definition at line 48 of file TestSuite.cpp.


The documentation for this class was generated from the following files:
Copyright 2003 P&P Software GmbH - All Rights Reserved