# Thread: Test scenarios of an ATM Machine Cache withdrawal.

1. ## Test scenarios of an ATM Machine Cache withdrawal.

Hi All,

I need to write Test Scenarios of an ATM Machine Cache withdrawal program.

Where the Test Cases would be written to test out the multiplication logic of each “Currency note” i.e. number of 100Rs, 500Rs, 1000Rs when a user is withdrawing a particular amount from the ATM, and Machine should give the money based on the Currency available in the ATM.

e.g. If an ATM is having an amount “N” in the machine in multiplication of 100Rs*X, 500*Y and 1000*Z and a User needs to withdraw an amount “n”.

What would be the logic of calculation made by ATM program.

Positive and Negative scenarios will be appreciated.

2. ## Re: Test scenarios of an ATM Machine Cache withdrawal.

YugalKishore - welcome!

We have found that you will get far better responses, if you first write what your answers would be. That way others can comment on your answers, and expand on them, rather than just asking others to do all your work for you.

Do you have any idea about the logic of calculation?
Have you come up with any positive or negative scenarios?

3. ## Re: Test scenarios of an ATM Machine Cache withdrawal.

Hi Joe,

I don't really wants others to do all your work for me. so as per your suggestion let me put some scenarios which I've tried to explore today.

Let me assign the values(Test Data) to the problem I've asked.
N=5000000 Total money in ATM
X=20000 i.e. 40% of the amount in ATM in multiple of 100Rs Note = 100*20000=2000000
Y=3000 i.e. 30% of the amount in ATM in multiple of 500Rs Note= 500*3000=2000000
Z=1500 i.e. 30% of the amount in ATM in multiple of 1000Rs Note= 1000*1500=2000000

Now If I'll implement "Boundary Value" and "Equivalence Class partitioning" in this situation.

A User Can input the following amounts to withdraw.
1) x&lt;100 Rs.
2) x=100 Rs.
3) 100&lt;x&lt;500
4) x=500
5) 500&lt;x&lt;1000
6) x&gt;1000
7) x=25000
8) x&gt;25000 (I guess this will be the Invalid amount as User can't withdraw amount greater than 25000 in a day)

Above are the cases when an ATM is having lot of Cache i.e. 5000000.

Other approach can be like how many Rupee will be added by the Bank if they have to put some N amount of Money in the ATM like 25000 Rs.

That's it for now...

I would like to see your valuable input on this.

Thanks,
-Yugal

4. ## Re: Test scenarios of an ATM Machine Cache withdrawal.

Have you also considered scenarios with the added service charges?

Had an ATM machine blue screen on me when pulling out \$40 from a different bank.
1. I said 'no' to the \$1.50 service charge. Then decided that I really wanted the \$40.
2. Pressed the continue banking option
3. Select the \$40 withdraw
4. Answered yes to the service charge question, and got an error message.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.