CS3CO40(P): Software Engineering Laboratory Experiment no- 4
Experiment : To perform the user's view analysis for the suggested system: Use case diagram.
Practical 4
To perform the user's view analysis for the suggested system: Use case diagram.
What is a Use Case Diagram in UML?
A Use Case Diagram is a type of Unified Modeling Language (UML) diagram that
represents the interaction between actors (users or external systems) and a system under
consideration to accomplish specific goals. It provides a high-level view of the system’s
functionality by illustrating the various ways users can interact with it.
Use Case Diagram Notations
UML notations provide a visual language that helps developers, designers, and
stakeholders communicate and document system designs consistently.
Actors
Actors are external entities that interact with the system, which can include users, other
systems, or hardware devices. Actors initiate use cases and receive the outcomes.
Use Cases
Department of Computer Science & Engineering
Student Name: Sonali Birla Enrollment No. EN22CS301974
CS3CO40(P): Software Engineering Laboratory Experiment no- 4
Experiment : To perform the user's view analysis for the suggested system: Use case diagram.
Use cases represent specific tasks the system can perform. Examples of use cases could
be “Place Order,” “Track Delivery,” or “Update Product Information.” Use cases are
represented by ovals.
System Boundary
The system boundary defines the scope of the system, visually represented by a
rectangular box that surrounds all the use cases.
Use Case Diagram Relationships
In a Use Case Diagram, relationships illustrate interactions between actors and use cases,
providing a comprehensive view of the system’s functionality.
Association Relationship
Represents a communication between an actor and a use case, depicted by a line
connecting the actor to the use case.
Example:
Actor: Customer
Use Case: Transfer Funds
Association: Line connecting "Customer" to "Transfer Funds."
Department of Computer Science & Engineering
Student Name: Sonali Birla Enrollment No. EN22CS301974
CS3CO40(P): Software Engineering Laboratory Experiment no- 4
Experiment : To perform the user's view analysis for the suggested system: Use case diagram.
Include Relationship
Indicates that a use case includes the functionality of another use case, represented by a
dashed arrow pointing from the including use case to the included use case.
Example:
Use Cases: Compose Post, Add Image
Include Relationship: "Compose Post" includes "Add Image."
3.3 Extend Relationship
Shows that a use case can be extended by another use case under specific conditions,
represented by a dashed arrow with the keyword "extend."
Example:
Use Cases: Book Flight, Select Seat
Extend Relationship: "Select Seat" extends "Book Flight" if the user opts
to choose a specific seat.
Department of Computer Science & Engineering
Student Name: Sonali Birla Enrollment No. EN22CS301974
CS3CO40(P): Software Engineering Laboratory Experiment no- 4
Experiment : To perform the user's view analysis for the suggested system: Use case diagram.
3.4 Generalization Relationship
Establishes an "is-a" relationship between use cases, showing that one use case is a
specialized version of another.
Example:
Use Cases: Rent Car, Rent Bike
Generalization: Both "Rent Car" and "Rent Bike" are specialized versions
of "Rent Vehicle."
Department of Computer Science & Engineering
Student Name: Sonali Birla Enrollment No. EN22CS301974
CS3CO40(P): Software Engineering Laboratory Experiment no- 4
Experiment : To perform the user's view analysis for the suggested system: Use case diagram.
How to Draw a Use Case Diagram in UML?
Follow these steps to draw a Use Case Diagram:
Step 1: Identify the system’s boundaries and actors.
Step 2: Define the main use cases.
Step 3: Identify and draw relationships between actors and use cases.
Step 4: Include any relevant relationships such as "include," "extend," or
"generalization."
Step 5: Review and refine the diagram to ensure clarity and completeness.
’
Common Use Case Diagram Tools and Platforms
StarUML
Creately
IBM Rational Software Architect
Department of Computer Science & Engineering
Student Name: Sonali Birla Enrollment No. EN22CS301974
CS3CO40(P): Software Engineering Laboratory Experiment no- 4
Experiment : To perform the user's view analysis for the suggested system: Use case diagram.
Example :- Flipkart Use Case Diagram
Department of Computer Science & Engineering
Student Name: Sonali Birla Enrollment No. EN22CS301974
CS3CO40(P): Software Engineering Laboratory Experiment no- 4
Experiment : To perform the user's view analysis for the suggested system: Use case diagram.
Purpose and Benefits of Use Case Diagrams
The Use Case Diagram offers numerous benefits throughout the system development
process. Below are some key advantages of using Use Case Diagrams:
Visualization of System Functionality
Use Case Diagrams provide a visual representation of the system’s functionalities and
interactions with external entities. This visualization helps stakeholders, including non-
technical ones, to understand the system’s high-level behavior.
Communication
Use Case Diagrams serve as a powerful communication tool, facilitating discussions
between stakeholders, developers, and designers. They provide a common language for
discussing system requirements, ensuring a shared understanding among diverse team
members.
Requirement Analysis
During the requirements analysis phase, Use Case Diagrams help in identifying,
clarifying, and documenting user requirements. They capture the various ways users
interact with the system, aiding in a comprehensive understanding of system
functionality.
Focus on User Goals
Use Case Diagrams center around user goals and scenarios, emphasizing the
perspective of external entities (actors). This focus on user interactions ensures that the
system is designed to meet user needs and expectations.
7.5 System Design
In the system design phase, Use Case Diagrams aid in designing how users (actors)
will interact with the system. They contribute to the planning of the user interface and
help in organizing system functionalities.
Department of Computer Science & Engineering
Student Name: Sonali Birla Enrollment No. EN22CS301974
CS3CO40(P): Software Engineering Laboratory Experiment no- 4
Experiment : To perform the user's view analysis for the suggested system: Use case diagram.
Testing and Validation
Use Case Diagrams are valuable for deriving test cases and validating system behavior.
Testers can use the diagrams to ensure that all possible scenarios, including alternative
and exceptional paths, are considered during testing.
Conclusion
In conclusion, a Use Case Diagram in UML serves as a powerful tool for capturing and
visualizing the functional requirements and interactions within a system. By representing
actors, use cases, and their relationships in a clear and concise manner, this diagram
provides a high-level overview of the system’s behaviour.
Department of Computer Science & Engineering
Student Name: Sonali Birla Enrollment No. EN22CS301974