Class TestError

Description:

The TestError class holds the information regarding a single error or failure that has occured during the executing of the test cases. For errors, the class holds the error number, source and description as well as a reference to the test case that generated the error. For failures, the class holds a description of the failure as well as a reference to the test case which generated the failure.

Note: this class has an instancing property of PublicNotCreatable. It can only be instantiated by classes in the test framework.

Interface Implementation:

Known Subclasses:

Method Summary:

Method:Definition:
TestCase Public Property Get TestCase() As ITestCase
Public Property Set TestCase(oTestCase As ITestCase)
Description Public Property Get Description() As String
Public Property Let Description(ByVal sSource As String)
ErrNumber Public Property Get ErrNumber() As Long
Public Property Let ErrNumber(ByVal lErrNumber As Long)
Source Public Property Get Source() As String
Public Property Let Source(ByVal sSource As String)

Methods:

TestCase

Definition:
Public Property Get TestCase() As ITestCase
Public Property Set TestCase(oTestCase As ITestCase)
Description:
Get/Set a reference to the test case where the error/failure was generated

ErrNumber

Definition:
Public Property Get ErrNumber() As Long
Public Property Let ErrNumber(ByVal lErrNumber As Long)
Description:
Get/Set the error number (used by test errors, not failures)

Source

Definition:
Public Property Get Source() As String
Public Property Let Source(ByVal sSource As String)
Description:
Get/Set the source of the error (used by test errors, not failures)

Description

Definition:
Public Property Get Description() As String
Public Property Let Description(ByVal sSource As String)
Description:
Get/Set the description of the error / failure