Prev | Next |
Import Test From Other Elements
If you have created useful tests in one element, you can import those tests into any other element through the Test Cases window or 'Details' tab of the Inspector window, and so avoid having to duplicate the test information manually. You open the Test Cases window for the empty target element and then select the source element that contains the tests to import.
Access
Select target element, then:
Ribbon |
Construct > Test Management > Tests > <test class> | Right-click on test list | Import Test from other Element (s) Start > All Windows > Construct > Testing > <test class> > Right-click on test list | Import Test from other Element(s) |
Keyboard Shortcuts |
> Testing | Right-click on test list | Import Test from other Element(s) or : Testing > <test class> > Right-click > Import Test from other Element(s) |
Import a Test
The 'Import Element Tests' dialog displays.
Field/Button |
Action |
See also |
---|---|---|
Select element |
Click on the drop-down arrow and locate and select the source element. This list identifies elements that have tests that can be imported. |
|
Show related elements only |
Select this checkbox to restrict the list of selectable elements to those that are related to the target element. |
|
Limit selection to these Object Types only |
If you want to restrict the list of selectable elements to only those of specific types, type in those element types in a comma-separated list. |
|
Refresh |
Click on this button after changing any of the field values, to refresh the list of available elements in the 'Select element' field. |
|
Select items to import |
Lists the tests defined in the source element. Select the test(s) to import. If you have not used the 'Select element' field, any tests listed are from the current element to which this test record belongs. There is no purpose in importing these. |
|
Import As |
Defaults to the test class of the Test you selected to populate from the other element. If you need to change this, click on the drop-down arrow and select a different test class from the list. |
|
All |
Click on this button to select all tests listed in the 'Select items to import' field. |
|
None |
Click on this button to clear the selection of tests listed in the 'Select items to import' field. |
|
Import |
Click on this button to import the selected test(s). |
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