Logo: Relish

  1. Sign in

Project: Automatedtestingtraining

Cash Withdrawal

As an account owner
I want to be able to pull money from an ATM
So I don't need to enter a bankshop and wait for hours

Scenarios
Successful withdrawal from an account in credit
Given
my account has been credited with 100
When
I withdraw 20
Then
20 should be dispensed
And
the balance of my account should be 80
Not succesful withdrawal with empty account
Given
my account has been credited with 20
When
I withdraw 40
Then
0 should be dispensed
And
the balance of my account should be 20

Last published almost 5 years ago by André Heijstek.