Test Class

A Test is a single Test Case applied to an element. Tests are added and accessed through the Element Tests collection.

Associated table in .EAP file:     t_objecttests.

Test Attributes:

Attribute

Type

Notes

AcceptanceCriteria

String

Read/Write

The acceptance criteria for successful execution.

 

CheckedBy

String

Read/Write

User ID of the person confirming the results.

 

Class

Long

Read/Write

The test Class:

     1 = Unit Test
2 = Integration Test
3 = System Test
4 = Acceptance Test
5 = Scenario Test

 

DateRun

Date

Read/Write

The date the test was last run.

 

Input

String

Read/Write

Input data for the test.

 

Name

String

Read/Write

The test name.

 

Notes

String

Read/Write

Detailed notes about test to be carried out.

 

ObjectType

ObjectType

Read only

Distinguishes objects referenced through a Dispatch interface.

 

RunBy

String

Read/Write

The user ID of the person conducting the test.

 

Status

String

Read/Write

Current status of test.

 

TestResults

Variant

Read/Write

Results of test.

 

Type

String

Read/Write

The test type, such as Load or Regression.

 

Test Methods:

Method

Type

Notes

GetLastError ()

String

Returns a string value describing the most recent error that occurred in relation to this object.

This function is rarely used as an exception is thrown when an error occurs.

 

Update ()

Boolean

Update the current Test object after modification or appending a new item.

If false is returned, check the GetLastError function for more information.