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 |
can any one tell me wat is dependent and independent scripting?
say me any problem u faced in the project after delivering to client?
Who will be assigning severity and priority for a bug?
How does u write test scenarios for Television /Refrigerator?
Do you know of metrics that help you estimate the size of the testing effort?
I have one doubt in regression testing, Example if we have five modules such as 1,2,3,4,5. If we made change in 3 module only and also 3 module will interact with only 1 and 5 module. For this case we will conduct testing in all module (or) only 1 and 5 module?? Answer soon firends
define with example high severity and low priority ? 2.low severity and high priority? 3.both are high? 4.both are low ?
where do we use checkpoints in real time?where they actually come into picture?
What is d differences between sanity and smoke testing with xample?If anyone knows pls ans dis ques
How do we run the database testing manually
What is the exact diff between sanity and smoke test and who will do in real time?
write a test case for air conditioner