SlideShare a Scribd company logo
1 of 25
Use Case Diagram
Outline
• Use Case Diagrams
– Formal introduction
– UML notation
– Examples
• A use case diagram presents interactions
between the system and other systems or with
the system’s users, who are called actors
• Actors represent roles which may include
human users, external hardware or other
systems.
• It describes who will use the system and the
ways in which a user will interact with the
system to achieve a certain goal.
• Usually, the diagram is accompanied by a
narrative description, which details, in a
structured manner, the steps of each
interaction
• The use case technique enables creating
an initial description of the users’ needs,
so that later on the system’s behavior can
be defined by using other means, for
example, sequence or collaboration
diagrams
Components of a Use Case Diagram
• An actor may also be shown as a class rectangle
with the keyword «actor», with the usual
notation for all compartments.
• Other icons that convey the kind of actor may
also be used to denote an actor, actor such as
using a separate icon for non-human actors.
«actor»
Customer
Actor: Use Case Diagram
Use Case
• A use case is a single unit of meaningful work
• It provides a high-level view of behavior
observable to someone or something outside
the system
• The notation for a use case is an ellipse
Use case
ud use case
Relationship
• The notation for using a use case is a connecting
line with an optional arrowhead showing the
direction of control
• The following diagram indicates that the actor
“Patient” uses the “make appointment” use case
make appointment
patient
System Boundary
• It is usual to display use cases as being inside
the system and actors as being outside the
system
make appointment
Patient
Relationship
• A relationship from an extending use case to an
extended use case that specifies how and when the
behavior defined in the extending use case can be
inserted into the behavior defined in the extended use
case.
Registration use case is meaningful on its own. It could be extended with
optional Get Help On Registration use case
The point at which an extending use case is added can be defined by
means of an extension point
Relationship
• An include relationship defines that a use
case contains the behavior defined in another
use case.
patient
modify
ud Extend
ud Include
<<include>>
withdraw Card identification
Modify Order Get Approval
<<extend>>
Relationship: Use Case Connector
• The uses connector can optionally have
multiplicity values at each end, as in the
following diagram
which shows that a customer may only have one withdrawal
session at a time, but a bank may have any number of customers
making withdrawals concurrently
ud Multiplicity
0..*
Withdraw
0..1 1
1
Customer Bank
An example of use case diagram for Bank ATM subsystem
Ref: http://www.uml-diagrams.org/use-case-diagrams-examples.html#atm
Node Type Notation
Actor(default)
Actor (optional user-
defined icon)
Extend
Extend (with Condition)
Customer
Extension point
Selection
Extending (use case)
<<extend>>
Extended (use case)
Condition: [Customer selected HELP]
extension point: Selection
<<extend>>
Node Type Notation
Include
Use case
<<include>>
withdraw Card identification
Included use case
Including use case
withdraw
On-Line Help
Extension point
Selection
Use case diagram with rectangle representing the boundary of the subject
Use Case
Actor
Subject
Components of a Use Case Diagram
Notation Meaning
Use case: An Ellipse represents a single Use Case. The name
of the use case is written inside ellipse.
Actor
Actor: Represents every element which interact with the
system. It may be a user a another system which interact
with the system described in the use case.
Ordinary Relationship: Represents a connection that is a
channel for the transfer of information between a use case
and an actor or between use cases.
System boundary
System Boundary: A square represents the boundary of the
system. Inside the system are the use cases and outside the
square are the actors who interact with the system.
Use Case
Format of a Use Case Description
Use Case Name In this field we write the name of the use case.
Actors List of the actors who take part in the use case.
Description A short verbal description of the use case.
References Links to a requirements document and require use
cases.
Typical Course of event This is the main part of the use case description. Its
purpose is to describe the sequence of the use case’s
activities.
Alternate course This part describe the special course of action.
Precondition List preconditions that must be fulfilled the use case
can take place.
Post conditions Lists events that have to occur after the use case is
completed.
Assumptions Basic assumptions and other remarks.
Example: Bank ATM
Example: Bank ATM
Example: Student Teacher Information
System
Example: Student Teacher Information
System
Summary
• Use Case Diagrams
• UML notations for use case
• How to write a use case?
• Examples
References
• Roger S. Pressman, Software Engineering, A
Practitioner’s Approach, Sixth Edition,
20005.Engineering
• http://www.uml.org
• http://www.sciencedirect.com/

More Related Content

Similar to usecase (1).pptx

Lab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramLab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramFarah Ahmed
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxazida3
 
Lesson02_Use Case Diagrams
Lesson02_Use Case DiagramsLesson02_Use Case Diagrams
Lesson02_Use Case DiagramsMarwa Ali Eissa
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.pptRAJESH S
 
Use Case Analysis and Diagramming
 Use Case Analysis and Diagramming Use Case Analysis and Diagramming
Use Case Analysis and DiagrammingOrnella Dunn
 
conversion-gate02.pptx
conversion-gate02.pptxconversion-gate02.pptx
conversion-gate02.pptxNouraBaccar1
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)Manoj Reddy
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case DiagramKumar
 
Use Case Modeling In UML
Use Case Modeling In UMLUse Case Modeling In UML
Use Case Modeling In UMLSyed Hassan Ali
 
Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagramsjsm1979
 
use_case+use_case description.pptx
use_case+use_case description.pptxuse_case+use_case description.pptx
use_case+use_case description.pptxAqeelAbbas94
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagramsMir Majid
 

Similar to usecase (1).pptx (20)

Lab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramLab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagram
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
 
