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.




See also


Specify the name of the test.




As an alternative to typing in the name, click on this button to insert predefined auto-counter text.

If you already have some text in the Test field, it is over-written by the auto-counter text.


Use Auto Naming and Auto Counters


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




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.




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


Type in the input data.



Acceptance Criteria

Type the acceptance or test success conditions.




Type the results of the last test.






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


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