Explain the difference between decision coverage and
condition coverage ? If possible provide few examples.
Answers were Sorted based on User's Feedback
Answer / mfsi_satyakamm
Decision coverage - It checks whether every edge of the
program is covered or not i.e. each edge of every control
structure(i.e. IF and CASE statements)are covered or not.
Condition coverage - It checks whether every conditional
statements are covered or not. It evaluates for only true
and false condition for each conditional statement not every
edge of those conditional statement.
| Is This Answer Correct ? | 17 Yes | 5 No |
Decision Coverage
-----------------
1.Generally it says The test inputs to cover all
decisions(for ex:IF) will be in such a way that,those test
inputs can be able to make that decision block both true and
false.
for ex:
if(a>b)
print a;
endif
if (b>c)
print c;
else
print b;
endif
so here we should make test inputs in such a way that it
should able to make first if true and false although there
is no else condition.same for the second if block.
condition coverage
------------------
Here condition refers to the all possible conditions
existing in the program that we can traverse.
for ex:
if((a>b) && (b>c))
here inside the decision block there are conditions which we
should traverse.
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / priyanka agrawal
100% decision coverage is 100% statement coverage.but 100%
statement coverage is not 100% decision coverage.This is
because decision contains both true and false part.So 100%
statement coverage can not cover both true as well as
false.and if decision is covered that means automatically
the statement will be covered.
| Is This Answer Correct ? | 10 Yes | 5 No |
How to write test cases for nevigating menus? Ex. Course -Topics -Subtopics
What does FRS contain ?Explain in detail.
Artifacts in design phase of SDLC ?
Define Stress, Load, Volume Testing?
I need a good book on manual testing.Is the book by nageswara rao good.I need to learn from basic to advanced.
Have you ever written test cases or did you just execute those written by others?
Can anyone tell me what is meant by "Mainframes Testing"? Also, Plz let me know what r all d responsibilities of a Manual Tester in Mainframes Testing? Plzzz reply!!
14 Answers Accenture, American Express, Cap Gemini, Google, IBM,
Puzzles 1)Three geniuses stand in a file (one behind the other). Each can see only to the front, so the rear person can see the middle and the front, the middle person can see the front, and the genius in the front cannot see anyone. You have five hats. Two are white, and three are red. You blindfold the three geniuses, who are utterly truthful, and put a hat--at random-on the head of each. Then you hide the other two hats and remove the blindfolds. You then ask each genius to name the color of his hat (which he cannot see). The rear on says "I don't know." The middle on says, " I don't know." Then the front onw says, "I know." WHAT COLOR IS THE FRONT GENIUS' HAT? 2) one reasoning puzzle. 3) A monkey falls into a 30 ft well. Every day it climbs 3 ft up and falls 2 feet up. How many days will it take for it to jump out of the well.
what is issue ?and difference between issue, defect and bug
what is exemption and resumption criteria in test plan?
what is the difference between debugging & manual testing?
What is QA and QC ? Tester's are coming under QA or QC ?