Hello Friends! In this post, we will study – how to write test cases for an 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 since 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.
- Verify that 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.
- Verify 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.
- Verify 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.
- Verify 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.
- Verify 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.
- Verify 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.
- Verify 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.
- Verify 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 ATM.
- Verify that the user is not allowed to proceed with the expired ATM card and proper error message gets displayed.
- Verify that in case 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 the 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.