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

University of Haripur

Department of Information Technology


BS-SE 6B

Decision Table

Assignment No 3

Course Title Software Quality Engineering


Student Name Ahmed Behzad
Student Reg. No/Roll No F17-0096
Semester/Year Spring 2020
Instructor Name Sabahat Israr

Due Date 12th July 2020


Submission Date 12th July 2020
Task:
Take a scenario/example to generate test cases from decision table.
Draw decision table from the scenario and reduce it to as minimum
possible number of rules and combinations as possible.

(Rules must not be more than 16. That will automatically limit causes and
effects to 4 with two possible values for causes)

Payroll system
(a) If the salary of a person is less than equal to Rs. 60,000 and expenses do not
exceed Rs. 30,000 then 10% tax is charged by IT department.
(b) If the salary is greater than Rs.50,000 and less than equal to Rs 2 lakhs and
expenses do not exceed Rs. 40,000 than 20% tax is charged by IT department.
(c) For salary greater than Rs 2 lakhs, 5% additional surcharge is also charged. (d) If
expenses are greater than Rs. 40,000 surcharges are 9%.

First of all, we need to identify the causes and its effects.

Causes
C1: Salary<=60,000
C2: Salary>60,000 and salary <=2 lacs
C3: Salary >2 lacs
C4: Expense<=30,000
C5: Expense<=40,000
C6: Expense>40,000

Effects
E1: 10% tax is charged
E2: 20% tax is charged
E3:(20% tax) +(5% surcharge) is charged
E4:(20% tax) +(9% surcharge) is charged
Decision Table

1 2 3 4
Condition / Cause C1 1 0 0 0
Condition / Cause C2 0 1 0 0
Condition / Cause C3 0 0 1 1
Condition / Cause C4 1 0 0 0
Condition / Cause C5 0 1 1 0
Condition / Cause C6 1 0 0 0
Action / Effect E1 X - - -
Action / Effect E2 - X - -
Action / Effect E3 - - X -
Action / Effect E4 - - - X

Test Cases
1. Salary = 20,000, Expenses = 2000.

2. Salary = 1,00,000, Expenses = 10,000

3. Salary = 3,00,000, Expenses = 20,000

4. Salary = 3,00,000, Expenses = 50,000.

You might also like