View Single Post
Old 03-11-08, 01:57 PM   #49 (permalink)
simhadri44
Senior Member
 
simhadri44's Avatar
 
Join Date: Oct 2006
Age: 27
Posts: 198
Thanks: 77
Thanked 19 Times in 15 Posts
Thanks: 77
Thanked 19 Times in 15 Posts
Rep Power: 5 simhadri44 is on a distinguished road simhadri44 is on a distinguished road
Re: ISTQB Questions Papers

Quote:
Originally Posted by mailramaa@gmail.com View Post
Rakesh,

First lets identify the number of branches in the code.. i think True and false are 2 branches.

As you said, P = 60 and Q = 50 checks only the True conditions of both the IF statements.This is only 50% coverage.

So what happens to false condition? that branch is not tested.
That is when P = 55, Q = 40 satisfies the false condition of both the If statements.

So, when P = 55, Q = 40 we can check if the system skips the PRINT statements thereby comlpeting the entire baranches (100% branch coverage!) So we need 2 test cases for branch coverage and one for statement coverage.

Is the explanation OK?? Any inputs?


Any clear Explanation plssssss
__________________
This forum is really awesome .Thanks to ............... ALL
simhadri44 is offline   Reply With Quote