A use case describes how a user uses a system to accomplish a particular goal. A use case diagram consists of the system, the related use cases and actors and relates these to each other to visualize: what is being described? (system), who is using the system? (actors) and what do the actors want to achieve? (use cases), thus, use cases help ensure that the correct system is developed by capturing the requirements from the user's point of view.
A use case is a list of actions or event steps typically defining the interactions between a role of an actor and a system to achieve a goal. A use case is a useful technique for identifying, clarifying, and organizing system requirements. A use case is made up of a set of possible sequences of interactions between systems and users that defines the features to be implemented and the resolution of any errors that may be encountered.
While a use case itself might drill into a lot of detail (such as, flow of events and scenarios) about every possibility, a use-case diagram can help provide a higher-level view of the system, providing the simplified and graphical representation of what the system must actually do.
A use case (or set of use cases) has these characteristics:
Finding an online Use Case Diagram tool? Just click the Draw button below to create your Use Case Diagram online. Visual Paradigm Online is free* and intuitive. You can also go through this Use Case Diagram tutorial to learn about Use Case Diagram before you get started.
Draw NowUse cases define interactions between external actors and the system to attain particular goals. A use case diagram contains four main components
Actors are usually individuals involved with the system defined according to their roles. The actor can be a human or other external system.
A use case describes how actors uses a system to accomplish a particular goal. Use cases are typically initiated by a user to fulfill goals describing the activities and variants involved in attaining the goal.
The relationships between and among the actors and the use cases.
The system boundary defines the system of interest in relation to the world around it.
A Use Case model can be developed by following the steps below.
Note that: to make use case approach more "Agile", do not detail all use cases, but prioritize them in your product backlog, you should refine the use case in different level of details according to the development phase with just-in-time and just-enough manner.
You can also:
UML defines three stereotypes of association between Use Cases:
The time to use the <<include>> relationship is after you have completed the first cut description of all your main Use Cases. You can now look at the Use Cases and identify common sequences of user-system interaction.
An extending use case is, effectively, an alternate course of the base use case. The <<extend>> use case accomplishes this by conceptually inserting additional action sequences into the base use-case sequence.
The general use case is abstract. It can not be instantiated, as it contains incomplete information. The title of an abstract use case is shown in italics.
Example
This example depicts a model of several business use cases (goals) which represents the interactions between a restaurant (the business system) and its primary actors.
After the base use cases have been identified in the first cut, perhaps we could further structuring those use case with <<extend>> and <<include>> use cases in the second round touch up as shown in the Figure below:
A business use case is described in technology-free terminology which treats the business process as a black box and describes the business process that is used by its business actors, while an ordinary use case is normally described at the system functionality level and specifies the function or the service that the system provides for the user. In other words, business use case represents how the work to be done manually in the currently situation and it is not necessarily done by the system or intend to be automated in the scope of target system.
The figure below shows an ATM use case diagram example, which is quite a classic example to use in teaching use case diagram.
The Document Management System (DMS) use case diagram example below shows the actors and use cases of the system. In particular, there are include and extend relationships among use cases.
The Order System use case diagram example below shows the actors and use cases involved in the system:
You've learned what a Use Case Diagram is and how to draw a Use Case Diagram step-by-step. It's time to get your hands dirty by drawing a Use Case Diagram of your own. Draw UML diagrams free* with Visual Paradigm Online. It's easy-to-use, intuitive.
Draw Now* The Free edition supports free usage of Visual Paradigm Online for non-commercial use only.