SlideShare a Scribd company logo
Use Case
Modeling
By
Ramsha Ghaffr
Syed Hassan Ali Hashmi
Danial Raza
Outline
 Introduction
 What is Use Case
 Why We Use UseCase
 Reading Use Case Diagram
 Components Of Use Case
 Relationship Of Use Case
 How To Create Use case Diagram
 Benefits Of Use Case
2
Introduction
1
What is UseCase
• A formal way of representing how a
business system interacts with its
environment
• Illustrates the activities that are
performed by the users of the
system
• A scenario-based technique in the
UML
4
A Use Case description will generally
includes:
○ General comments and notes describing the use
case.
○ Requirements
○ Scenarios
○ Constraints
5
Why We Use UseCase
In a traditional Software Requirements
Specification (SRS), features are presented
without context. For example:
The system shall log credit payments to the
accounts receivable system.
The lack of context makes room for
ambiguity.
○ When does this event happen?
○ Is the order relative to other events
significant?
○ Who triggers the event?
○ What happens when the accounts
receivable system is unavailable?
6
Where to Use a Use Case Diagram?
Use case diagrams specify the events of a
system and their flows. But use case
diagram never describes how they are
implemented.
Use case diagram can be imagined as a
black box where only the input, output, and
the function of the black box is known
7
Reading Use Case Diagram
Starting with the actor check-in employee
(1) you can find associations between the
two use cases check-in (2) and express
check-in (3). This means that persons who
interact with the IT system as check-in
employees can carry out the use cases
check-in and express check-in.
8
Components
Of
UseCase
2
Components/Elements
A Use Case Modeling Contains
○ Actors
○ Use Case
○ Communication Line
○ System Boundaries
10
Actors
A user or outside system that interacts
with the system being designed in
order to obtain some value from that
interaction
11
Use Case
A use case is a summary of scenarios for a
single task or goal.
12
Communicaiton Line
The relationships between and among the
actors and the use cases.
13
System Boundaries
A box that sets a system scope to use
cases. All use cases outside the box would
be considered outside the scope of that
system
14
15
Relationship
Of
Use Case
3
RelationShips
Use cases share different kinds of
relationships. A relationship between two
use cases is basically a dependency
between the two use cases.
Use case relationships can be one of the
following:
○ Association
○ Include
○ Extend
○ Generalizations
17
Association
Indicate that instances of one model
element are connected to instances of
another model element
18
Include Relationship
○ When a use case is depicted as using
the functionality of another use case in
a diagram, this relationship between the
use cases is named as
an include relationship.
○ Literally speaking, in
an include relationship, a use case
includes the functionality described in
another use case as a part of its
process
19
Include Relationship
For example,:
you can see that the functionality defined
by the "Validate patient records" use case is
contained within the "Make appointment"
use case. Hence, whenever the "Make
appointment" use case executes, the
business steps defined in the "Validate
patient records" use case are also
executed.
20
Extend Relationship
○ In an extend relationship between two
use cases, the child use case adds to
the existing functionality and
characteristics of the parent use case.
○ An extend relationship is depicted with a
directed arrow having a dotted shaft,
similar to the include relationship.
○ The tip of the arrowhead points to the
parent use case and the child use case
is connected at the base of the arrow
21
Extend Relationship
An extend relationship between the
"Perform medical tests" (parent) and
"Perform Pathological Tests" (child) use
cases. The "Perform Pathological Tests" use
case enhances the functionality of the
"Perform medical tests" use case. Essentially,
the "Perform Pathological Tests" use case is
a specialized version of the generic
"Perform medical tests" use case.
22
Generalization Relationship
Generalization relationships are used in
use-case diagrams to indicate that the
child receives all of the attributes,
operations, and relationships that are
defined in the parent.
23
How To Create
Use case Diagram
4
Creating Use Case
○ List main system functions (use cases) in a
column: – think of business events demanding
system’s response – users’ goals/needs to be
accomplished via the system – Create, Read,
Update, Delete (CRUD) data tasks – Naming use
cases – user’s needs usually can be translated
in data tasks
○ Draw ovals around the function labels
○ Draw system boundary
○ Draw actors and connect them with use cases
(if more intuitive, this can be done as step 2)
○ Specify include and extend relationships
between use cases (yes, at the end - not
before, as this may pull you into process
thinking, which does not apply in UC
diagramming).
25
Benefits Of
Usecase
5
Advantages
○ Very simple to draw and understand
which makes it good choice for analyst
to use it during requirements gathering.
○ A system can be viewed as whole with
all of its use cases and actors/users how
are initiating and having involvement in
a particular use case.
○ As there is no technicality involved in
drawing or reading Use case diagram it
benefits all stakeholder to understand
the system.
27
Disadvantages
○ They do not capture the non-functional
requirements easily.
○ There might be a learning curve for the
developer and/or specially, the client in
using these use cases.
28
29
Summary
○ Uses case describe example system
behaviors (contracts) from the user’s
point of view.
○ Easy To Implement
○ Easy To Read the systems
○ 4 steps to create use cases.
30
Thank You
31

