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 Scenario as Test

If you are creating a test for a scenario from either a single element or many elements in a Package, you do not have to manually re-type the scenario details into the test record in the Construct window. You can generate the test into the 'Scenario' tab of one element from one or more scenarios in any element in the model.

Within the Scenario test record, the scenario description is copied to the 'Description' tab. If a scenario contains a Structured Specification, its Action steps are also copied to the 'Description' tab under the heading 'Structured Specification'.

Access

Click on the element containing the test records.

Ribbon

Construct > Testing > Tests > <test class> > right-click on test > Import element scenario(s)  or

Construct > Testing > Tests > <test class> > right-click on test > Import Package Scenarios  or

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

Start > Explore > Browse > Element Browser > Testing > <test class> > Right-click on test > Import Package Scenarios

Keyboard Shortcuts

Alt+3 : right-click on test | Import element scenario(s)  or

Alt+3 : right-click on test | Import Package Scenarios

Import a scenario from a single element

The 'Import Scenario' dialog displays.

Field/Button

Action

See also

Select element

If you are copying scenarios from a different element to the target element, click on the drop-down arrow and select the source element. The list identifies elements that have scenarios that can be imported.

Otherwise, leave this field blank.

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 drop-down.

Select items to import

Lists the scenarios defined in the source element. Select the scenario(s) to import.

If you do not use the 'Select element' field, any scenarios listed are from the current element to which this test record belongs.

If you have selected a different element, the scenarios come from that element.

Import As

Defaults to the test class of the Test you selected to populate from the scenario. 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 scenarios listed in the 'Select items to import' field.

None

Click on this button to clear the selection of scenarios listed in the 'Select items to import' field.

Import

Click on this button to import the selected scenario(s).

Import scenarios from the elements in a Package

Field/Button

Action

See also

Limit selection to these Object Types only

If you want to restrict the selected elements to only those of specific types, type in those element types in a comma-separated list.

This version of the 'Import Scenario' dialog lists all scenarios against all elements in the Package; it does not enable you to select a specific element, but does enable you to filter the list of scenarios to those from specific types of element.

Refresh

Click on this button after changing the 'Limit Selection...' field value, to refresh the list of available elements in the 'Select items to import' field.

Select Items to import

Lists the scenarios defined in the selected elements in the Package. Select the scenario(s) to import.

All

Click on this button to select all scenarios listed in the 'Select items to import' field.

Import As

Defaults to the test class of the Test you selected to populate from the scenario. If you need to change this, click on the drop-down arrow and select a different test class from the list.

None

Click on this button to clear the selection of scenarios listed in the 'Select items to import' field.

Import

Click on this button to import the scenarios from each element as Scenario tests.

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