Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
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
|
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 |
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.
|