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 are different reports prepared by a tester and their templates.

3 Answers  


what is waterfall model?explain? what is v model? explain all phase?and the difference between two model?

3 Answers   CTD, CTS,


7)In a Banking Application, for a module to pay a bill it must have 3 screens (Entry, verification and confirmation screens) in series. It was found that at the final confirmation page the data was getting saved in the database but was not getting displayed on the screen. Which is the best suited category and severity of this defect? A)High severity Content issue B)Low severity Content issue C)High severity Data Loss D)Medium severity data loss

3 Answers   Mind Tree,


Do testers have to write separate test cases for performing sanity testing??

1 Answers  


what is RCA and how to do root cause analysis

1 Answers   Infosys,


In which all places, testing is done?One is from the server by calling server name.Can u suggest others?

0 Answers  


as test eng ,what challenges have u faced in ur 3 projects so far? tell me atleast 3 challenges in ur projects? july 27 brahma412@yahoo.co.in

1 Answers   CTS,


What certifications are available in testing?

1 Answers  


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 test strategy,test plan and test policy?Does anyone have dummy documents or any links that gives more idea about these?I am a beginner...interested in learning more abt testing.plz help and encourage me........!

0 Answers  


I want test cases for CLI? can any one send TC for CLI?

0 Answers  


Why we use Excell sheet not the Microsoft Word to write test cases and all? Why ?

3 Answers  


Categories