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 ia the need of the testing? What is the purpose of the testing? what is the diff between these tw0?
Please tell me difference btn Version & Reversion . Is there any difference btn them or both have same meaning.
In one company they ask if u get a job in CTs or any other concern, will u quit immediately? for that i have answered, but still i want ur answer to answer to tackle this questions in future?
Explain about Usability Testing in web based applications?
what is mean by test suite?
Which criteria should take in account while doing CMS testing of any project?
What is the Manual Testing?
What are the different Testing methodologies?
Identify correct statement
What is the Major difference between Sanity and Smoke Testing
What is meant by the bug state "Reproduce"
What is the goal of Software Configuration Management(SCM? a.)Configuration Identifier b.)Configuration Control c.)Process Management d.)All options.