Use Case Modeling
Use Case ModelingUse Case Modeling
Use Case Modeling
 
Use case Modeling
Use case ModelingUse case Modeling
Use case Modeling
 
Lesson02_Use Case Diagrams
Lesson02_Use Case DiagramsLesson02_Use Case Diagrams
Lesson02_Use Case Diagrams
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 
Use Case Analysis and Diagramming
 Use Case Analysis and Diagramming Use Case Analysis and Diagramming
Use Case Analysis and Diagramming
 
Jar chapter 3
Jar chapter 3Jar chapter 3
Jar chapter 3
 
Usecase
UsecaseUsecase
Usecase
 
conversion-gate02.pptx
conversion-gate02.pptxconversion-gate02.pptx
conversion-gate02.pptx
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Use Case Modeling In UML
Use Case Modeling In UMLUse Case Modeling In UML
Use Case Modeling In UML
 
Use Case Diagrams part4
Use Case Diagrams part4Use Case Diagrams part4
Use Case Diagrams part4
 
Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagrams
 
Day01 01 software requirement concepts
Day01 01 software requirement conceptsDay01 01 software requirement concepts
Day01 01 software requirement concepts
 
use_case+use_case description.pptx
use_case+use_case description.pptxuse_case+use_case description.pptx
use_case+use_case description.pptx
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 

Recently uploaded

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Recently uploaded (20)

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

usecase (1).pptx

  • 2. Outline • Use Case Diagrams – Formal introduction – UML notation – Examples
  • 3. • A use case diagram presents interactions between the system and other systems or with the system’s users, who are called actors • Actors represent roles which may include human users, external hardware or other systems. • It describes who will use the system and the ways in which a user will interact with the system to achieve a certain goal. • Usually, the diagram is accompanied by a narrative description, which details, in a structured manner, the steps of each interaction
  • 4. • The use case technique enables creating an initial description of the users’ needs, so that later on the system’s behavior can be defined by using other means, for example, sequence or collaboration diagrams
  • 5. Components of a Use Case Diagram • An actor may also be shown as a class rectangle with the keyword «actor», with the usual notation for all compartments. • Other icons that convey the kind of actor may also be used to denote an actor, actor such as using a separate icon for non-human actors. «actor» Customer
  • 6. Actor: Use Case Diagram
  • 7. Use Case • A use case is a single unit of meaningful work • It provides a high-level view of behavior observable to someone or something outside the system • The notation for a use case is an ellipse Use case ud use case
  • 8. Relationship • The notation for using a use case is a connecting line with an optional arrowhead showing the direction of control • The following diagram indicates that the actor “Patient” uses the “make appointment” use case make appointment patient
  • 9. System Boundary • It is usual to display use cases as being inside the system and actors as being outside the system make appointment Patient
  • 10. Relationship • A relationship from an extending use case to an extended use case that specifies how and when the behavior defined in the extending use case can be inserted into the behavior defined in the extended use case. Registration use case is meaningful on its own. It could be extended with optional Get Help On Registration use case The point at which an extending use case is added can be defined by means of an extension point
  • 11. Relationship • An include relationship defines that a use case contains the behavior defined in another use case.
  • 12. patient modify ud Extend ud Include <<include>> withdraw Card identification Modify Order Get Approval <<extend>>
  • 13. Relationship: Use Case Connector • The uses connector can optionally have multiplicity values at each end, as in the following diagram which shows that a customer may only have one withdrawal session at a time, but a bank may have any number of customers making withdrawals concurrently ud Multiplicity 0..* Withdraw 0..1 1 1 Customer Bank
  • 14. An example of use case diagram for Bank ATM subsystem Ref: http://www.uml-diagrams.org/use-case-diagrams-examples.html#atm
  • 15. Node Type Notation Actor(default) Actor (optional user- defined icon) Extend Extend (with Condition) Customer Extension point Selection Extending (use case) <<extend>> Extended (use case) Condition: [Customer selected HELP] extension point: Selection <<extend>>
  • 16. Node Type Notation Include Use case <<include>> withdraw Card identification Included use case Including use case withdraw On-Line Help Extension point Selection
  • 17. Use case diagram with rectangle representing the boundary of the subject Use Case Actor Subject
  • 18. Components of a Use Case Diagram Notation Meaning Use case: An Ellipse represents a single Use Case. The name of the use case is written inside ellipse. Actor Actor: Represents every element which interact with the system. It may be a user a another system which interact with the system described in the use case. Ordinary Relationship: Represents a connection that is a channel for the transfer of information between a use case and an actor or between use cases. System boundary System Boundary: A square represents the boundary of the system. Inside the system are the use cases and outside the square are the actors who interact with the system. Use Case
  • 19. Format of a Use Case Description Use Case Name In this field we write the name of the use case. Actors List of the actors who take part in the use case. Description A short verbal description of the use case. References Links to a requirements document and require use cases. Typical Course of event This is the main part of the use case description. Its purpose is to describe the sequence of the use case’s activities. Alternate course This part describe the special course of action. Precondition List preconditions that must be fulfilled the use case can take place. Post conditions Lists events that have to occur after the use case is completed. Assumptions Basic assumptions and other remarks.
  • 22. Example: Student Teacher Information System
  • 23. Example: Student Teacher Information System
  • 24. Summary • Use Case Diagrams • UML notations for use case • How to write a use case? • Examples
  • 25. References • Roger S. Pressman, Software Engineering, A Practitioner’s Approach, Sixth Edition, 20005.Engineering • http://www.uml.org • http://www.sciencedirect.com/