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 baseline in testing
pliz anyone explain what is the DEFAULT BUG & also give me some example.Thanks in advance..
Have you ever created a test plan?
How to write mail to bug report in manual testing with example?
When did u complete testing ? Which scenrio should not be in automation testing ? why ?
Can you explain regression testing and confirmation testing?
what is android testing?
what is e-tester?
How to run the Data Base Testing Manually ?
What is non-compliance testing?
1> Which is the latest technology use for login page? 2> What is virtual keyboard? Is it more secure than key board?
what the purpose of requirement phase