Вы находитесь на странице: 1из 4

Note : These samples below only show the main flow of the use case scenario.

In reality you need to


put this into a proper template as shown in Page 1

withdrawal

1. Use case begins when the ATM displays a prompt informing the customer to insert the atm card.

2. Customer inserts ATM card

3. System prompts the user for Pin number

4. Customer types pin no

5. The pin no is validated and menu is shown

6. Customer selects withdrawal option

7. System prompts the user to type the amount

8. The user types the amount

9. The amount is validated and the cash is issued by the ATM

10. The ATM issues a receipt

11. The use case ends when the ATM card is ejected.

Exceptions

2a The ATM card is invalid, the system ejects the card and the use case ends

5a The pin non is invalid and the system prompts the user to retype the pin no.

9a The amount is more than the daily withdrawal limit, an error message is shown and the user
case ends.

9b The amount is more than the account balance, an error message is shown and the user case
ends
Deposit

1. Use case begins when the ATM displays a prompt informing the customer to insert the atm card.

2. Customer inserts ATM card

3. System prompts the user for Pin number

4. Customer types pin no

5. The pin no is validated and menu is shown

6. Customer selects deposit option

7. System prompts the user to type the amount

8. The user types the amount

9. The system issues an envelope and prompts the user to insert money

10. The user inserts cash in the envelope and inserts the money

11. The ATM issues a receipt

12. The use case ends when the ATM card is ejected.

Exceptions

3a The ATM card is invalid, the system ejects the card and the use case ends

5a The pin non is invalid and the system prompts the user to retype the pin no.
Demonstrates how an include can be used to reduce the complexity of a use case

Validate

1. Use case begins when the ATM displays a prompt informing the customer to insert the atm card.

2. Customer inserts ATM card

3. System prompts the user for Pin number

4. Customer types pin no

5. The pin no is validated and menu is shown

Exceptions

3a The ATM card is invalid, the system ejects the card and the use case ends

5a The pin non is invalid and the system prompts the user to retype the pin no.

__________________________________________________________________

withdrawal

1. include::Validation The ATM card is validated

2. Customer selects withdrawal option

3. System prompts the user to type the amount

4. The user types the amount

5. The amount is validated and the cash is issued by the ATM

6. The ATM issues a receipt

7. The use case ends when the ATM card is ejected.

Exceptions

5a The amount is more than the daily withdrawal limit, an error message is shown and the user
case ends.

5b The amount is more than the account balance, an error message is shown and the user case
ends

Вам также может понравиться