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. You can generate the test into the 'Scenario Tests' class 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 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, and use one of the methods identified here to display the 'Import Scenario' dialog.

Ribbon

Construct > Test Management > Tests > <test class> > right-click on test list > Import Element Scenario(s)  or

Construct > Test Management > Tests > <test class> > right-click on test list > Import Package Scenario(s)  or

Start > All Windows > Construct > Testing > <test class> > right-click on test list > Import Element Scenario(s)

Start > All Windows > Construct > Testing > <test class> > right-click on test list > Import Package Scenario(s)

Keyboard Shortcuts

Alt+2 > Testing : right-click on test list | Import Element Scenario(s)  or

Alt+2 > Testing : right-click on test list | Import Package Scenario(s)

Import a Scenario from a Single Element

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, enter 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