Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

M R Khan Dipu

191-35-393

Consider an online banking application:


For transfer money through online, an account need to be added and approved first as a local
beneficiary. Then an OTP (One Time Password) will send to the account holder mail or phone.
The account holder will put the OTP within limited time. If the OTP is matched and there is
sufficient money in that account, the transfer will be performed. The actions performed are
TRANSFER MONEY, SHOW A MESSAGE AS INSUFFICIENT AMOUNT, and BLOCK THE
TRANSACTION INCASE OF SUSPICIOUS TRANSACTION.

Draw a decision table that covers all those conditions to provide an output. Simplify the table if
possible. Also create a form (as shown in lecture slid) and create test cases with expected and
actual outcome.

Form

Transaction Form

Email

Password

Amount

OTP

No
Block
Matched?
Transfer

Yes

Check Amount

No Has Yes
sufficient
Balance?

Insufficient Transfer
Amount Money
Road to Decision Table

 Conditions:
1. Has an approved account (Values = Y, N)
2. OTP matched (Values = Y, N)
3. Holder has Sufficient Amount on account (Values = Y, N)

 Actions:
1. Transfer Money
2. Insufficient Amount
3. Block Transaction

 Number of rules: 2 values * 2 values * 2 values = 8 rules.

Check Transaction Rules[Y=Yes, N=No, X=Not possible]


Conditions 1 2 3 4 5 6 7 8

Has an approved Account N N N N Y Y Y Y

OTP matched N N Y Y N N Y Y

Has sufficient Balance N Y N Y N Y N Y

Block Transaction yes yes

Insufficient Amount yes

Transfer Money X X X X Yes


Simplification

Check Transaction Rules[Y=Yes, N=No, X=Not possible]


1 2 3 4 5 6 7 8
Conditions
Has an approved Account N N N N Y Y Y Y

OTP matched N N Y Y N N Y Y

Has sufficient Balance N Y N Y N Y N Y

Block Transaction yes yes

Insufficient Amount yes

Transfer Money X X X X Yes

Check Transaction Rules[Y=Yes, N=No,


X=Not possible]
Conditions 1 2 3 4 5

As here transaction is Has an approved Account N Y Y Y Y


impossible without
OTP matched - N N Y Y
approved account, so
the other conditions Has sufficient Balance - N Y N Y
are not cared at all.
Block Transaction yes yes

Insufficient Amount yes

Transfer Money X Yes


Check Transaction Rules[Y=Yes, N=No, X=Not
possible]
Conditions 1 2 3 4 5

Has an approved Account N Y Y Y Y

OTP matched - N N Y Y

Has sufficient Balance - N Y N Y

Block Transaction yes yes

Insufficient Amount yes

Transfer Money X Yes

Check Transaction Rules[Y=Yes,


N=No, X=Not
Conditions possible]
1 2 3 4

Here without OTP Has an approved Account N Y Y Y


the next condition is
OTP matched - N Y Y
not needed to be
checked. Has sufficient Balance - - N Y

Block Transaction yes

Insufficient Amount yes

Transfer Money X Yes


Test Cases with expected and actual outcome

Test Cases Test Cases Test Cases Expected Actual Status


Scenario Input Outcome Outcome
Approved Available
Account
OTP Yes
01 Matching Insufficient Insufficient Pass
Amount Amount
Sufficient No
Balance
Approved Available
Account
02 OTP No Should not
Matching go further Insufficient Fail
Operation. Balance
Sufficient -
Balance
Approved Not
Account Available
OTP - Goes to
03 Matching Should be further Fail
Error Operation
Sufficient -
Balance
Approved Available
Account
Transfer Transfer
OTP Yes
04 money Money Pass
Matching
Sufficient Yes
Balance

You might also like