Set Up Scenario Specification
You can create a specification for a scenario in one of several ways:
- Enter the specification yourself, as described below
- Generate a specification from an Activity diagram created under a Use Case element
- Generate a specification from the notes text of the scenario in the Description tab
- Generate a specification from text held on the clipboard.
To enter the specification yourself, starting with the basic path, follow the steps below:
- In the Scenario field, click on the drop-down arrow and select the Basic Path scenario.
- In the new step field in the Action column, type the text of the first step or action.
- Tab to the Uses column and, if necessary, type the name of each element used in this step.
The values in the Uses, Results and State columns, whilst optional, are significant if you want to generate a diagram from the specification. If you type the name of an element linked to the current element (and listed in the Context References tab), the element name is highlighted and underlined.
- Tab to the Results column and, if necessary, type the outcome of completing this step.
- Tab to the State column and, if necessary, type the name of the state into which the step moves the action.
- When you move out of the Action column, the next new step field displays underneath. Repeat steps 2 to 5 as many times as is necessary.
The Structured Specification tab should now resemble the following illustration:
You can also create constraints on the element that have an impact on the scenarios.
Repeat the Scenario Steps procedure for each scenario you have created. You can now adapt, enhance and interrelate the scenario specifications using the facilities of the Structured Specification tab:
- Structured Specification Toolbar
- Item context menu
- Selected Text context menu
- Entry Points context menu
- Floating Toolbar.