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.
The Unit testing tab displays in the Testing window by default. To open the Testing window, select the View | Testing menu option. Open a diagram or the Project Browser and select the required element.
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.
Option |
Use to |
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. |
Input |
Type in the input data. |
Acceptance Criteria |
Type the acceptance or test success conditions. |
Results |
Type the results of the last test. |
To edit existing Unit Test items for this element:
- 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 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.