SlideShare uma empresa Scribd logo
1 de 31
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

Mais conteúdo relacionado

Mais procurados

Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
Mir Majid
 
Use Case Model
Use Case ModelUse Case Model
Use Case Model
Ali Nguyen
 
Requirements presentation
Requirements presentationRequirements presentation
Requirements presentation
Nataly Chill
 
Modelling System Requirements: Events & Things
Modelling System Requirements: Events & ThingsModelling System Requirements: Events & Things
Modelling System Requirements: Events & Things
wmomoni
 
Lecture#04, use case diagram
Lecture#04, use case diagramLecture#04, use case diagram
Lecture#04, use case diagram
babak danyal
 
Software engg. pressman_ch-8
Software engg. pressman_ch-8Software engg. pressman_ch-8
Software engg. pressman_ch-8
Dhairya Joshi
 

Mais procurados (19)

Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Use Case Model
Use Case ModelUse Case Model
Use Case Model
 
Interface specification
Interface specificationInterface specification
Interface specification
 
Use case modeling & analysis v 1
Use case modeling & analysis v 1Use case modeling & analysis v 1
Use case modeling & analysis v 1
 
SE_Lec 01_ Introduction to Software Enginerring
SE_Lec 01_ Introduction to Software EnginerringSE_Lec 01_ Introduction to Software Enginerring
SE_Lec 01_ Introduction to Software Enginerring
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Ch5 system modeling
Ch5 system modelingCh5 system modeling
Ch5 system modeling
 
Use Cases
Use CasesUse Cases
Use Cases
 
SE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use CasesSE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use Cases
 
Requirements presentation
Requirements presentationRequirements presentation
Requirements presentation
 
Modelling System Requirements: Events & Things
Modelling System Requirements: Events & ThingsModelling System Requirements: Events & Things
Modelling System Requirements: Events & Things
 
Modeling System Requirements
Modeling System RequirementsModeling System Requirements
Modeling System Requirements
 
Lecture#04, use case diagram
Lecture#04, use case diagramLecture#04, use case diagram
Lecture#04, use case diagram
 
Database Testing
Database TestingDatabase Testing
Database Testing
 
SE2018_Lec 16_ Architectural Design
SE2018_Lec 16_ Architectural DesignSE2018_Lec 16_ Architectural Design
SE2018_Lec 16_ Architectural Design
 
Software engg. pressman_ch-8
Software engg. pressman_ch-8Software engg. pressman_ch-8
Software engg. pressman_ch-8
 
SE18_Lec 01_Introduction to Software Engineering
SE18_Lec 01_Introduction to Software EngineeringSE18_Lec 01_Introduction to Software Engineering
SE18_Lec 01_Introduction to Software Engineering
 
3 the system analyst
3 the system analyst3 the system analyst
3 the system analyst
 

Semelhante a Use Case Modeling In UML

Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagrams
jsm1979
 
5(re dfd-erd-data dictionay)
5(re dfd-erd-data dictionay)5(re dfd-erd-data dictionay)
5(re dfd-erd-data dictionay)
randhirlpu
 

Semelhante a Use Case Modeling In UML (20)

Use Case Analysis and Diagramming
 Use Case Analysis and Diagramming Use Case Analysis and Diagramming
Use Case Analysis and Diagramming
 
SE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdf
 
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
 
Jar chapter 3
Jar chapter 3Jar chapter 3
Jar chapter 3
 
Ooad quest and ans
Ooad quest and ansOoad quest and ans
Ooad quest and ans
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
SE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesSE_Lec 08_UML Use Cases
SE_Lec 08_UML Use Cases
 
SE Complete notes mod 4 &5.pdf
SE Complete notes mod 4 &5.pdfSE Complete notes mod 4 &5.pdf
SE Complete notes mod 4 &5.pdf
 
Chapter5
Chapter5Chapter5
Chapter5
 
Software System Engineering - Chapter 9
Software System Engineering - Chapter 9Software System Engineering - Chapter 9
Software System Engineering - Chapter 9
 
conversion-gate02.pptx
conversion-gate02.pptxconversion-gate02.pptx
conversion-gate02.pptx
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
 
Use-Case-Diagram.ppt
Use-Case-Diagram.pptUse-Case-Diagram.ppt
Use-Case-Diagram.ppt
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Lesson02_Use Case Diagrams
Lesson02_Use Case DiagramsLesson02_Use Case Diagrams
Lesson02_Use Case Diagrams
 
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
 
5(re dfd-erd-data dictionay)
5(re dfd-erd-data dictionay)5(re dfd-erd-data dictionay)
5(re dfd-erd-data dictionay)
 
Use Case Diagram.pptx
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptx
 

Mais de Syed Hassan Ali

Mais de Syed Hassan Ali (7)

COCOMO Model in software project management
COCOMO Model in software project managementCOCOMO Model in software project management
COCOMO Model in software project management
 
Resource Allocation In Software Project Management
Resource Allocation In Software Project ManagementResource Allocation In Software Project Management
Resource Allocation In Software Project Management
 
Accountability And Auditing In Professional Practice
Accountability And Auditing In Professional PracticeAccountability And Auditing In Professional Practice
Accountability And Auditing In Professional Practice
 
Software Generic Design Process.
Software Generic Design Process.Software Generic Design Process.
Software Generic Design Process.
 
Process synchronization
Process synchronizationProcess synchronization
Process synchronization
 
Structured Query Language (SQL)
Structured Query Language (SQL)Structured Query Language (SQL)
Structured Query Language (SQL)
 
Grasp patterns and its types
Grasp patterns and its typesGrasp patterns and its types
Grasp patterns and its types
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Último (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 

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