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
how to access a build & wat is its configuration
Can you explain usability testing?
Hi Please tell me about ERP Project how do describe in interview Please tell me details about this project my id is chiku_69@yahoo.in
Why did you choose the Software Testing Field?
What is white box testing?
1. what is a date guidelines ?
Q) Create Preffered customer: As a customer when i purchase more than $5000 in goods since my first purchase, I become a preffered customer so that i can receive the benefits associated with that status.
IN SQL SERVER 2005, With out using Query, hw can u break down USER NAME & PASSWORD to enter the software.
write a testing stratgy \ approach for a product that you are use every day (e.g gmail, out look etc)
Is quality control similar to quality assurance?
Test Cases For Router&Switch
What is difference between Bug resolution meeting & Bug Review Committee? Who are participants?
where do we work with Application, web and Database servers Means which type of applications.
Why is it impossible to test a program completely?
whar are the contents in db testing test case template