Learn use case basics with this explanation of example use case, main scenarios, how to review use case, difference between use case and test case and how to test use case. It is one of the test designing techniques. This use cases tutorial is useful for business analyst training, quality assurance training and software testing training or QA testing training. Note the use case steps in the use case sample below.
State Transition testing : https://youtu.be/iQwn_jBQ39k
Sample Use Case Name: Cash withdrawal
Actors: Customer, Bank
Description: This use case describes how the Customer uses the ATM system to withdraw cash from his/ her bank account.
Pre-conditions:
1. The ATM system is online.
2. The ATM system has sufficient cash available.
Use Case scenario example - Normal workflow :
1. The Customer will insert their debit card.
2. The System will prompt for the PIN.
3. The Customer will enter the PIN.
4. The System will display the option to "Withdraw Cash".
5. The Customer will select the option to withdraw cash.
6. The System will prompt for an amount.
7. The Customer will enter an amount.
8. The System will submit the amount to the Bank for approval.
9. The Bank will confirm the transaction.
10. The System will dispense the cash amount.
11. The System will return the card.
12. The use case ends with a success.
Alternate workflows
4a. If the PIN is invalid,
1. The System will return the card.
2. The use case ends with a failure.
8a. If the amount is invalid (see additional business rules),
1. The System will display an error message and prompt for another amount.
2. The use case resumes at step 7.
10a. If the Bank declines the transaction,
1. The System will return the card.
2. The use case ends with a failure.
Use Case Scenarios - 3a,5a,7a If the Customer selects the option to "Cancel",
1. The System will return the card.
2. The use case ends.
Additional business rules: UCW1 - The System will dispense a maximum amount of $100 in a single transaction.
Post-conditions: The Customer will receive their cash amount.
Software Testing Tutorials : https://www.youtube.com/playlist?list=PLc3SzDYhhiGWuMK03uYO-UENAx0s2woWM
Test Automation : https://www.youtube.com/playlist?list=PLc3SzDYhhiGXVcy8EcrTSfwsC-v8EUZvg
Database Testing : https://www.youtube.com/playlist?list=PLc3SzDYhhiGVVb76aFOH9AcIMNAW-JuXE
Programming Concepts : https://www.youtube.com/playlist?list=PLc3SzDYhhiGVqrvE28rlJR75asbujHoUL
Website : http://inderpsingh.blogspot.com/
Twitter : https://twitter.com/inder_p_singh