Exercises
Exercise 1:
Below is a decision table for daily activities. Fill in the rules with true and false, and which action
should be taken
Conditions R R R3 R R R R R
1 2 4 5 6 7 8
A weekday is chosen T T T T F F F F
A holiday is chosen T T F F T T F F
Weather raining is T F T F T F T F
chosen
Actions
Go to work X X
Go on a picnic X
Stay home X
Error MESSAGE X X X X
Exercise 2:
Below is a decision table for reservation of meeting room. Fill in the rules with true and false, and
which action
Page 1 of 6
ISCG6413 Testing and Quality Assurance in IT
Conditions R R R3 R R R R R
1 2 4 5 6 7 8
No. of participants <= T T T T F F F F
capacity has entered
A free room is chosen T T F F T T F F
A valid Account no. has T F T F T F T F
entered
Actions
Msg: No room of the right X X X
size available
Exercise 3:
Conditions R1 R2 R3 R R R R R R9 R10 11 12 13 14 15 16
4 5 6 7 8
Salary based T T T T T T T T F F F F F F F F
40 T T T T F F F F T T T T F F F F
<40 T T F F T T F F T T F F T T F F
>40 T F T F T F T F T F T F T F T F
Page 2 of 6
ISCG6413 Testing and Quality Assurance in IT
Actions
PAYment by x x x
salary
Conditions R1 R2 R3 R R R R R R9 R10 11 12 13 14 15 16
4 5 6 7 8
Hourly based T T T T T T T T F F F F F F F F
40 T T T T F F F F T T T T F F F F
<40 T T F F T T F F T T F F T T F F
>40 T F T F T F T F T F T F T F T F
Actions
PAYment by x x x
wages
Produce x
absence
report
Pay overtime x
Conditions R1 R2 R3 R R5 R6
4
Employee S S S H H H
Type
Conditions R1 R R5 R6
Hours 40 <40
4 >4 4 <4 >4
0 0 0 0
Employee S H H H
Actions
Type
Pay by salary
Hours X
X X
4 <4 X >4
PAYment by 0 0 0 X X X
wages
Actions
Produce
Pay by salary X X
absence
PAYment by X X X
report
wages
Pay overtime X
Produce X
absence Page 3 of 6
report
Pay overtime X
ISCG6413 Testing and Quality Assurance in IT
Exercise 4:
If you are flying with an economy ticket, there is a possibility that you may get upgraded to
business class, especially if you hold a gold card in the airline's frequent flier program. If you don't
hold a gold card, there is a possibility that you will get 'bumped' off the flight if it is full and you
check in late. This is shown in the Figure below. Note that each box (i.e. statement) has been
numbered.
No. of statements: 10
Test 1 statements: 1, 2, 4, 5 coverage: 4/10 = 40%
Test 2 statements: 1, 6, 7, 5 coverage: 4/10 = 40%
Test 3 statements: 1, 6, 8, 10 coverage: 4/10 = 40%
Overall statements covered: 1, 2, 4, 5, 6, 7, 8,10 coverage: 8/10 = 80%
Exercise 5:
Page 4 of 6
ISCG6413 Testing and Quality Assurance in IT
What is the test case that gives the minimum series to test all the states
Exercise 6:
Conditions R1 R2 R3 R4 R5 R6 R R
7 8
Over 60s T T T T F F F F
Travel with T T F F T T F F
Conditions
a child R1, 5 R2 R3, R6 R7,
4 8
Hold family T F T F T F T F
Over
card 60s X T T F F
(don
Actions
t
DISCOUNT 50%
care) 34% 34 34 50 10 0 0
% % % %
Travel with T T F T F
a child
Hold family T F X F X
card
Actions Page 5 of 6
DISCOUNT 50% 34% 34% 10 0
%
ISCG6413 Testing and Quality Assurance in IT
Exercise 7:
Exercise 8:
Page 6 of 6