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 |
how to retrive only second row from table?
what is cyclomatic complexity
What are the positive and negative testing can be done to social site like orkut?
What is the difference between Incident and Defect. Anybody can answer it. Thanks in advance.
10 Answers iFlex, Kameda Infologics,
what is migration testing?
what is a broken link in web testing and how test it.
Can anyone tell me the correct difference between compatibilty testing & configuration testing
Hai all can anyone tell me wat is the diff betn Build and version and is there any file extenction for build and version if so wat is it..And How to deploy the build and version for development or testing.. Cheers, Amar.gp
1.What is Traceability Matrix and who prepare it. 1.1 How u can map the Requiremet wid Test Cases. 1.2 How u can find out that in Particular Test Case,some requirement is missing. 1.3 For a particular requirement,how u determine that how many TCs should prepare. 1.4 Gaie the Idea about Tracability Matrix,meant Format.
what is the difference between BVA&ECP?
3 Answers Infinite Computer Solutions, TCS,
How can I do a documentation of Test Cases? Which steps are in it?
3. In a system designed to work out the tax to be paid: An employee has £4000 of salary tax free. The next £1500 is taxed at 10%. The next £28000 after that is taxed at 22%. Any further amount is taxed at 40%. To the nearest whole pound, which of these groups of numbers fall into three DIFFERENT equivalence classes?