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

Prev Next

Import Requirement or Constraint as Test

If you are creating a test against an internal requirement or internal constraint of an element, you do not have to manually re-type the details into the test record in the Construct window. You can generate a testing record on the element from the requirement or constraint.

The test record is generated into the Construct 'test-type' window that you currently have open, and the requirement or constraint description is copied to the 'Description' tab for the test record.

Access

Select an element, then use one of the methods outlined here to display the Testing window or Element Browser.

Ribbon

Construct > Testing > Tests > <test class> > Right-click on test list > Import element constraint(s)    or   Import element requirement(s)

Start > Explore > Browse > Element Browser > Testing > <test class> > Right-click on test > Import element constraint(s)   or   Import element requirement(s)

Design > Element > Properties > Element Browser > Testing > <test class> > Right-click on test > Import element constraint(s)   or   Import element requirement(s)

Keyboard Shortcuts

Alt+3 : <test class> | Right-click on test list | Import element constraint(s)    or   Import element requirement(s)

Alt+9 : Testing > <test class> > Right-click on test > Import element constraint(s)   or   Import element requirement(s)

Import a requirement or constraint as a test

Step

Action

See also

1

On the 'Import Constraint' or 'Import Requirements' dialog (the two dialogs are identical) review the list of internal requirements or constraints in the selected element.

2

Click on one of the items to import as a Test, or press Ctrl+click on more than one to import several.

The 'Import As' field defaults to the test class of the Test into which you are importing the requirement or constraint details. If you need to change this, click on the drop-down arrow and select a different test class.

3

Click on the OK button.

Each item is added to the list of tests in the Testing window, under the appropriate <test-type>, as a standard, 'Not Run' test.

Double-click on one item to open the Construct window to edit the test details; thereafter, just click once on the next test item to edit that in the Construct window.

Notes

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

Learn more