UML Weekend Crash Course⢠- To Parent Directory
UML Weekend Crash Course⢠- To Parent Directory UML Weekend Crash Course⢠- To Parent Directory
Session 8—Identifying the Use Case Scenarios 89 In Figure 8-5, you identify the third scenario by continuing from the “Item Found” decision of Scenario 1 (near the bottom of Figure 8-5). But this time choose the path where the item was not found. Following this path leads you back to the top of the loop at the decision “Done or no unfilled items” Both of the paths out of this decision are already handled by Scenario 1, so you stop. This segment is Scenario 3. Scenario 1 Done or no unfilled items [True] [False] Choose Item Find Item (Locate Product) Use Case Scenario 3 [No] Item Found [Yes] Figure 8-5 Scenario 3
90 Saturday Morning In Figure 8-6, you identify the fourth scenario by continuing from the “Any unfilled quantities” decision of Scenario 1. But this time choose the path where there are unfilled quantities. Following this path tells you to create a backorder before the scenario ends. This segment is Scenario 4. Scenario 1 [True] Any unfilled quantities [Yes] [No] Create Back Order Scenario 4 Figure 8-6 Scenario 4 The goal of developing scenarios is to account for every logical possibility in the flow of the Use Case. Every segment identifies a unique line of logic within the total Use Case. But you’re not done yet. Applying Use Case scenarios Technically, the definition of a Use Case scenario says that each scenario describes a single logical path through a Use Case. Using the Activity diagram, you can visually identify each path simply by following the connecting lines in the diagram. But in the Fill Order Use Case example, each individual arrow traces a separate logical segment, not necessarily a complete logical path, from the beginning of the Use Case to the end of the Use Case. For example, alternative Scenario 3 only identified the steps that were unique from those already identified by Scenario 1. I did not show repeated segments of paths already singled out by a previous scenario. This convention is a common one employed to avoid redundancy and extra work. When I write the formal scenarios, or test cases, I simply build the test case from the scenario segments. By doing a little mixing and matching, I can provide comprehensive coverage of every combination. For example, to fully specify Scenario 2, I would include the first two steps and the decision from Scenario 1 plus the unique steps of Scenario 2. Note too that, whenever you encounter a loop, the scenario maps out only a single pass through the loop. To test the loop thoroughly, run the scenario segment multiple times, remembering to test the boundary conditions.
- Page 61 and 62: 38 Friday Evening Constraints The s
- Page 63 and 64: 40 Friday Evening An Inventory Cont
- Page 65 and 66: 42 Friday Evening Performance How
- Page 67 and 68: 44 Friday Evening In the effort to
- Page 70 and 71: Part II — Saturday Morning Sessio
- Page 72 and 73: SESSION 5 Understanding the Use Cas
- Page 74 and 75: Session 5—Understanding the Use C
- Page 76 and 77: Session 5—Understanding the Use C
- Page 78 and 79: Session 5—Understanding the Use C
- Page 80 and 81: Session 5—Understanding the Use C
- Page 82: Session 5—Understanding the Use C
- Page 85 and 86: 62 Saturday Morning Order Fulfillme
- Page 87 and 88: 64 Saturday Morning What does the
- Page 89 and 90: 66 Saturday Morning For example, th
- Page 91 and 92: 68 Saturday Morning REVIEW The goal
- Page 93 and 94: 70 Saturday Morning Much of this la
- Page 95 and 96: 72 Saturday Morning You reply that
- Page 97 and 98: 74 Saturday Morning Writing a Use C
- Page 99 and 100: 76 Saturday Morning Use Case dialog
- Page 101 and 102: 78 Saturday Morning Table 7-7 The F
- Page 104 and 105: SESSION 8 Identifying the Use Case
- Page 106 and 107: Session 8—Identifying the Use Cas
- Page 108 and 109: Session 8—Identifying the Use Cas
- Page 110 and 111: Session 8—Identifying the Use Cas
- Page 114: Session 8—Identifying the Use Cas
- Page 117 and 118: 94 Saturday Morning The Class diagr
- Page 119 and 120: 96 Saturday Morning Attribute visib
- Page 121 and 122: 98 Saturday Morning In a modeling t
- Page 123 and 124: 100 Saturday Morning Table 9-2 Cont
- Page 125 and 126: 102 Saturday Morning Operation comp
- Page 128 and 129: SESSION 10 The Class Diagram: Assoc
- Page 130 and 131: Session 10—The Class Diagram: Ass
- Page 132 and 133: Session 10—The Class Diagram: Ass
- Page 134 and 135: Session 10—The Class Diagram: Ass
- Page 136 and 137: Session 10—The Class Diagram: Ass
- Page 138 and 139: Part II — Saturday Morning Part R
- Page 140 and 141: SESSION 11 The Class Diagram: Aggre
- Page 142 and 143: Session 11—The Class Diagram: Agg
- Page 144 and 145: Session 11—The Class Diagram: Agg
- Page 146 and 147: Session 11—The Class Diagram: Agg
- Page 148 and 149: Session 11—The Class Diagram: Agg
- Page 150: Session 11—The Class Diagram: Agg
- Page 153 and 154: 130 Saturday Afternoon or not. Each
- Page 155 and 156: 132 Saturday Afternoon 5. “Any it
- Page 157 and 158: 134 Saturday Afternoon designed to
- Page 159 and 160: 136 Saturday Afternoon Table 12-3 T
- Page 161 and 162: 138 Saturday Afternoon REVIEW The C
90<br />
Saturday Morning<br />
In Figure 8-6, you identify the fourth scenario by continuing from the “Any unfilled<br />
quantities” decision of Scenario 1. But this time choose the path where there are unfilled<br />
quantities. Following this path tells you to create a backorder before the scenario ends. This<br />
segment is Scenario 4.<br />
Scenario 1<br />
[True]<br />
Any unfilled<br />
quantities<br />
[Yes]<br />
[No]<br />
Create Back<br />
Order<br />
Scenario 4<br />
Figure 8-6 Scenario 4<br />
The goal of developing scenarios is to account for every logical possibility in the flow of<br />
the Use Case. Every segment identifies a unique line of logic within the total Use Case.<br />
But you’re not done yet.<br />
Applying Use Case scenarios<br />
Technically, the definition of a Use Case scenario says that each scenario describes a single<br />
logical path through a Use Case. Using the Activity diagram, you can visually identify each<br />
path simply by following the connecting lines in the diagram. But in the Fill Order Use Case<br />
example, each individual arrow traces a separate logical segment, not necessarily a complete<br />
logical path, from the beginning of the Use Case to the end of the Use Case. For example,<br />
alternative Scenario 3 only identified the steps that were unique from those already identified<br />
by Scenario 1.<br />
I did not show repeated segments of paths already singled out by a previous scenario.<br />
This convention is a common one employed to avoid redundancy and extra work. When I<br />
write the formal scenarios, or test cases, I simply build the test case from the scenario segments.<br />
By doing a little mixing and matching, I can provide comprehensive coverage of<br />
every combination. For example, to fully specify Scenario 2, I would include the first two<br />
steps and the decision from Scenario 1 plus the unique steps of Scenario 2.<br />
Note too that, whenever you encounter a loop, the scenario maps out only a single pass<br />
through the loop. <strong>To</strong> test the loop thoroughly, run the scenario segment multiple times,<br />
remembering to test the boundary conditions.