Here is a sample use case narrative for the Withdraw Cash use case from the checking account example earlier in this module.
Note that all the elements discussed in the previous lesson are included.
|
Use case narrative
|
|
Name
|
Withdraw Cash
|
|
Number
|
11.0
|
|
Author
|
Gregor Hohpe
|
|
Last update
|
4/1/2008
|
|
Assumptions
|
The user has provided a valid card and password.
|
|
Pre-conditions
|
|
|
Use case description
|
|
|
Use case initialization
|
This use case starts on demand.
|
|
Use case dialog
|
The system asks for the withdrawal amount.
The user provides an amount.
The ATM verifies that the amount is within the predefined policy limits and is an amount divisible by the defined
denomination, for example, multiples of $20.00. If the amount fails these requirements, the user receives an error
message.
Otherwise:
The ATM attempts to connect with the bank.
If the connection is not successful, the user receives an error message.
If the funds are available, the ATM gives the user their money and prints a receipt.
If the funds are not available, the user gets an error message.
|
|
Use case termination
|
This use case ends when:
-
The system dispenses the cash and prints the receipt.
-
The system displays the message that the entered amount is invalid.
-
The system displays the message that it could not connect with the bank.
-
The user cancels the transaction.
|
|
Post-conditions
|
Upon successful completion of the withdrawal:
-
The system prints the final outcome on the receipt.
a) The bank account is updated.
b) The transaction is logged
-
Upon an error condition, the ATM returns to its initial state.
-
Upon receiving the Cancel option, the ATM returns to its initial state .
|
Click the Exercise link below to write a use case narrative for the course project.
Use Case Narrative - Exercise