Use Case Template
Use Case Template
Template:
ID: [Unique ID of this use case]
Title: [Enter the goal of the use case - preferably as a short, active verb phrase]
Description: [Describe the goal and context of this use case. This is usually an
expanded version of what you entered in the "Title" field.]
Primary Actor: [A person or a software/hardware system that interacts with your system
to achieve the goal of this use case.]
Preconditions: [Describe the state the system is in before the first event in this use case.]
Postconditions: [Describe the state the system is in after all the events in this use case
have taken place.]
Main [Describe the flow of events from preconditions to postconditions, when
Success Scenario: nothing goes wrong. This is the meat of the use case.]
Extensions: [Describe all the other scenarios for this use case - including exceptions
and error cases.]
Frequency of Use: [How often will this use case be used?]
Status: [Development status]
Owner: [Who owns this use case, in your project team?]
Priority: [Priority of this use case]
P.S. This web page has a more detailed discussion on this template.
Example:
This example uses this template to write a use case for helping a student register for courses.
The system under design is a University Registration System.
ID: UC-6
Title: Register for courses
Description: Student accesses the system and views the courses currently available
for him to register. Then he selects the courses and registers for them.
Primary Actor: Student
Preconditions: Student is logged into system
Postconditions: Student is registered for courses
Main 1. Student selects "Register New Courses" from the menu.
Success Scenario: 2. System displays list of courses available for registering.
3. Student selects one or more courses he wants to register for.
4. Student clicks "Submit" button.
5. System registers student for the selected courses and displays a
confirmation message.
Extensions: 2a. No courses are available for this student.
--- 2a1. System displays error message saying no courses are available,
and provides the reason & how to rectify if possible.
--- 2a2. Student either backs out of this use case, or tries again after
rectifying the cause.