0% found this document useful (0 votes)
187 views13 pages

Use Case Template and ATM Example

The document provides a template for writing use cases and provides an example use case for an ATM withdrawal transaction. The use case template includes sections for the primary and secondary actors, trigger, pre and post conditions, description of normal flow with step-by-step process, and alternative flows with branching conditions. The ATM withdrawal use case uses this template, with the customer as the primary actor and bank as secondary, and describes the normal flow of selecting an account, entering an amount, verification steps, approval process, dispensing cash, receipt options.

Uploaded by

adil054
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
187 views13 pages

Use Case Template and ATM Example

The document provides a template for writing use cases and provides an example use case for an ATM withdrawal transaction. The use case template includes sections for the primary and secondary actors, trigger, pre and post conditions, description of normal flow with step-by-step process, and alternative flows with branching conditions. The ATM withdrawal use case uses this template, with the customer as the primary actor and bank as secondary, and describes the normal flow of selecting an account, entering an amount, verification steps, approval process, dispensing cash, receipt options.

Uploaded by

adil054
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 13

Use case Template and ATM Example

USE

CASE Name: the name is the goal as a short active verb phrase Pre Condition: what we expect is already the state of the world Success End Condition/Post Condition: the state of the world upon successful completion

Use case Template

Primary

Actor: a role name or description for the primary actor Secondary Actor: other systems relied upon to accomplish use case Trigger: the action upon the system that starts the use case

Use case Template

Description 1.

put here the steps of the scenario from trigger to goal delivery, and any cleanup after> 2 <...>
3

Use case Template

EXTENSIONS:

Branching Action 1a <condition causing branching> : <action or name of sub.use case> 2a.

Use case Template

AM T

W da it r w h

Bn Cs mr a k ut e o

Dp s e oit

BANK
I q ir nuy

v r ic tio eif a n

ta s r r nf e

g n r t m is t mn e eae in t e e t a

A withdrawal transaction asks the customer to choose a type of account to withdraw from (e.g. checking) menu of possible accounts, and to choose amount from a menu of possible amounts. The system verifies that it has sufficient money on hand to satisfy the request before sending the transaction to the bank. (If not, the customer is informed and asked to enter a different amount.) If the transaction is approved by the bank, the appropriate amount of cash is dispensed by the machine before it issues a receipt. (The dispensing of cash is also recorded in the ATM's log.) A withdrawal transaction can be cancelled by the customer pressing the Cancel key any time prior to choosing the amount.

Withdraw

Primary Actor: Customer Secondry Actor: Bank Trigger: Customer has selected withdraw cash option from a menu of options. Pre Condition: Customer ATM card has been verified and withdraw option is selected. Post Condition: Customer gets the desired amount from machine Customer gets a receipt. System updates bank about transaction. Customers ATM card is returned.

Normal Flow: 1. User has selected withdraw option. 2. System asks user to enter required amount. 3. The system verifies that amount is multiple of 500 and does not exceed the limit/20000. 4.The system verifies that it has sufficient money on hand to satisfy the request before sending the transaction to the bank. 5. System sends a request to the bank. 6. On approval from the bank, the said amount is dispensed from the machine. 7. A log is maintained in machine. 8. card is ejected from the system and System informs user to pick card. 9. Cash is ejected and System informs user to pick cash. 10. System asks user if he needs a receipt 11. If user selects yes System generates a receipt of the transaction.

Alternative Flows: 3.a. if amount is not

a multiple of 500 or exceeds the limit of 20000 There is not sufficient amount in machine.
1. An error message is shown to user. 2. customer is asked to re enter amount.

4.a.

6.a.

if bank does not approve request, error is shown to user 10.a. if user selects no, receipt is not generated.

1. System informs user that this amount can not be dispensed. 2. System returns to main menu.

http://www.math-cs.gordon.edu/courses/cps2 Cockburns

http://download.cnet.com/ATM-Automated-Te

USE CASE Template

Reference

You might also like