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 role of a tester in the requirement phase?
WHAT IS QUALITY ASSURANCE ,,WHAT IS QUALITY CONTROL BYE
0 Answers CA, Navigation Solutions,
what is volume,stress,load testing ?
How many testcases can you write an avg for a day?
could u pls tell me, all types of funtional and non funtional testing techniques?
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
What is the limit for test steps?It should be 10/20/30etc
Mention five negative testcases for Gtalk?
What is smoke testing and when it wil be done?
Suppose there are three modules A-B-C, the output of A is responsible for B and output of B is responsible for C and if A & C is not ready & B module is ready then how can u check Module B
how we receive the build ? will there be change in version for every single bug the developer fixes ?
What is interface in software testing???