Book a Demo

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

The test record is generated into the Test Cases window under the currently-selected test class, and the requirement or constraint description is copied to the 'Description' for the test record.

Access

Select an element, then use one of the methods outlined here to display the Test Cases window or 'Details' tab of the Inspector window.

Ribbon

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

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

Design > Element > Properties > General > 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 Test Cases 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