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 |
What is difference between the Build version id and software version id ?
how we will decide test effectiveness and test efficiency?
Explain the procedure & path of s/w in testing?
Orthogonal Arry Testing?
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
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?
How do you go about testing a project?
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 ?
difference between v-model and refinement form of v-model?
what is user acceptence test?
When will the testing starts?