Software Requirements Specification Use Case Example
Just showing the use case diagram in UML notation is not enough. Each use case accompanied by text explaining the purpose of the use case as well as what functionality is accomplished when a use case is executed.
The use case specification is typically created in analysis and design phase in an iterative manner.
- At first, only a brief description of the steps needed to carry out the normal flow of the use case (i.e., what functionality is provided by the use case) is written.
- As analysis progresses, the steps are fleshed out to add more detail.
- Finally, the exceptional flows are added to the use case
- Each project can adopt a standard use case template for the creation of the use case specification.
Use Case vs Use Case Specification
A Use Case describes a task that is performed by an actor yielding a result of business value for a business. A use case may be visualized as a use case diagram or/and in structured textual specification format:
Use Case (task - a customer want to perform) may be:
- Interactive - A system use case describes an actor's interaction with a system in pursuit of the defined business goal
- Manual - A sequence of actions performed by an actor
- Automated - A sequence of steps performed by a program or script
Characteristics of Use Cases
A use case has:
- Only one goal
- A single starting point
- A single ending point
- Multiple paths for getting from start to finish
- i.e. Specify behavior for a variety of possible conditions
- Each conditions may require specific action(s)
For Example - Customer pays bill:
There are multiple paths to achieve the goal:
- Telephone payment
- By mail
- In person
- by check
- by cash, etc.
A path that does not lead to the goal:
- Credit card is declined
Agile Use Case Approach
The use case model and its individual use cases evolve level by level over time. Not all use cases of a model will necessarily need to be specified to the same level of detail.
Just-in-Time and Just-Enough
Use cases can be written at differing levels of data and scope, each serves a purpose:
- Summary: General descriptions and sweeping overviews of system functionality or business processes.
- User Level : Task-related descriptions of users and how they interact with the system; descriptions of a specific business process. User-Level use cases are usually considered to be at the level of task that is the main work of the user.
- Sub-function: Descriptions of lower-level activities that are used to complete subparts of a core use case.
For example: getting cash out of the ATM machine is a useful task and would be a use case at the core level, but entering your PIN number would not be at this level, because it supports the main work.
Note: Some use cases may be sufficiently specified up to level II. You stop when sufficient detail is achieved using just-in-time and just-enough manner.
A Detailed Use Case Specification
The detailed use case is a textual representation illustrating a sequence of events together with other related use case information in certain format. People typically adopt a standard use case template for recording the detailed information for the use cases
Use Case Template - ATM withdraw case example
As mentioned before, there are several notation styles for use cases (e.g. diagram style, unified modeling language, textual format). Whatever notation is used should be easy to understand. You can use templates, like the ones from Alistair Cockburn, but it is also an option to use what fits best for your team.
Use Case Specification | ||
---|---|---|
Use Case Name: | Withdraw Cash | |
Actor(s): | Customer (primary), Banking System (secondary) | |
Summary Description: | Allows any bank customer to withdraw cash from their bank account. | |
Priority: | Must Have | |
Status: | Medium Level of details | |
Pre-Condition: | The bank customer has a card to insert into the ATM The ATM is online properly | |
Post-Condition(s): |
| |
Basic Path: |
| |
Alternative Paths: |
| |
Business Rules: |
| |
Non-Functional Requirements: |
|
Software Requirements Specification Use Case Example
Source: https://www.visual-paradigm.com/guide/use-case/what-is-use-case-specification/
0 Response to "Software Requirements Specification Use Case Example"
Post a Comment