SlideShare a Scribd company logo
1 of 14
1
Use Case Diagram
• Components
– Use cases
– Actors
– System
2
Use Case
•Components
– A large box: system boundary
– Stick figures outside the box: actors, both human and
systems
– Each oval inside the box: a use case that represents some
major required functionality and its variant
– A line between an actor and use case: the actor
participates in the use case
3
Use Case (Cont.)
• Use cases do not model all the tasks, instead they are used
to specify user views of essential system behaviour
4
Use Case (Cont.)
• Library use cases including borrowing a book, returning a
borrowed book, and paying a library fine
5
Includes
l Includes
n You have a piece of behavior that is similar across many
use cases
n Break this out as a separate use-case and let the other
ones “include” it
n Examples include
u Valuation
u Validate user interaction
u Sanity check on sensor inputs
u Check for proper authorization
6
Extends
l Extends
n A use-case is similar to another one but does a little bit
more
n Put the normal behavior in one use-case and the
exceptional behavior somewhere else
u Capture the normal behavior
u Try to figure out what can go wrong in each step
u Capture the exceptional cases in separate use-cases
n Makes it a lot easier to understand
7
Comprehensive Use Cases
Steps to write a Comprehensive Use Case:
1.Identify actors and goals
2.Write the main success scenario
3.List the failure extensions
4.Describe failure-handling
8
Comprehensive Use Cases
1. Identify actors and goals
What computers, subsystems, people will drive our system?
What does each actor need our system to do?
result: a list of use cases, a sketch of the system
2. Write the main success scenario
easiest to read; everything else is a complication on this
capture each actor's intent and responsibility
3. List the failure extensions
usually almost every step can fail (bad credit, out of stock...)
note failure condition separately, after main success scenario
4. Describe failure-handling
recoverable: back to main course (low stock + reduce quantity)
non-recoverable: fails (out of stock, or not a valued customer)
each scenario goes from trigger to completion
9
Use Case
Use Case ID: #
Use Case Name: Write the use case name here.
Actors: Actors involve in this use case.
Description: What this use case going to do.
Pre-conditions: States/conditions before executing the use case.
Post-conditions: Condition/states after executing the use case.
Normal Flow: Success scenario.
Exit Condition: Condition/state on which the use case will end.
Exception:
10
Use Case Example
Use Case ID: 06
Use Case Name: Compare Products
Actors: Customer/Guest
Description: Customer/Guest must be navigate to the Compare Products
Screen.
Pre-conditions: One product must be select before.
Post-conditions: Compare products screen must be visible to the
Customer/Guest.
Normal Flow: Customer/Guest must select one product and then should
click on the compare products button on the Product Details
Page.
Exit Condition: Successful Comparison.
Exception: Product is not available.
11
Creating a Use Case Model
• Creating a use case model is an iterative
activity.
– identification of actors
– use cases
– relationships among use cases
• These activities are sort of parallel
12
Relationship among Use Cases
• Use cases can be reused and extended in
two different fashions: extends and uses.
13
14
Elaborated Use Cases
• An elaborated use case has the following components:
– Use Case Name
– Implementation Priority: the relative implementation priority of the
use case.
– Actors: names of the actors that use this use case.
– Summary: a brief description of the use case.
– Precondition: the condition that must be met before the use case
can be invoked.
– Post-Condition: the state of the system after completion of the use
case.
– Extend: the use case it extends, if any.
– Uses: the use case it uses, if any.
– Normal Course of Events: sequence of actions in the case of
normal use.
– Alternative Path: deviations from the normal course.
– Exception: course of action in the case of some exceptional
condition.
– Assumption: all the assumptions that have been taken for this use
case.

More Related Content

Similar to Use Case Model with components in software.ppt

Similar to Use Case Model with components in software.ppt (20)

Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Final use case (1)
Final use case (1)Final use case (1)
Final use case (1)
 
Use Cases
Use CasesUse Cases
Use Cases
 
Use Cases
Use CasesUse Cases
Use Cases
 
Refining The System Definition
Refining The System DefinitionRefining The System Definition
Refining The System Definition
 
Defining The System
Defining The SystemDefining The System
Defining The System
 
SE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdf
 
chapter_5_5.ppt
chapter_5_5.pptchapter_5_5.ppt
chapter_5_5.ppt
 
Decision table
Decision tableDecision table
Decision table
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Chapter 4.pptx
Chapter 4.pptxChapter 4.pptx
Chapter 4.pptx
 
