Case Techniques
...They separate the system into actors and use cases. Actors represent roles that can be played by users of the system. Actors can be human, other computers, pieces of hardware, or even other software systems. The only criterion is that they must be external to the part of the system being partitioned into use cases. The actors supply inputs to the system, and receive outputs from it.
Use cases describe the behaviour of the system when one of these actors sends one particular input. This behaviour is initially documented in text form. It describes the nature of the input that triggers the use case; the inputs from and outputs to other actors, and the behaviours that convert the inputs to the outputs. The text of the use case also usually describes everything that can go wrong during the course of the specified behaviour, and what remedial action the system will take.
Figure 1 is a typical template for recording use cases (a full use case sample document is provided in the appendix).
A use case template is considered more a checklist than a form to be filled in. Some elements of the template may not be required fro all use cases. A brief description of the template elements is given on the following page.
Use Case ID Use a hierarchical numbering system (1., 1.1
, 2., 2.1... etc.) to group related use cases.
Use Case Name A concise name using a strong verb to reflect the task. (e.g. View part number, Place purchase order request etc.)
Actor An external entity to the system. (e.g. Customer, Supplier, Visitor etc.)
Description A brief high-level description of the reason for this use case.
Preconditions A list of any activities that must take place or conditions that must be true before the use case can start. (e.g. Authenticate user, Insert CD etc.)
Postconditions The system state upon conclusion of the use case. (e.g. Time updated, New User added to database, Invoice sent to customer etc.)
Normal Flow User actions and system responses that take place under normal expected conditions.
Alternative Flow Scenario based flows that can take place.
Exceptions Possible errors than can occur during execution.
Includes A list of other use cases that may be called by this use case.
Frequency of Use An estimation of the number of times the use case will be performed per an appropriate unit of time.
Business Rules Any business constraints that may affect the use case.
Special Requirements Any additional requirements that need to be addressed. (e.g. Performance requirements, Quality attributes etc.)
Assumptions List any assumptions made during the analysis.
Notes Any TBDs (To Be Determineds) that need to be resolved.
3. USE CASE Diagrams
3.1. What is a Use Case Diagram?
The functional requirements of the system being developed can be shown on a set of use case diagrams that summarise all a system can do. It shows what use cases are used, by what external user roles and any systems / users with whom the system will interact. As such it graphically defines the functional boundary of the system. The diagram is concentrated on what the system does not how it does it.
3.2. Use Case Diagram Components
ACTOR
The actor symbol represents the various devices that are external to the system being developed but interact with it in some fashion. The actor can be a specific role that a person carries out, e.g. EPOS Operator, or any other entity (e.g. a computer program) that communicates with the system but its outside the system scope. It is sometimes useful to identify non-human actors by overlaying <