Use Case Modeling - techniques for detailing use cases

Slides:



Advertisements
Similar presentations
Requirements Diagrams With UML Models
Advertisements

Withdrawal Transaction Use Case Primary Actor: Customer Pre-conditions: The customer must have a valid ATM card and PIN. Post-conditions: The customer.
Use Case & Use Case Diagram
Use Cases -Use Case Diagram Chapter 3 1. Where are we? 2 Analysis Chapters Ch 2Investigating System Requirements Ch 3Use Cases Ch 4Domain Modeling Ch.
Introduction to Software Testing Chapter 2.6 Graph Coverage for Use Cases Paul Ammann & Jeff Offutt
Use Case Modeling SJTU. Unified Modeling Language (UML) l Standardized notation for object-oriented development l Needs to be used with an analysis and.
TC 1, 4, 6, 9 State Patrol Ticket System 1
Extending the Requirements Model - techniques for detailing use cases
CPSC 333: Foundations of Software EngineeringJ. Denzinger Small Test: Bank account manager System has to run on an automated teller machine. User must.
Introduction to Software Testing Chapter 2.6 Graph Coverage for Use Cases Paul Ammann & Jeff Offutt
CS3773 Software Engineering Lecture 03 UML Use Cases.
Tutorial 2. What is a UML Use Case Diagram? Use case diagrams model the functionality of a system using actors and use cases. Use cases are services or.
Interaction Diagrams Activity Diagram State Machine Diagram
January Ron McFadyen1 Ch 9. Use-case model: drawing System Sequence Diagrams Elaboration Iteration 1: a simple cash-only success scenario of.
Sept Ron McFadyen1 Use Cases Introduced by Ivar Jacobson in 1986 literal translation from Swedish ”usage case” - may be of.
Fall 2009ACS-3913 Ron McFadyen1 Use Cases Used to capture functional requirements – there are other requirements categories such as usability, reliability,
Systems Analysis and Design in a Changing World, 6th Edition
Systems Analysis and Design in a Changing World, 6th Edition
1 Lab Beginning Analysis and Design 4 Completion of first version of use case diagram initiates the processes of analysis and design. 4 UML provides.
Software Engineering EKT 420. What is Activity Diagram Activity diagrams are graphical representations of workflows of stepwise activities and actions.
Systems Analysis and Design in a Changing World, Fifth Edition
Overview of Transaction Processing and Enterprise Resource Planning Systems Chapter 2.
Systems Analysis and Design in a Changing World, 6th Edition
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 21. Review ANALYSIS PHASE (OBJECT ORIENTED DESIGN) Functional Modeling – Use case Diagram Description.
Systems Analysis and Design in a Changing World, 6th Edition
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 20. Review Software Requirements Requirements Engineering Process.
USE CASE Bayu Adhi Tama, MTI Faculty of Computer Science, University of Sriwijaya Slides are adapted from Petrus Mursanto
1 SYS366 Business Use Case Descriptions. 2 Today Identifying Business Use Cases Documenting Business Use Cases.
1 Use Case Modeling Reference: RUP Doc. Use Case Example 2.
5 Systems Analysis and Design in a Changing World, Fifth Edition.
Systems Analysis and Design in a Changing World, 6th Edition
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 3 Use Cases.
Use Cases -Use Case Diagram Chapter 3 1. Where are we? 2 Analysis Chapters Ch 2Investigating System Requirements Ch 3Use Cases Ch 4Domain Modeling Ch.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 5 INTRODUCTION TO SYSTEMS ANALYSIS AND DESIGN: AN AGILE, ITERATIVE APPROACH CHAPTER.
1 Graph Coverage (6). Reading Assignment P. Ammann and J. Offutt “Introduction to Software Testing” ◦ Section
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
CS212: Object Oriented Analysis and Design Lecture 32: Use case and Class diagrams.
Systems Analysis and Design in a Changing World, Fourth Edition
Information Systems Engineering Activity Diagram 1.
1 LAB What is Collaboration diagram? 4 Collaboration diagrams illustrate the interaction between the objects, using static spatial structure. 4.
Sept Ron McFadyen1 Use Cases Introduced by Ivar Jacobson in 1986 literal translation from Swedish ”usage case” Used to capture and describe.
Accounting Information Systems: A Business Process Approach Chapter Three: Documenting Accounting Systems.
Chapter 6: Structuring Requirements: Use Case Description and Diagrams Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
Chapter 3: Software Design –Use case Diagram Nouf Alghanmi.
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 Case Study and Use Cases for Case Study Lecture # 28.
Use Cases -Use Case Diagram
Using Use Case Diagrams
Chapter 4: Business Process and Functional Modeling, continued
DFD(Data Flow Diagram)
Paul Ammann & Jeff Offutt
Use Case Modeling - II Lecture # 27.
Systems Analysis and Design in a Changing World, 6th Edition
Use Case Driven Analysis
Storyboarding and Game Design SBG, MBG620 Full Sail University
Dynamic Modeling of Banking System Case Study - I
IS223D: OBJECT-ORIENTED DESIGN
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
UML Activity Diagrams.
SE-565 Software System Requirements IV. Use Cases
Concepts, Specifications, and Diagrams
SAD ::: Spring 2018 Sabbir Muhammad Saleh
Systems Analysis and Design in a Changing World, 6th Edition
Paul Ammann & Jeff Offutt
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Using Use Case Diagrams
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Information Systems Engineering
Accounting Information Systems: A Business Process Approach
Presentation transcript:

