Test

Return to Introduction  Previous page  Next page

public 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

Name

String

Read/Write.  The test name

Type

String

Read/Write.  The test type, such as Load or Regression.

Class

Long

Read/Write.  The test class:

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

Notes

String

Read/Write.  Detailed notes about test to be carried out.

Input

String

Read/Write.  Input data.

AcceptanceCriteria

String

Read/Write.  The acceptance criteria for successful execution.

Status

String

Read/Write.  Current status of test.

DateRun

Date

Read/Write.  Date last run.

TestResults

Variant

Read/Write.  Results of test.

RunBy

String

Read/Write.  Person conducting test.

CheckedBy

String

Read/Write.  Results confirmed by.

ObjectType

ObjectType

Read only.  Distinguishes objects referenced through a Dispatch interface.

Test Methods

Method

Type

Notes

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.

GetLastError () 

String

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

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