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 |
with out any training on domain with out any document only with the help of build screen is it possible to write testcases
what is the use of this application?
do u know abt descryptive programming
Which r diff. models for SDLC and STLC ? Thanks in advanse to replier. Suyog Watershed Infotech
What is the main difference between Smoke and sanity testing? Can u plz give me some examples? And to answer in interwview?
who do the sanity and smoke please explain me at what time this type of testing will do
is there any checklist to check SRS document
Roles and responsibilities of TL
what is the template u used for informing clients regarding known issues when u near to release
what is the main difference between Compatibility testing and system testing
what is the format for usecase?
Explain a bug which if you have missed could have created a big problem.