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 the difference between Developer and programmer?

13 Answers   Tech Mahindra,


Do you know any kind of matrix ?

4 Answers  


Which is not present in formal review? a.)Facilitator b.)Auditor c.)Author d.)Recorder

5 Answers   Amdocs,


What if requirement document is unclear?

5 Answers   PCS,


In my application there are 5 modules. In every module there are 8-9 sub-modules. Preview, Print & Download options are there on every sub-module screen. My Question is - Should I have to write that much test cases for Preview, Print & Download options???????? Please reply soon.

2 Answers  


Who Prepare the Master Test Plan? Who Prepare the Test Plan?

1 Answers   Patni,


Is Software Testing categorized as a technical or Non-technical job???

6 Answers  


How many are the types of Black Box testing ?

4 Answers  


What are the different cost elements involved in implementing a process in an organization?

0 Answers  


As a tester I found a show stopper(critical defect) this evening whereas the project is going to be delivered to the client tomorrow morning so there is no time left.I reported the same to my test manager but he is not ready to convinced with me moreover he wants to close the matter as it is....in this senario wat will u do???

3 Answers   SuperValu,


why do u want to become a software tester?

5 Answers   TCS,


password is having 6 digit alphanumerics then what r the possible input conditions?

6 Answers   Logica CMG, Visual Soft,


Categories