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 Testing 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.

Import a scenario from a single element

Access    Select target element | Element | Testing    (Alt+3) > Scenario | right-click on tests | Import element scenario(s)  or
Select target element | Element | Element Browser (Alt+9) > Testing folder | right-click on tests | Import element scenario(s)
 

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 above field values, to refresh the list of available elements in the Select element field.

 

 

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.

 

 

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

Access    Select target element | Element | Testing    (Alt+3) > Scenario > right-click on tests | Import Package Scenarios  or
Select target element | Element | Element Browser (Alt+9) > Testing folder > right-click on tests | Import Package Scenarios

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 any of the above field values, to refresh the list of available elements in the Select element 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.

 

 

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, Business and Software Engineering, System Engineering 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

Learning Center topics

(Alt+F1) | Enterprise Architect | Execution Analysis | Testing | Import from Scenario