More Related Content

What's hot (19)

DOC
Use case diagrams
Mir Majid
 
PPT
Use Case Model
Ali Nguyen
 
PPTX
Interface specification
maliksiddique1
 
PPTX
Use case modeling & analysis v 1
JIGAR MAKHIJA
 
PDF
SE_Lec 01_ Introduction to Software Enginerring
Amr E. Mohamed
 
PPTX
Software engineering
renukarenuka9
 
PDF
Use case diagrams
mohamed tahoon
 
PPTX
Ch5 system modeling
software-engineering-book
 
PPT
Use Cases
Juan Dominguez
 
PDF
SE18_Lec 09_UML Use Cases
Amr E. Mohamed
 
PPT
Requirements presentation
Nataly Chill
 
PPT
Modelling System Requirements: Events & Things
wmomoni
 
PPT
Modeling System Requirements
Asjad Raza
 
PPTX
Lecture#04, use case diagram
babak danyal
 
PDF
SE2018_Lec 16_ Architectural Design
Amr E. Mohamed
 
PPT
Software engg. pressman_ch-8
Dhairya Joshi
 
PDF
SE18_Lec 01_Introduction to Software Engineering
Amr E. Mohamed
 
PPTX
3 the system analyst
ricardovigan
 
Use case diagrams
Mir Majid
 
Use Case Model
Ali Nguyen
 
Interface specification
maliksiddique1
 
Use case modeling & analysis v 1
JIGAR MAKHIJA
 
SE_Lec 01_ Introduction to Software Enginerring
Amr E. Mohamed
 
Software engineering
renukarenuka9
 
Use case diagrams
mohamed tahoon
 
Ch5 system modeling
software-engineering-book
 
Use Cases
Juan Dominguez
 
SE18_Lec 09_UML Use Cases
Amr E. Mohamed
 
Requirements presentation
Nataly Chill
 
Modelling System Requirements: Events & Things
wmomoni
 
Modeling System Requirements
Asjad Raza
 
Lecture#04, use case diagram
babak danyal
 
SE2018_Lec 16_ Architectural Design
Amr E. Mohamed
 
Software engg. pressman_ch-8
Dhairya Joshi
 
SE18_Lec 01_Introduction to Software Engineering
Amr E. Mohamed
 
3 the system analyst
ricardovigan
 

Similar to Use Case Modeling In UML (20)

PPTX
Lab 3 Introduction to the UML - how to create a use case diagram
Farah Ahmed
 
PPTX
Use Case Modelling.pptx
azida3
 
PDF
Use case diagrams
Fajar Baskoro
 
PPTX
Use Case Analysis and Diagramming
Ornella Dunn
 
PPT
Uml diagrams usecase
SandhyaTatekalva
 
PPTX
Use Case
Syeda
 
PDF
UseCaseDiagrams.pdf shhsja whuwbwnwhwywbw
211b410
 
PPTX
Use case diagram
City University
 
PPT
Use case modeling
Wajahat Hasnain
 
PPTX
SE Software Requirements Engineering .pptx
chathurishalani123
 
PDF
SE_RE-II-CH5 (3).pdf
AZKANAAZ1
 
PPTX
Lesson02_Use Case Diagrams
Marwa Ali Eissa
 
