Use Cases 1.

Slides:



Advertisements
Similar presentations
Use Case Diagrams Damian Gordon.
Advertisements

CPSC 333: Foundations of Software EngineeringJ. Denzinger 2.2. Use Cases: Scenario based requirements modeling Recommended: Booch, Rumbaugh, Jacobson:
Use Case & Use Case Diagram
© 2010 Bennett, McRobb and Farmer1 Use Case Description Supplementary material to support Bennett, McRobb and Farmer: Object Oriented Systems Analysis.
Scenarios: The missing link or – “ Some Stuff About Use Cases and Testing”
Information System Engineering
January Ron McFadyen1 Use Cases in the UML Functionality under consideration is represented by use cases (named ellipses) enclosed in a box.
CT1404 Lecture 2 Requirement Engineering and Use Cases 1.
Use-case Modeling.
© Betty H.C. Cheng. This presentation is available free for non-commercial use with attribution under a creative commons license. Use Cases and.
Use Case modelling How to go from a diagram to a further definition.
Use Case Modelling.
Use Cases and Scenarios
Use Case Modeling. Kendall & Kendall© 2005 Pearson Prentice Hall18-2 Commonly Used UML Diagrams The most commonly used UML diagrams are: – Use case diagram,
Use Case Diagram.
Use Case Modeling. Use case diagram For each use case we develop  Object class diagram (with attributes only)  System sequence diagram (analysis) 
Requirements Analysis and Design Engineering Southern Methodist University CSE 7313.
1 Object-Oriented Modeling Using UML CS 3331 Section 2.4 Modeling Requirements with Use Cases.
Use Case Modeling Example By: Dr. Issam Al-Azzoni.
CPSC 203. Use Case Diagram  A description of a system’s behavior as it responds to a request that originates from outside of that system. Specifies the.
Use Case Model Use case diagram.
Use Case Driven Analysis Requirements Use Case Use Case Description System Sequence Diagram Chapter 5.
1 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Use cases.
R R R CSE870: Advanced Software Engineering: UML-- Use Cases1 Use Cases and Scenarios.
CS212: Object Oriented Analysis and Design Lecture 32: Use case and Class diagrams.
Scenario A scenario is a sequence of steps describing an interaction between a user and a system. Use case is a set of scenarios tied together by a common.
22 August, 2007Information System Design IT60105, Autumn 2007 Information System Design IT60105 Lecture 8 Use Case Diagrams.
UML (Unified Modeling Language)
Chapter 6: Structuring Requirements: Use Case Description and Diagrams Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Use Case Diagrams. Introduction In the previous Lecture, you saw a brief review of the nine UML diagrams. Now that you have the clear, you'll start to.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
UC Diagram & Scenario RKPL C & D. Using Use Case Diagram Use case diagrams are used to visualize, specify, construct, and document the (intended) behavior.
1 Team Skill 3 Defining the System Part 1: Use Case Modeling Noureddine Abbadeni Al-Ain University of Science and Technology College of Engineering and.
Welcome to M301 P2 Software Systems & their Development
Using Use Case Diagrams
Chapter 4: Business Process and Functional Modeling, continued
Requirements Spec Revisited
Use Case Modeling - II Lecture # 27.
Systems Analysis and Design in a Changing World, 6th Edition
Use Cases and Scenarios
Recall The Team Skills Analyzing the Problem (with 5 steps)
Storyboarding and Game Design SBG, MBG620 Full Sail University
Department of Computer Science
Use Case Model.
IS223D: OBJECT-ORIENTED DESIGN
Use case Diagram.
Use case diagrams A use case diagram is UML’s notation for showing the relationships among a set of use cases and actors A use case diagram can help the.
Use Case Model Use case diagram.
UML Use Case Diagrams.
Start at 17th March 2012 end at 31th March 2012
Requirements: Use Case Models and Narratives
Use Case Model Use case description.
SE-565 Software System Requirements IV. Use Cases
Use Case Modeling.
Concepts, Specifications, and Diagrams
Use Cases CS/SWE 421 Introduction to Software Engineering Dan Fleck
SAD ::: Spring 2018 Sabbir Muhammad Saleh
Systems Analysis and Design in a Changing World, 6th Edition
Object Oriented Analysis and Design
Use Case Modeling Example
Use Cases CS/SWE 421 Introduction to Software Engineering Dan Fleck
IS0514 Lecture Week 3 Use Case Modelling.
Interaction diagrams Interaction diagrams are models that describe how groups of objects collaborate in some behavior. Typically, an interaction diagram.
Software Design Lecture : 15.
Use Case Model Use case diagram – Part 2.
Using Use Case Diagrams
Requirements Very High level specification of what system should do
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Interaction Modeling Extracted from textbook:
Object-Oriented Software Engineering
Presentation transcript:

