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 'Test details' dialog. You can generate a testing record on the element from the requirement or constraint.

The test record is generated into the Testing window under the currently-selected test class, 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 'Details' tab of the Inspector window.

Ribbon

Construct > Testing > Tests > <test class> > Right-click on test list > Import Element Constraint(s)    or   Import Element Requirement(s)

Start > Desktop > Share > Testing > <test class> > Right-click on test list > Import Element Constraint(s)   or   Import Element Requirement(s)

Design > Element > Editors > Element Browser > Testing > <test class> > Right-click on test list > Import Element Constraint(s)   or   Import Element Requirement(s)

Keyboard Shortcuts

Alt+2 > Testing : <test class> | Right-click on test list | Import Element Constraint(s)    or   Import Element Requirement(s)

Alt+9 : Testing > <test class> > Right-click > 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 'Test details' dialog to edit the test details; thereafter, just click once on the next test item to edit that in the 'Test details' dialog.

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