Hello Friends! In this post, we will study – how to write test cases for ATM machine. Of course, there are very minuscule chances that you will get to test any ATM machine but if you study these test cases, it can help you in your testing interviews.
Also, it will help you understand the process of test case creation which you can utilize while creating test cases of any kind of application.
A test case has a well-defined format including test summary, steps to reproduce, expected result, actual result, etc. But here the focus here is to check and cover the different features to be tested instead of the creation of formal test cases. So we will be presenting test scenarios of ATM machine here instead of test cases.
For a formal test case document template, you can also refer to our post – Test case template (download Xls).
Now, without further delay. Let’s begin with some sample test scenarios for an ATM machine categorized on the basis of different types of testing.
UI Test Scenarios for ATM Machine
The UI test cases cover the testing of the Graphical User Interface of the application under test which is an ATM machine in our case. Some UI test cases for ATM machine are-
- Verify that all the labels and controls including text-boxes, buttons, images, and links are present on the screen.
- Check the informative text written displayed on the screen is clearly visible and legible.
- Verify that the size, color, and UI of the different objects are as per the specifications.
- Verify that the application’s UI is responsive i.e. it should adjust to different screen resolutions of ATM machines.
Functional Test Scenarios for ATM Machine
The functional test cases are the test cases that involve testing the different functional aspects of the application under test. Following are some functional test cases for an ATM machine-
- Verify the type of ATM machine, if it is completely touch-enabled, with both keypad buttons only or both.
- Verify that the user is presented with options when the card is inserted correctly.
- Check that no option to continue and enter credentials is displayed to the user when the card is inserted incorrectly.
- Verify that the touch of the ATM screen is smooth and operational.
- Verify that the user is presented with the option to choose a language for further operations.
- Check that the user is asked to enter pin number before displaying any card/bank account detail.
- Verify that there is a limited number of attempts up to which the user is allowed to enter pin code.
- Verify that if a total number of incorrect pin attempts gets surpassed then the user is not allowed to continue further. And operations like temporary blocking of the card, etc get initiated.
- Check that the pin is displayed in masked form when entered.
- Verify that the user is presented with different account type options like- saving, current, etc.
- Verify that the user is allowed to get account details like available balance.
- Check that the correct amount of money gets withdrawn as entered by the user for cash withdrawal.
- Verify that the user is only allowed to enter the amount in multiples of denominations as per the specifications.
- Verify that the user is prompted to enter the amount again in case the amount entered is less than the minimum amount configured.
- Check that the user cannot withdraw more amount than the total available balance and a proper message should be displayed.
- Verify that the user is provided the option to get the transaction details in printed form.
- Verify that the user’s session timeout is maintained.
- Check that the user is not allowed to exceed one transaction limit amount.
- Verify that the user is not allowed to exceed the one-day transaction limit amount.
- Verify that the user is allowed to do only one transaction per pin request.
- Check that in case the ATM machine runs out of money, a proper message is displayed to the user.
- Verify that the applicable fee gets deducted along with the withdrawn amount in case the user exceeds the limit of the number of free transactions in a month.
- Verify that the applicable fee gets deducted along with the withdrawn amount in case the user uses the card of a bank other than that of an ATM.
- Check that the user is not allowed to proceed with the expired ATM card and a proper error message gets displayed.
- Verify that in case of sudden electricity loss before withdrawing cash, the transaction is marked as null and the amount is not withdrawn from the user’s account.
This concludes our post on the test cases for ATM machine. I hope these sample test scenarios will not only help you in your interviews but will also help you in understanding the test case creation process. Please let us know in the comments, in case we have missed out on any important test cases.
Test Case Examples
Kuldeep is the founder and lead author of ArtOfTesting. He is skilled in test automation, performance testing, big data, and CI-CD. He brings his decade of experience to his current role where he is dedicated to educating the QA professionals. You can connect with him on LinkedIn.