University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 1 what are use cases? “A specification of sequences of actions, including variant.

Slides:



Advertisements
Similar presentations
Requirements Elicitation and Use Case Diagrams
Advertisements

Use Case Diagrams Damian Gordon.
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.
Information System Engineering
Use Case Modeling CIS 4800 Kannan Mohan Department of CIS Zicklin School of Business, Baruch College Copyright © 2009 John Wiley & Sons, Inc. Copyright.
CS3773 Software Engineering Lecture 03 UML Use Cases.
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.
1 CS 426 Senior Projects Chapter 4: Use Case Modeling [Arlow and Neustadt, 2002] February 8, 2007.
Sept Ron McFadyen1 Use Cases Introduced by Ivar Jacobson in 1986 literal translation from Swedish ”usage case” - may be of.
SE 555 Software Requirements & Specification1 Use-Case Modeling: Overview and Context.
Fall 2009ACS-3913 Ron McFadyen1 Use Cases Used to capture functional requirements – there are other requirements categories such as usability, reliability,
1 CS 425 Software Engineering Project Preparation Use Case Modeling [Based on Chapters 3 & 4, Arlow and Neustadt, “UML and the Unified Process,” Addison-Wesley,
Use Case Modelling.
1 CS 426 Senior Projects Chapter 4: Use Case Modeling [Arlow and Neustadt, 2005] February 5, 2009.
Use Case Modeling. Kendall & Kendall© 2005 Pearson Prentice Hall18-2 Commonly Used UML Diagrams The most commonly used UML diagrams are: – Use case diagram,
03/12/2001 © Bennett, McRobb and Farmer Use Case Diagrams Based on Chapter 6 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and.
Use Case Diagram.
USE Case Model.
1 Requirements Modeling using UML 2.0 Use Cases. 2 Requirements Engineering Software Lifecycle Activities System Engineering Requirements Analysis Software.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 06. Requirements.
Chapter 6 Use Cases. Use Cases: –Text stories Some “actor” using system to achieve a goal –Used to discover and record requirements –Serve as input to.
The Requirement. What is Inception? What is the vision and business case for this project? –not to define all the requirements Feasible? Buy and/or build?
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 20. Review Software Requirements Requirements Engineering Process.
Use Cases 7/09. lnot part of the system lrepresents roles a user can play lrepresents a human, a machine or another system lactively exchanges information.
Requirements as Usecases Capturing the REQUIREMENT ANALYSIS DESIGN IMPLEMENTATION TEST.
Requirements Analysis and Design Engineering Southern Methodist University CSE 7313.
® IBM Software Group © 2006 IBM Corporation Writing Good Use Cases Module 1: Introduction to Use-Case Modeling.
A Use Case Primer 1. The Benefits of Use Cases  Compared to traditional methods, use cases are easy to write and to read.  Use cases force the developers.
Faculty of Applied Engineering and Urban Planning Software Engineering Department Software Engineering Lab Use Cases Faculty of Information system Technology.
Object Oriented Analysis & Design & UML (Unified Modeling Language) 1 Part II: Requirements The requirements workflow Use case modeling Advanced.
1 Use Case Diagrams Use Case Actor Use case description Use case realization (Scenario) Use case relationships –Extends –Uses.
Use Case Modeling Chapter 7 Part of Requirements Modeling Designing Concurrent, Distributed, and Real-Time Applications with UML Hassan Gomaa (2001)
1 Structuring Systems Requirements Use Case Description and Diagrams.
University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 systems analysis 1 what is systems analysis? preparation of the system’s requirements/definition,
Chapter 4: Use Case Modeling [Arlow and Neustadt, 2005] CS 790M Project preparation (II) University of Nevada, Reno Department of Computer Science & Engineering.
Use Cases Use Cases are employed to describe the functionality or behavior of a system. Each use case describes a different capability that the system.
Use Case Diagram The purpose is to communicate the system’s functionality and behaviour to the customer or end user. Mainly used for capturing user requirements.
Business Analysis with For PG MDI, Gurgaon Kamna Malik, Ph.D.
1 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Use cases.
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.
Sept Ron McFadyen1 Use Cases Introduced by Ivar Jacobson in 1986 literal translation from Swedish ”usage case” Used to capture and describe.
Lecture 14 22/10/15. The Object-Oriented Analysis and Design  Process of progressively developing representation of a system component (or object) through.
UML - Development Process 1 Software Development Process Using UML.
Use Case Diagram Lecture # 1. Use Case Diagram Use-cases are descriptions of the functionality of a system from a user perspective.  Depict the behaviour.
Chapter 6: Structuring Requirements: Use Case Description and Diagrams Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
1 BTS330 Visual Modeling. What is Visual Modeling? 2 Copyright © 1997 by Rational Software Corporation Computer System Business Process Order Item Ship.
University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 sequence diagrams 1 synchronous indicates nested flow of control used to ensure that state.
George Wang, Ph.D. COMP 380/L Lesson 2. Use Case Use cases are a way to capture system functionalities (i.e., functional requirements) Based on use case.
Jan Ron McFadyen1 Use Cases Used to capture functional requirements – there are other requirements categories such as usability, reliability,
Engineering Quality Software Week02 J.N.Kotuba1 SYST Engineering Quality Software.
CMPE 280 Web UI Design and Development August 29 Class Meeting
Use Case Modeling - II Lecture # 27.
UML Use Case Diagrams.
Chapter 4: Use Case Modeling
SE-565 Software System Requirements IV. Use Cases
SAD ::: Spring 2018 Sabbir Muhammad Saleh
Chapter 9 Use Cases.
Chapter 4: Use Case Modeling
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
Chapter 4: Use Case Modeling
Engineering Quality Software
CS 420/620 HCI Use Case Modeling Project Preparation
CS 425 Software Engineering
CS 425/625 Software Engineering
Presentation transcript:

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 1 what are use cases? “A specification of sequences of actions, including variant sequences and error sequences, that a system, subsystem or class can perform by interacting with outside actors” The UML Reference Manual. Use cases are a way of capturing requirements. You specify: actors - roles played by people or things that use the system use cases - things the actors can do with the system relationships - a meaningful relationships between actors and uses cases system boundary - a box drawn around the use cases to denote the edge or boundary of the system being modeled. Use cases are always started by an actor and are always written from the point of view of the actor. Arlow, Neustadt

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 2 Requirements List Use Case Model Candidate Requirements Elicit requirements Project Initiation Document Select requirements Develop use cases Requirements Analyst (and Architect) Glossary In Inception and Elaboration Phases

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 3 Requirements capture and modelling Requirements Team Project Initiation Document Requirements List Use Case Model Initial System Architecture Interface Prototypes Glossary Deliverables Input In Inception and Elaboration Phases

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 4 use cases do something of value to an actor: calculate a result generate a new object change the state of an object can be high level (e.g. process a loan) can be more specific (e.g. complete loan application) are used: to document requirements as guidelines for system testing use case diagrams contain: use cases actors relationships

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 5 an actor is… a coherent set of roles that the user of use cases plays when interacting with use cases human, department, hardware device, another system… not part of the system (lives outside the system) connected by association with the use case by sending and/or receiving message(s)

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 6 use case diagrams capture the intended behavior of a system without having to specify how that behavior is implemented model the context and requirements of a system

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 7 documenting use cases name of use case purpose actors stakeholders and interests description relationships to other use cases flow of events: trigger basic flow alternative flows exceptional flows pre-conditions post-conditions

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 8 Use case: displayShoppingBasket ID:UC11 Actors:customer Preconditions: 1.the customer is logged on the system Flow of Events: 1. the use case starts when the customer selects “display basket” 2. if there are not items in the basket 2.1 the system informs the customer there are no items in the basket yet 2.2 the use case terminates 3. the system displays a list of all items in the customer’s shopping basket giving their product id and name, quantity and item price Postconditions: Alternative flow 1: 1. at any time the customer may leave the shopping basket display screen Postconditions: Alternative flow 2: 1. at any time the customer may leave the system Postconditions: Alternative flow 3: sample use case documentation Arlow, Neustadt

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 9 actor generalization listProducts orderProducts acceptPayment sales system customer sales agent calculateCommission listProducts orderProducts acceptPayment sales system purchaser sales agent calculateCommission customer before  after  Arlow, Neustadt

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 10 bookAppointment addNewPatient clinic system patient new patient revisePatientInfo returning patient actor / use case multiplicity 1 * * * * *

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 11 parent use case child use cases use case generalization findProduct findBookfindCD sales system customer child use cases may: inherit features from parent use case add new features override (change inherited features) Arlow, Neustadt

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 12 use case generalization

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 13 include relationship common behavior can be a use case of it’s own

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 14 include relationship changeEmployeeDetails viewEmployeeDetails deleteEmployeeDetails findEmployeeDetails personnel system manager > Arlow, Neustadt

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 15 add optional or conditional behavior to base case extend relationship

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 16 conditional extension

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 17 showing system context

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 18 example

University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 Use Case 19