05 use case
05 use case05 use case
05 use case
 
SE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesSE_Lec 08_UML Use Cases
SE_Lec 08_UML Use Cases
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Use cases
Use casesUse cases
Use cases
 
BasicUseCases 02.ppt
BasicUseCases 02.pptBasicUseCases 02.ppt
BasicUseCases 02.ppt
 
04_Use_Cases_1.ppt
04_Use_Cases_1.ppt04_Use_Cases_1.ppt
04_Use_Cases_1.ppt
 
Use-Case-Diagram.ppt
Use-Case-Diagram.pptUse-Case-Diagram.ppt
Use-Case-Diagram.ppt
 
How to write use cases
How to write use casesHow to write use cases
How to write use cases
 

Recently uploaded

Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 

Recently uploaded (20)

Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 

Use Case Model with components in software.ppt

  • 1. 1 Use Case Diagram • Components – Use cases – Actors – System
  • 2. 2 Use Case •Components – A large box: system boundary – Stick figures outside the box: actors, both human and systems – Each oval inside the box: a use case that represents some major required functionality and its variant – A line between an actor and use case: the actor participates in the use case
  • 3. 3 Use Case (Cont.) • Use cases do not model all the tasks, instead they are used to specify user views of essential system behaviour
  • 4. 4 Use Case (Cont.) • Library use cases including borrowing a book, returning a borrowed book, and paying a library fine
  • 5. 5 Includes l Includes n You have a piece of behavior that is similar across many use cases n Break this out as a separate use-case and let the other ones “include” it n Examples include u Valuation u Validate user interaction u Sanity check on sensor inputs u Check for proper authorization
  • 6. 6 Extends l Extends n A use-case is similar to another one but does a little bit more n Put the normal behavior in one use-case and the exceptional behavior somewhere else u Capture the normal behavior u Try to figure out what can go wrong in each step u Capture the exceptional cases in separate use-cases n Makes it a lot easier to understand
  • 7. 7 Comprehensive Use Cases Steps to write a Comprehensive Use Case: 1.Identify actors and goals 2.Write the main success scenario 3.List the failure extensions 4.Describe failure-handling
  • 8. 8 Comprehensive Use Cases 1. Identify actors and goals What computers, subsystems, people will drive our system? What does each actor need our system to do? result: a list of use cases, a sketch of the system 2. Write the main success scenario easiest to read; everything else is a complication on this capture each actor's intent and responsibility 3. List the failure extensions usually almost every step can fail (bad credit, out of stock...) note failure condition separately, after main success scenario 4. Describe failure-handling recoverable: back to main course (low stock + reduce quantity) non-recoverable: fails (out of stock, or not a valued customer) each scenario goes from trigger to completion
  • 9. 9 Use Case Use Case ID: # Use Case Name: Write the use case name here. Actors: Actors involve in this use case. Description: What this use case going to do. Pre-conditions: States/conditions before executing the use case. Post-conditions: Condition/states after executing the use case. Normal Flow: Success scenario. Exit Condition: Condition/state on which the use case will end. Exception:
  • 10. 10 Use Case Example Use Case ID: 06 Use Case Name: Compare Products Actors: Customer/Guest Description: Customer/Guest must be navigate to the Compare Products Screen. Pre-conditions: One product must be select before. Post-conditions: Compare products screen must be visible to the Customer/Guest. Normal Flow: Customer/Guest must select one product and then should click on the compare products button on the Product Details Page. Exit Condition: Successful Comparison. Exception: Product is not available.
  • 11. 11 Creating a Use Case Model • Creating a use case model is an iterative activity. – identification of actors – use cases – relationships among use cases • These activities are sort of parallel
  • 12. 12 Relationship among Use Cases • Use cases can be reused and extended in two different fashions: extends and uses.
  • 13. 13
  • 14. 14 Elaborated Use Cases • An elaborated use case has the following components: – Use Case Name – Implementation Priority: the relative implementation priority of the use case. – Actors: names of the actors that use this use case. – Summary: a brief description of the use case. – Precondition: the condition that must be met before the use case can be invoked. – Post-Condition: the state of the system after completion of the use case. – Extend: the use case it extends, if any. – Uses: the use case it uses, if any. – Normal Course of Events: sequence of actions in the case of normal use. – Alternative Path: deviations from the normal course. – Exception: course of action in the case of some exceptional condition. – Assumption: all the assumptions that have been taken for this use case.