Test Case

You might also like

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 2

Code: IF emp-Sal > 3000 compute emp-sal = emp-sal * 1.10 else compute emp-sal = emp-sal * 1.

30 end-if

Test Case1: For Emp_id=20 Emp-sal = 2000 ( This data from the input file) Actual Result: Emp-sal field must be increased by 30% and the value for emp-sal = 2000*1.30 = 2600 Expected result: As expected Comment: None ( Becos Actaul and expected results are matching) Test Case2: For Emp_id=30 Emp-sal = 4000 ( This data from the input file) Actual Result: Emp-sal field must be increased by 10% and the value for emp-sal = 4000*1.10 = 4400 Expected result: As expected Comment: None Test Case3: For Emp_id=40 Emp-sal = 3000 ( This data from the input file) Actual Result: Emp-sal field must be increased by 30% and the value for emp-sal = 3000*1.30 = 3900 Expected result: As expected Comment: None

You might also like