Use Cases 1

What is a Use-Case A use-case captures some user visible function This may be a large or small function A use-case achieves a discrete goal for the user Examples Format a document Request an elevator 05-Use-Cases

User Goals versus User Interactions Consider the following when formatting a document Define a style Change a style Copy a style from one document to the next versus Format a document Ensure consistent formatting of two documents The first are user interactions Things the user does to the system to achieve the goal The last is a user goal Something the user wants to achieve 05-Use-Cases

Goals and Interactions There is a place for both goals and interactions Understand what the system shall do Capture the user goals Understand how the user will achieve the goals Capture user interactions Sequences of user interactions Thus, start with the user goals and then refine the user goals into several (many) user interactions 05-Use-Cases

Use Case Diagrams A cashier uses the to scan an item. POS system  A cashier uses the to scan an item. POS system  A cashier uses the POS system to total items. 20

System Boundary Marks off the system as separate from its environment  Marks off the system as separate from its environment  Actors are outside  When no system boundary is shown, the system is assumed 21

Actor Someone or something outside the system that interacts with it  Someone or something outside the system that interacts with it  Actors represent “roles” individuals not Smith 22

Actors An actor represents a set of roles that users of use case play when interacting with these use cases. Actors can be human or automated systems. Actors are entities which require help from the system to perform their task or are needed to execute the system’s functions. Actors are not part of the system. Name

Use Cases and Actors From the perspective of a given actor, a use case does something that is of value to the actor, such as calculate a result or change the state of an object. The Actors define the environments in which the system lives

Use Case A use case achieves a goal of value to an actor does it the  A use case achieves a goal of value to an actor Defines a task which must be supported by the system What system is for not how it does it Starts with an active verb from    the point of view of the system 23

Relationships between Use Cases 1. Generalization - use cases that are specialized versions of other use cases. 2. Include - use cases that are included as parts of other use cases. Enable to factor common behavior. 3. Extend - use cases that extend the behavior of other core use cases. Enable to factor variants.

Use Case Modeling Example

Online Car Rental System A customer can browse available cars. A customer can create a new car reservation. The system validates credit card information by communicating with an online credit card validator system. A clerk can view and print car reservations.

Use Case Diagram – 1 (No use of includes/extends)

Use Case Description 1 - Create a New Reservation Primary Actor: Customer Secondary Actor: Online Visa Card Validator System Pre-conditions: Customer is on the main page. Post-conditions: If the basic flow was successful, a new reservation is created. Otherwise, the system state is unchanged.

Basic flow actor system 1. Customer selects the “Create a New Reservation” option. 2. System requests reservation information [pickup location, pickup date, return date, pickup time, return time, and vehicle]. 3.Customer submits reservation information. 4. System requests customer information [first name, last name, email address, driver’s license number, credit card number and date] 5. Customer submits his/her information. 6. System sends credit card information [first name, last name, credit card number and date] to Online Visa Card Validator System. 7. Online Visa Card Validator System validates credit card information. 8.Online Visa Card Validator System sends a message acknowledging credit card validation to System. 9. System displays a message confirming the new reservation and showing the reservation details. 10. System sends an email message to Customer’s email address confirming the new reservation and showing the reservation details.

Use Case Diagram – 2 (Use of includes/extends)

Use Case Description 2 Create a New Reservation Primary Actor: Customer Secondary Actor: Online Visa Card Validator System Pre-conditions: Customer is on the main page. Basic Flow: Customer selects the “Create a New Reservation” option. System requests reservation information [pickup location, pickup date, return date, pickup time, return time, and vehicle]. Customer submits reservation information. System requests customer information [first name, last name, email address, driver’s license number, credit card number and date] Customer submits his/her information. Execute the ‘Validate Credit Card Information’ use case. System displays a message confirming the new reservation and showing the reservation details. System sends an email message to Customer’s email address confirming the new reservation and showing the reservation details. Post-conditions: If the basic flow was successful, a new reservation is created. Otherwise, the system state is unchanged.

Alternative Flows – UCD 1 In Step 7, credit card information is not valid: Online Visa Card Validator System sends an error message to System. System displays the error message to Customer. Repeat from Step 4. In Step 3, necessary reservation information is missing: System displays an error message requesting the missing information. Repeat from Step 2. In Steps 3 and 5, a timeout occurs: System displays a ‘timeout’ error message. Customer is returned to the main page.

Extra Examples http://gyan.frcrce.ac.in/~surve/OOAD/UCD/UCD_CaseSt udy.html