Class TestSuite

Description:

The TestSuite class represents a suite of different tests to be run. The TestSuite contains a part-whole hierarchy of objects that implement the ITest interface -- including TestCase objects and other TestSuite objects. Executing the Run method for the TestSuite will execute all test cases that it contains. The TestSuite class also provides methods for add all test cases contained in a test container object into the suite.

Interface Implementation:

Known Subclasses:

Method Summary:

Method:Definition:
AddAllTestCases Public Function AddAllTestCases(oTestContainer As ITestContainer)
AddNewTestCase Public Function AddNewTestCase(sName As String, oTestContainer As ITestContainer) As ITestCase
AddTest Public Sub AddTest(oTest As ITest)
AddTestCase Public Sub AddTestCase(oTestCase As ITestCase)
CountTestCases Public Function CountTestCases() As Integer
NewTestCase Public Function NewTestCase(sName As String, oTestContainer As ITestContainer) As ITestCase
Run Public Sub Run(ByRef oTestResult As TestResult)

Methods:

Run

Definition:
Public Sub Run(ByRef oTestResult As TestResult)
Description:
Runs the test and collects the results in the TestResult parameter

CountTestCases

Definition:
Public Function CountTestCases() As Integer
Description:
Number of test cases contained in the suite

NewTestCase

Definition:
Public Function NewTestCase(sName As String, oTestContainer As ITestContainer) As ITestCase
Description:
Create a new test case and return it.

AddTest

Definition:
Public Sub AddTest(oTest As ITest)
Description:
Add a object implementing ITest (either a TestCase or TestSuite) to the suite.

AddTestCase

Definition:
Public Sub AddTestCase(oTestCase As ITestCase)
Description:
Add a TestCase to the suite.

AddNewTestCase

Definition:
Public Function AddNewTestCase(sName As String, oTestContainer As ITestContainer) As ITestCase
Description:
Create a new test case and add it to the suite.

AddAllTestCases

Definition:
Public Function AddAllTestCases(oTestContainer As ITestContainer)
Description:
Create all test cases that are contained in the specified TestContainer and add them to the suite.