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 |
write the negative test cases for pencil based on it's functionality
Metrics for Evaluating Application System Testing?
plz tell me the difference b/w PB/MF based appl.with examples. Thanks
what is the difference between Test strategy and test plan?
diff b/w test case and test script?
!. what are the entry eriteria for functiondity and performance testing ?
What is interface in software testing???
Formate of weekly & daily status report means contents in that report
How will you determine if the architecture of any web site is of two tiers, three tiers or multi tier?
In which way tester get Build A, BUild B, ....Build Z of an application, just explain the process..
What are drawbacks in system development life cycle
What is a test requirement?