Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can anybody explain me branch/decision coverage with a
example.



Can anybody explain me branch/decision coverage with a example...

Answer / nitin

Branch Coverage reveals, if all branches were executed. (For example, an if-instruction has two branches, the then-branch and the else-branch.)
Decision Coverage reveals, if all decisions evaluated to both true and false. (For example, the decision of an if-instruction is what is between the parentheses.)

if (x > y)
print (x)
else if (x < y)
print (y)
else
print (x,y)

in the above example there are three decisions and 5 branches.
stmt 1 if two branches true or false
stmt 3 else if teo branches true or false
stmt 5 else one branch

so pass values like
x = 2,1,2
y = 1,2,2

so that all three decisions and 5 branches are covered.

Is This Answer Correct ?    14 Yes 4 No

Post New Answer

More Manual Testing Interview Questions

What is role of a tester in the requirement phase?

2 Answers  


WHAT IS QUALITY ASSURANCE ,,WHAT IS QUALITY CONTROL BYE

0 Answers   CA, Navigation Solutions,


what is volume,stress,load testing ?

2 Answers  


How many testcases can you write an avg for a day?

12 Answers   AppLabs, IBM,


could u pls tell me, all types of funtional and non funtional testing techniques?

4 Answers   MAHINDRA, TCS,


difference between test strategy,test plan and test methodology. which will create first and who will create those and is there anyone optional in that

2 Answers   Pragma,


What is the limit for test steps?It should be 10/20/30etc

0 Answers  


Mention five negative testcases for Gtalk?

1 Answers   TCS,


What is smoke testing and when it wil be done?

7 Answers  


Suppose there are three modules A-B-C, the output of A is responsible for B and output of B is responsible for C and if A & C is not ready & B module is ready then how can u check Module B

4 Answers   TCS,


how we receive the build ? will there be change in version for every single bug the developer fixes ?

2 Answers  


What is interface in software testing???

5 Answers  


Categories