Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Import Scenario as Test
You can import a scenario from a Use Case or other element, or from all elements in a package, into the Testing window Scenario tab. This avoids having to duplicate the scenario information manually.
The scenario description is copied to the Scenario Test Description tab in the Testing window. If a scenario contains a Structured Specification, its Action steps are also copied to the Description tab under the heading Structured Specification.
Import Element Scenarios
To import one or more scenarios from a specific element, follow the steps below:
- Open a diagram or the Project Browser and select the element into which to import the scenario.
- Open either:
- The Testing window and the Scenario tab, or
- The Testing folder of the Element Browser window.
- Right-click on the list of tests to display the context menu, and select the Import element scenario(s) menu option. The Import Scenario dialog displays.
- You can import scenarios from any element in the model by clicking on the Select element drop-down arrow and selecting the required element. Select the scenarios to import from the Select items to import list.
- Click on the OK button to import the selected scenario(s).
The Import Scenario dialog has the following additional options:
Option |
Use to |
Show related elements only |
Filter selection to apply only to related elements. |
Limit selection to these Object Types only |
Type in specific element types, separated by commas, to filter for only those element types. |
Refresh |
Refresh the list of available scenarios. |
Import Package Scenarios
To import scenarios from all elements in a package, follow the steps below:
- Open a diagram or the Project Browser and select the parent package element or an element within the package.
- Open either:
- The Testing window and the Scenario tab, or
- The Testing folder of the Element Browser window.
- Right-click on the list of tests to display the context menu, and select the Import Package Scenario(s) menu option. The Import Scenario dialog displays.
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. - In the Limit selection to these Object Types only field, type a comma-separated list of the object types for which to show scenarios. Click on the Refresh button.
- Click on the OK button to import the scenarios from each element as test scenarios for that element.