01.01.2015 Views

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

52<br />

Saturday Morning<br />

Use Case scenarios<br />

A Use Case scenario is one logical path through a Use Case, one possible sequence of steps<br />

in the execution of the Use Case. A Use Case may include any number of scenarios. The set<br />

of scenarios for one Use Case identifies everything that can happen when that Use Case is<br />

used. Consequently, the set of scenarios becomes the basis for your test plan for the Use<br />

Case. As the application design deepens, the test plans are expanded to keep the tests<br />

focused on the original expectations for the Use Case expressed in the scenarios.<br />

These three elements — the Use Case diagram, narrative, and scenarios — comprise the<br />

Use Case Model. The remainder of this session is devoted to the Use Case diagram. Session 7<br />

covers the Use Case narrative, and Session 8 covers the Use Case scenarios.<br />

Defining the Elements of the Use Case Diagram<br />

Of the three elements that comprise the Use Case Model, the only one actually defined by<br />

the <strong>UML</strong> is the Use Case diagram (Figure 5-3).<br />

2. System<br />

3. Use Case<br />

5. Dependency<br />

1. Actor<br />

4. Association<br />

6. Generalization<br />

Figure 5-3 Elements of a Use Case diagram<br />

Six modeling elements make up the Use Case diagram: systems, actors, Use Cases, associations,<br />

dependencies, and generalizations.<br />

System: Sets the boundary of the system in relation to the actors who use it (outside<br />

the system) and the features it must provide (inside the system).<br />

Actor: A role played by a person, system, or device that has a stake in the successful<br />

operation of the system.<br />

Use Case: Identifies a key feature of the system. Without these features, the system<br />

will not fulfill the user/actor requirements. Each Use Case expresses a goal that the<br />

system must achieve.<br />

Association: Identifies an interaction between actors and Use Cases. Each association<br />

becomes a dialog that must be explained in a Use Case narrative. Each narrative in<br />

turn provides a set of scenarios that function as test cases when evaluating the<br />

analysis, design, and implementation of the Use Case.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!