How To Write Test Cases for ATM (Test Scenarios ATM Machine)
In this post, we will learn how to write test cases for ATM machine. Earlier we have discussed some of the related posts and here are those for your reference.
- Test Case Template with Detailed Explanation
- Test Cases for Registration Page
- Test Cases for Login Page
- Test Scenario vs. Test Case
- Test Strategy vs. Test Plan
ATM machines work 24×7 and its related to money. We need to test it for accuracy, reliability, and performance.
Here we will list most of the test scenarios of ATM by covering major aspects of the ATM machine. The following are the test cases for ATM machines. The list consists of both Positive and Negative test scenarios on the login page.
Read more: ATM Full Form
This list is just an idea of how to write test cases for ATM machines. ATM test cases may vary from one bank to another. Each bank has its own process. You can add test cases based on your company’s requirement document.
Don’t miss: Related Test Cases
Test Cases for ATM
1. Verify the ‘ATM Card Insertion Slot’ is as per the specification
2. Verify the ATM machine accepts card and PIN details
3. Verify the error message by inserting a card incorrectly
4. Verify the error message by inserting an invalid card (Expired Card)
5. Verify the error message by entering an incorrect PIN
6. Verify that the user is asked to enter the PIN after inserting a valid ATM Card
7. Verify that PIN is encrypted
8. Verify that there is an action like blocking of card occurs when the total no. of incorrect PIN attempts get surpassed
9. Verify the user is allowed to do only one cash withdrawal transaction per PIN request
10. Verify the machine logs out of the user session immediately after successful withdrawal
11. Verify the message when there is no money in the ATM
12. Verify the language selection functionality
13. Verify the cash withdrawal functionality by entering some valid amount
14. Verify the cash withdrawal functionality by entering an amount less than 100
15. Verify the cash withdrawal functionality by entering an amount greater than the total available balance in the account.
16. Verify the cash withdrawal functionality by entering an amount greater than per day limit
17. Verify the user is allowed to enter the amount again in case the amount entered is not valid. A proper message should be displayed.
18. Verify the ATM machine successfully takes out the money.
19. Verify the ATM machine takes out the balance printout after the withdrawal
20. Verify the font of the text displayed in ATM screen
21. Verify the text on the screen buttons visible clearly.
22. Verify the functionality of all the buttons on the keypad
23. Verify the text on the buttons visible clearly.
24. Verify that touch of the ATM screen is smooth and operational
25. Verify the user is allowed to choose different account types like Savings, Current etc.,
26. Verify the different combinations of operation and check if there will be an electricity loss in the middle of the operation. If there is an electricity loss in the middle of the transaction then the transaction should be marked as null and the amount shouldn’t be disclosed to others.
27. Verify the functionality of the cash dispenser
28. Verify the functionality of the receipt printer
29. Verify whether the printed data is correct or not in the receipt
30. Verify how much time the system takes to log out.
Functional Test Cases for ATM
Test Case ID | Test Case Description | Test Steps | Preconditions | Expected Output | Post Conditions |
---|---|---|---|---|---|
TC001 | Withdraw cash from account | 1. Insert valid ATM card. 2. Enter correct PIN. 3. Select withdrawal option. 4. Enter amount. | Valid ATM card and correct PIN | Cash dispensed and account balance updated | Account balance is reduced by the withdrawn amount. |
TC002 | Balance enquiry | 1. Insert valid ATM card. 2. Enter correct PIN. 3. Select balance inquiry option. | Valid ATM card and correct PIN | Displays current account balance | No changes in account balance. |
TC003 | Cash deposit | 1. Insert valid ATM card.2. Enter correct PIN.3. Select deposit option.4. Enter amount and deposit cash. | Valid ATM card and correct PIN | Confirmation message: “Deposit successful.” | Account balance is increased by the deposited amount. |
TC004 | Validate correct PIN | 1. Insert valid ATM card.2. Enter correct PIN. | Valid ATM card | Access granted to account details | User is able to perform further transactions. |
TC005 | Change PIN | 1. Insert valid ATM card.2. Enter correct PIN.3. Select change PIN option.4. Enter new PIN. | Valid ATM card and correct PIN | Confirmation message: “PIN successfully changed.” | New PIN is set for future transactions. |
TC006 | Validate card format | 1. Insert card with an invalid format.2. Attempt to complete any transaction. | Card with invalid format | Display error message: “Card read error” | Transaction cannot proceed. |
TC007 | Withdraw funds exceeding account balance | 1. Insert valid ATM card.2. Enter correct PIN.3. Select withdrawal option.4. Enter amount greater than balance. | Valid ATM card and correct PIN | Error message: “Insufficient funds” | No change in account balance. |
TC008 | Withdraw funds within account balance | 1. Insert valid ATM card.2. Enter correct PIN.3. Select withdrawal option.4. Enter amount less than balance. | Valid ATM card and correct PIN | Cash dispensed and account balance updated | Account balance is reduced by the withdrawn amount. |
TC009 | Print transaction receipt | 1. Complete a transaction (withdrawal or deposit).2. Select print receipt option. | Valid transaction completed | Receipt is printed with transaction details | Receipt is provided to the user. |
TC010 | Insufficient funds during withdrawal | 1. Insert valid ATM card.2. Enter correct PIN.3. Select withdrawal option.4. Enter an amount exceeding the available balance. | Valid ATM card and correct PIN | Error message: “Insufficient funds” | No withdrawal is made, and account balance remains unchanged. |
TC011 | Change language preference | 1. Insert valid ATM card. 2. Enter correct PIN. 3. Select language option.4. Choose a different language. | Valid ATM card and correct PIN | Language of the interface changes accordingly. | User can interact with the ATM in the selected language. |
TC012 | Transaction timeout | 1. Insert valid ATM card.2. Enter correct PIN.3. Remain inactive for the defined timeout duration. | Valid ATM card and correct PIN | Display message: “Session timed out.” | Card is ejected and session is ended. |
TC013 | Change receipt preference | 1. Insert valid ATM card.2. Enter correct PIN.3. Select settings option.4. Change receipt preference. | Valid ATM card and correct PIN | Preference updated message displayed | Ensures settings can be modified. |
TC014 | Request assistance | 1. Insert valid ATM card.2. Enter correct PIN.3. Press assistance button. | Valid ATM card and correct PIN | Assistance requested message displayed | Validates emergency assistance feature. |
TC015 | Cancel transaction | 1. Insert valid ATM card.2. Enter correct PIN.3. Select withdrawal option.4. Cancel before completion. | Valid ATM card and correct PIN | Transaction cancellation message displayed | Verifies cancellation process functions. |
TC016 | Print mini statement | 1. Insert valid ATM card. 2. Enter correct PIN. 3. Select “Mini Statement” option. | Valid ATM card and correct PIN | Receipt is printed with recent transaction details. | User receives a summary of recent transactions. |
Nonfunctional Test Cases for ATM
Test Case ID | Test Case Description | Test Steps | Preconditions | Expected Output | Post Conditions |
---|---|---|---|---|---|
TC001 | Validate user interface load | 1. Insert valid ATM card.2. Enter correct PIN.3. Observe the load time of the user interface after PIN entry. | Valid ATM card and correct PIN | User interface loads within acceptable time limits. | UI loads successfully for further interaction. |
TC002 | Test ATM responsiveness | 1. Insert valid ATM card.2. Enter correct PIN.3. Select multiple options in quick succession. | Valid ATM card and correct PIN | ATM processes each selection without lag. | Previous selections are not interrupted. |
TC003 | Check language settings stability | 1. Insert valid ATM card.2. Enter correct PIN.3. Change language option multiple times.4. Confirm the display language. | Valid ATM card and correct PIN | Display language updates correctly each time. | Language preference remains set after changes. |
TC004 | Assess error handling | 1. Insert invalid ATM card.2. Observe system response.3. Repeat with various invalid cards. | No valid ATM card inserted | Error message displayed: “Invalid card detected.” | System remains ready for new input. |
TC005 | Validate transaction limits | 1. Insert valid ATM card.2. Enter correct PIN.3. Attempt to withdraw an amount exceeding account balance. | Valid ATM card and correct PIN | Error message displayed: “Insufficient funds.” | User remains in transaction selection menu. |
TC006 | Validate response time | 1. Insert valid ATM card.2. Enter correct PIN.3. Measure the time taken for the user interface to load. | Valid ATM card and correct PIN | User interface loads within 2 seconds. | User is able to proceed with transaction selection. |
TC007 | Assess user interface consistency | 1. Insert valid ATM card.2. Enter correct PIN.3. Navigate through all screens multiple times. | Valid ATM card and correct PIN | Screens maintain consistent layout and functionality. | User returns to the main menu without issues. |
TC008 | Check card safety measures | 1. Insert valid ATM card.2. Observe the mechanism of card retrieval after transaction completion. | Valid ATM card inserted | Card is safely returned to the user after completion. | ATM ready for another transaction. |
TC009 | Evaluate data protection | 1. Insert valid ATM card.2. Enter correct PIN.3. Monitor network security for data transmission. | Valid ATM card and correct PIN | Data is encrypted during transmission without leaks. | User data remains secure throughout the session. |
TC010 | Test usability of error messages | 1. Insert valid ATM card.2. Enter correct PIN.3. Attempt an invalid transaction (e.g., exceeding limits). | Valid ATM card and correct PIN | Clear error message displayed stating the issue. | User is informed and can attempt a different transaction. |
TC011 | Assess performance under load | 1. Simulate multiple users making simultaneous transactions.2. Track response times and system behavior. | Valid ATM cards inserted for multiple users | System remains functional with acceptable response time < 3 seconds. | System stability maintained despite increased load. |
TC012 | Validate user guidance effectiveness | 1. Insert valid ATM card.2. Observe on-screen instructions during navigation. | Valid ATM card and correct PIN | User finds guidance clear and helpful for completing transactions. | User completes transactions successfully. |
TC013 | Evaluate transaction volume limits | 1. Perform a series of withdrawals in quick succession.2. Monitor for any system slowdowns. | Valid ATM card and correct PIN | ATM handles multiple transactions smoothly without delays. | User can withdraw as per the daily limit without issues. |
Writing test cases for an application takes a little practice. A well-written test case should allow any tester to understand and execute the tests, make the testing process smoother, and save a lot of time in the long run. Earlier we posted a video on How To Write Test Cases. I am concluding this post “Test Cases of ATM Machine”.
Like this post? Don’t forget to share it! If you have queries, please comment below.
Related Posts – Test Cases
Here are a few hand-picked articles for you to read next:
- How To Write a Good Defect Report
- Why Did You Choose Software Testing As A Career
- Test Plan Template Detailed Explanation
- Web Cookie Testing – Test Cases of Cookie Testing