PPTX
Lecture no 8 use case modeling and use case diagrams
naveed428
 
PPT
05 use case
Baskarkncet
 
PPTX
Use Case Diagram.pptx
Genta Sahuri
 
PDF
Use case diagrams
Ahmed Elshahat Mohamed
 
PPTX
Presentation Use Case Diagram and Use Case Specification.pptx
azida3
 
PDF
Requirement analysis and UML modelling in Software engineering
snehalkulkarni74
 
PPTX
USE case diagrams.ppt.pptx..............
salmannawaz6566504
 
PPTX
StructureofUseCases.pptx
ANEESHSHARMA20MIS032
 
Lab 3 Introduction to the UML - how to create a use case diagram
Farah Ahmed
 
Use Case Modelling.pptx
azida3
 
Use case diagrams
Fajar Baskoro
 
Use Case Analysis and Diagramming
Ornella Dunn
 
Uml diagrams usecase
SandhyaTatekalva
 
Use Case
Syeda
 
UseCaseDiagrams.pdf shhsja whuwbwnwhwywbw
211b410
 
Use case diagram
City University
 
Use case modeling
Wajahat Hasnain
 
SE Software Requirements Engineering .pptx
chathurishalani123
 
SE_RE-II-CH5 (3).pdf
AZKANAAZ1
 
Lesson02_Use Case Diagrams
Marwa Ali Eissa
 
Lecture no 8 use case modeling and use case diagrams
naveed428
 
05 use case
Baskarkncet
 
Use Case Diagram.pptx
Genta Sahuri
 
Use case diagrams
Ahmed Elshahat Mohamed
 
Presentation Use Case Diagram and Use Case Specification.pptx
azida3
 
Requirement analysis and UML modelling in Software engineering
snehalkulkarni74
 
USE case diagrams.ppt.pptx..............
salmannawaz6566504
 
StructureofUseCases.pptx
ANEESHSHARMA20MIS032
 
Ad

More from Syed Hassan Ali (7)

PPTX
COCOMO Model in software project management
Syed Hassan Ali
 
PPTX
Resource Allocation In Software Project Management
Syed Hassan Ali
 
PPTX
Accountability And Auditing In Professional Practice
Syed Hassan Ali
 
PPTX
Software Generic Design Process.
Syed Hassan Ali
 
PPTX
Process synchronization
Syed Hassan Ali
 
PPTX
Structured Query Language (SQL)
Syed Hassan Ali
 
PPTX
Grasp patterns and its types
Syed Hassan Ali
 
COCOMO Model in software project management
Syed Hassan Ali
 
Resource Allocation In Software Project Management
Syed Hassan Ali
 
Accountability And Auditing In Professional Practice
Syed Hassan Ali
 
Software Generic Design Process.
Syed Hassan Ali
 
Process synchronization
Syed Hassan Ali
 
Structured Query Language (SQL)
Syed Hassan Ali
 
Grasp patterns and its types
Syed Hassan Ali
 
Ad

Recently uploaded (20)

PDF
Introduction presentation of the patentbutler tool
MIPLM
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PDF
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Introduction presentation of the patentbutler tool
MIPLM
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
Introduction to Indian Writing in English
Trushali Dodiya
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Controller Request and Response in Odoo18
Celine George
 
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
Horarios de distribución de agua en julio
pegazohn1978
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 

