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

Explain Boundary value analysis?

1 Answers   Crea,


with out any training on domain with out any document only with the help of build screen is it possible to write testcases

5 Answers   Ariba,


Suppose u found a bug which a developer could not reproduce and it is reproducing on your pc whenever tried , then in this siyuation what will be the status of the bug, and what u r going to do for that bug.

4 Answers   Flextronics, Syntel,


Explain elementary process?

0 Answers  


Fault-based testing is best reserved for Option 1 Conventional software testing Option 2 Operations and classes that are critical or suspect Option 3 Use-case validation Option 4 White-box testing of operator algorithms

1 Answers   IonIdea,


Why does user inter-operability testing present such a big challenge to the testing effort?

3 Answers   Google,


How do you detemine wat to be tested?

3 Answers  


1.what is the deference between priority and severity?

9 Answers  


What is white box testing?

0 Answers  


Tell me the algo for convering number into words. Meanse if the number is 4567 then it should print Four Thousand Five Hundred Sixty Seven

0 Answers  


I have 3 years of experience as a software manual tester. What can i study further for a career growth. Please advice if there is anything apart from automation testing

1 Answers   HP,


difference between regression and retesting?

7 Answers  


Categories