Use Case Modeling - techniques for detailing use cases Chapter 5 pp: 132-142, 146-148 Use Case Descriptions Activity Diagrams (also read Ch2: 60-63) CRUD Analysis

Outline Describing Use Cases in more detail Use Case Descriptions Activity Diagrams also read Ch2: 60-63 Validating Use Cases – using CRUD Analysis

Use Case Description Describes the details for a given use case Various levels of details Brief (Ch 3) Intermediate Fully developed ATM System Withdraw cash Use Case Description (brief version) Actor inserts a bank card and PIN, and the system sends the account number and PIN number to the bank for verification. Actor enters a withdrawal amount, and the system requests the bank’s authorization, creates a transaction record, and dispensing cash.

Use Case Description – “Brief” Create Customer account Customer Use Case Description “Brief”

Use Case Description – “Fully Developed” Create Customer account Customer

Use Case Description – “Fully Developed” Use case name – e.g. Create Customer Account Scenario – unique path through this use case (Create Online Customer Account) Triggering event – external, temporal, state Brief description – summary of Flow of Activities Actors – actual user(s) Related use cases – includes or extends Stakeholders – vested interest Preconditions – any object/system that must be available before the use case Post conditions – objects/associations created/updated during the use case Flow of activities – actor and system swimlanes showing interactions Exception conditions – what prevents the use case from completing

UML's Activity Diagram

UML Activity Diagram a graphical representation of procedural flow Activities People, System(s) Flow Sequential, conditional, repetition Used to model 2 things: Business Processes (BPM) -also read Ch2: 60-63 Use Case (Ch 5)

Activity Diagram – Symbols For Concurrency…. Synchronization Bar Fork Swimlane Loop contains activities performed by a single agent (actor, organizational unit) For each item Join End for each item Starting Activity Ending Activity Output cannot execute until all inflows have been received Decision Merge Activity/Action [guard] Transition/Activity Edge

Activity Diagram – Issue a Quote Use this notation for decisions - i.e. include the [guards] [guard]

Forks, Joins, and Decisions Option 1: A E D C B Option 2: F

Practice: Activity Diagram & Use Case Description Use Case Name: “Create New Sale for Contractor (on credit)” Use Case Description: A contractor initiates a purchase by taking materials to the checkout desk for contractors. The clerk enters the contractor's name into the system. The system displays the contractor's information, including his/her current credit standing. The clerk then opens up a new ticket (sale) for the contractor. Next, the clerk scans in each item to be purchased. The system finds the price of the item and adds the item to the ticket. At the end of the purchase, the clerk indicates the end of the sale. The system compares the total amount against the contractor’s current credit limit, and if it is acceptable, finalizes the sale. The system creates an electronic ticket for the items, and the contractor’s credit limit is reduced by the amount of the sale. There is an additional use case called “Create a New Cash Sale”.

Practice: Activity Diagram

Practice: Use Case Description Use case name Create a New Sale Scenario Creating a new sale for contractors (on credit) Triggering event Contractor wants to purchase items Brief description Contractor bring items to checkout desk. Clerk validates his account and credit limit. Clerk scan items. System looks up price, records items, and compares total to credit limit. The system creates a ticket with all items and reduces the credit limit. A ticket is printed upon request. Actors Clerk Related use cases None: includes or extends Stakeholders Sales clerk, Sales department, Accounting department Preconditions Account must exist; Inventory items must exist Post conditions Sale is created, Sale line items are created and connected to the sale. Account is updated, Inventory is reduced Flow of activities Actor System Clerk enters customer name Clerk scans items Clerk indicates end of the sale 1.1 System validates account 2.1 System creates a Sale 2.2 System looks up item 2.3 System adds item to Sale 3.1 System calculates total amount 3.2 System reduces credit limit Exception conditions 1.1 If account is out of balance, initiate "Create a New Cash Sale" use cases 2.2 If item is not found, clerk calls manager and manually enters item information 3.1 If amount is greater than credit limit, initiate "Create a New Cash Sale" use case

Validating Use Cases - CRUD Analysis Can be a tool for: use case identification and/or validation Ensure that there are use cases to cover the CRUD CRUD - For 1 data entity C R U D CRUD Matrix All use cases All data entities Shows responsibilities

CRUD CRUD Use Cases Place order Change order Cancel order Print order report Update customer profile View order status … Order C Create R Read U Update D Delete CRUD Matrix Use Cases Order OrderItem Customer Item Place order Update Customer Profile …