Logo: Relish

  1. Sign in

Project: My-project

Duplicate of Withdraw Cash

This feature allows an account holder to withdraw
cash from an ATM.

Background

These are the assumptions that we are making
for the following scenarios:

*
I have $200 in my account
*
There is $500 in the ATM
Scenarios
Withdraw without typing the write PIN

This scenario checks whether the Withdraw Cash feature
has any security checks in place before dispensing
the cash to the user.

Given
I did not input my correct PIN
When
I try to wthdraw $200 from my account
Then
the following json response is sent
 {
'dddd': 'dddd',
    'ggggg': 'ggggg',
    'somethingelse': {
      'thing': 'thingvalue',
      'thing2': 'thing2value'
    }
  }
Then
the ATM should display "You did not input the correct PIN"
And
the ATM should not dispense any amount
Withdraw cash

This scenario checks whether the ATM will dispense
the correct amount and complain if an incorrect amount
is given by the user.
{$hash = $table->getHash();}

Given
I typed in my correct PIN
When
I try to withdraw Requested Amount from my account
Then
the ATM should dispense Dispensed Amount
Examples:
Requested Amount Dispensed Amount
$200 $200
$900 $0
$123 $001

Last published almost 4 years ago by Philip.