Can anybody explain me branch/decision coverage with a
example.
Answer Posted / 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 |
Post New Answer View All Answers
What is error cusing tecnique
Please let me know how to test labels in web application manually and how the testcases would be. Please provide me a sample testcase
Anybody having documents and URLs about BFSI domain...Please share..it is really urgent
Any one send me sample question for multimedia testing with microsoft access database. I am having interview next week. Please post it or send me my personal e-mail. Thank You
What is the purpose of test strategy?
hi sir, i completed my GNIIT from NIIT. i recently joined in IT company for Testing(manual) on JD EDWARDS.So,i wanna to ask that after taking 1yr experience can i able to do Testing .NET in another company.Pl i am confused pl send yours suggestion throw my email(paresh_shindeal@yahoo.com)
what types of testing have u done in ur project?and expalin it detail?
aplitue questions will be based on wich type ?
Could anyone share FAQs for Test Manager position...
what is the difference between Risk based and Requirement based testing???
what is dib format?
How should validation activities be handled?
Explain compatibility testing with an example.
Write the test cases for yahoo home page
How could you present test strategy for the product testing?