Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Unit Testing

Use Unit Testing to test Classes, Components and other elements as programmers build them.

Access:     View | More Element Tools | Testing > Unit

The Unit testing tab displays in the Testing window by default.

If any Unit tests exist, the first Test item for the element is shown in the Testing window in Item mode, and all items are listed either in the panel to the left of the window, or in the window in List mode.

Reference:

Field

Usage

See also

Test

Specify the name of the test

 

Status

Click on the drop-down arrow and select the current status of the test

 

Type

Click on the drop-down arrow and select the type of test

 

Run By

Click on the drop-down arrow and select the name of the person who ran the test

 

Checked By

Click on the drop-down arrow and select the name of the person who checked the test run

 

Last Run

Click on the drop-down arrow and select the date on which the test was last run

 

Description

Type a description of the test; you can format the text using the Notes toolbar at the top of the field

This text is also reflected in the Notes window, but cannot be edited there

Notes Toolbar

Input

Type in the input data

 

Acceptance Criteria

Type the acceptance or test success conditions

 

Results

Type the results of the last test

 

Topics:

Topic

Detail

See also

Editing Unit Tests

To edit existing Unit Test items for this element, either

  • Click on the item in the left-hand panel in Item mode
  • Double-click on the item in List mode to display the Test Details dialog, or
  • Click on the required item in the Testing folder in the Element Browser window (if this window is not displayed, click on the EBIcon icon in the Testing window toolbar); Unit Test item icons have a U in the bottom right corner

To change the element for which to create test items, click on the required element in the Project Browser

Test Details Dialog

Element Browser

Notes:

  • In the Corporate, Business and Software Engineering, System Engineering and Ultimate editions of Enterprise Architect, if security is enabled you must have Manage Tests permission to add, update and delete test records