Use Case Modeling In UML

  • 1. Use Case Modeling By Ramsha Ghaffr Syed Hassan Ali Hashmi Danial Raza
  • 2. Outline  Introduction  What is Use Case  Why We Use UseCase  Reading Use Case Diagram  Components Of Use Case  Relationship Of Use Case  How To Create Use case Diagram  Benefits Of Use Case 2
  • 4. What is UseCase • A formal way of representing how a business system interacts with its environment • Illustrates the activities that are performed by the users of the system • A scenario-based technique in the UML 4
  • 5. A Use Case description will generally includes: ○ General comments and notes describing the use case. ○ Requirements ○ Scenarios ○ Constraints 5
  • 6. Why We Use UseCase In a traditional Software Requirements Specification (SRS), features are presented without context. For example: The system shall log credit payments to the accounts receivable system. The lack of context makes room for ambiguity. ○ When does this event happen? ○ Is the order relative to other events significant? ○ Who triggers the event? ○ What happens when the accounts receivable system is unavailable? 6
  • 7. Where to Use a Use Case Diagram? Use case diagrams specify the events of a system and their flows. But use case diagram never describes how they are implemented. Use case diagram can be imagined as a black box where only the input, output, and the function of the black box is known 7
  • 8. Reading Use Case Diagram Starting with the actor check-in employee (1) you can find associations between the two use cases check-in (2) and express check-in (3). This means that persons who interact with the IT system as check-in employees can carry out the use cases check-in and express check-in. 8
  • 10. Components/Elements A Use Case Modeling Contains ○ Actors ○ Use Case ○ Communication Line ○ System Boundaries 10
  • 11. Actors A user or outside system that interacts with the system being designed in order to obtain some value from that interaction 11
  • 12. Use Case A use case is a summary of scenarios for a single task or goal. 12
  • 13. Communicaiton Line The relationships between and among the actors and the use cases. 13
  • 14. System Boundaries A box that sets a system scope to use cases. All use cases outside the box would be considered outside the scope of that system 14
  • 15. 15
  • 17. RelationShips Use cases share different kinds of relationships. A relationship between two use cases is basically a dependency between the two use cases. Use case relationships can be one of the following: ○ Association ○ Include ○ Extend ○ Generalizations 17
  • 18. Association Indicate that instances of one model element are connected to instances of another model element 18
  • 19. Include Relationship ○ When a use case is depicted as using the functionality of another use case in a diagram, this relationship between the use cases is named as an include relationship. ○ Literally speaking, in an include relationship, a use case includes the functionality described in another use case as a part of its process 19
  • 20. Include Relationship For example,: you can see that the functionality defined by the "Validate patient records" use case is contained within the "Make appointment" use case. Hence, whenever the "Make appointment" use case executes, the business steps defined in the "Validate patient records" use case are also executed. 20
  • 21. Extend Relationship ○ In an extend relationship between two use cases, the child use case adds to the existing functionality and characteristics of the parent use case. ○ An extend relationship is depicted with a directed arrow having a dotted shaft, similar to the include relationship. ○ The tip of the arrowhead points to the parent use case and the child use case is connected at the base of the arrow 21
  • 22. Extend Relationship An extend relationship between the "Perform medical tests" (parent) and "Perform Pathological Tests" (child) use cases. The "Perform Pathological Tests" use case enhances the functionality of the "Perform medical tests" use case. Essentially, the "Perform Pathological Tests" use case is a specialized version of the generic "Perform medical tests" use case. 22
  • 23. Generalization Relationship Generalization relationships are used in use-case diagrams to indicate that the child receives all of the attributes, operations, and relationships that are defined in the parent. 23
  • 24. How To Create Use case Diagram 4
  • 25. Creating Use Case ○ List main system functions (use cases) in a column: – think of business events demanding system’s response – users’ goals/needs to be accomplished via the system – Create, Read, Update, Delete (CRUD) data tasks – Naming use cases – user’s needs usually can be translated in data tasks ○ Draw ovals around the function labels ○ Draw system boundary ○ Draw actors and connect them with use cases (if more intuitive, this can be done as step 2) ○ Specify include and extend relationships between use cases (yes, at the end - not before, as this may pull you into process thinking, which does not apply in UC diagramming). 25
  • 27. Advantages ○ Very simple to draw and understand which makes it good choice for analyst to use it during requirements gathering. ○ A system can be viewed as whole with all of its use cases and actors/users how are initiating and having involvement in a particular use case. ○ As there is no technicality involved in drawing or reading Use case diagram it benefits all stakeholder to understand the system. 27
  • 28. Disadvantages ○ They do not capture the non-functional requirements easily. ○ There might be a learning curve for the developer and/or specially, the client in using these use cases. 28
  • 29. 29
  • 30. Summary ○ Uses case describe example system behaviors (contracts) from the user’s point of view. ○ Easy To Implement ○ Easy To Read the systems ○ 4 steps to create use cases. 30