View Single Post
Old 06-08-08, 03:52 PM   #33 (permalink)
mailramaa@gmail.com
Senior Member
 
mailramaa@gmail.com's Avatar
 
Join Date: Oct 2006
Location: Pune
Posts: 193
Thanks: 19
Thanked 32 Times in 23 Posts
Thanks: 19
Thanked 32 Times in 23 Posts
Rep Power: 7 mailramaa@gmail.com will become famous soon enough mailramaa@gmail.com will become famous soon enough mailramaa@gmail.com will become famous soon enough mailramaa@gmail.com will become famous soon enough
Re: ISTQB Questions Papers

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?
__________________
Regards,
Rama
" Failure is the oppurtunity to begin again, more Intelligently! "
mailramaa@gmail.com is offline   Reply With Quote
The Following User Says Thank You to mailramaa@gmail.com For This Useful Post:
raakeysh (13-08-08)