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 difference between the Build version id and software version id ?

6 Answers  


how we will decide test effectiveness and test efficiency?

1 Answers   Wipro,


Explain the procedure & path of s/w in testing?

0 Answers  


Orthogonal Arry Testing?

4 Answers   ADITI,


Hello every1 , i am a 2008 BE graduate & i am trained in S/W Testing., Would doing any certification course like ISTQB (foundation level) would help get a job in a good MNC ... veerudsce@gmail.com

2 Answers  


what is Agile modal in (sdlc) and how is works ?

2 Answers   Credence, Keane India Ltd,


What are the different types of doccuments we can use in mannual testing?

4 Answers   AZTEC,


How do you go about testing a project?

0 Answers  


I give you a functional requirement document(FRD) of 10 pages.Now you tell me,how to calculate Test effort,As i Need to say to the client ?

3 Answers   Satyam,


difference between v-model and refinement form of v-model?

1 Answers  


what is user acceptence test?

9 Answers   Vyons Labs,


When will the testing starts?

0 Answers  


Categories