Explain the difference between decision coverage and
condition coverage ? If possible provide few examples.

Answers were Sorted based on User's Feedback



Explain the difference between decision coverage and condition coverage ? If possible provide few e..

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

Explain the difference between decision coverage and condition coverage ? If possible provide few e..

Answer / mfsi_krushnas

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

Explain the difference between decision coverage and condition coverage ? If possible provide few e..

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

Post New Answer

More Manual Testing Interview Questions

what are the parameters u apply for doing functional testing?

3 Answers   Wipro,


test cases on orange hrm(( this is human resourse management system)

1 Answers   IBM,


10 scenarios for security testing using gmail applications?

2 Answers  


can u give me the test scenario template and one example test scenario?

9 Answers   Accenture, AppLabs, WCL,


hi! this is vivek i am having some of the questions can u clarify it sir 1.what is the model you are following in software development?what is your testing process?

3 Answers  


Testing Tools Online Training

0 Answers  


hi frnds! can any one help me by answering the below questions. 1.what is client server testing ? 2.what is web-based testing and what exactly tested in this ? 3.and exact difference between these two type of testing methods i can be reached on shrinivaster@gmail.com if any help needed from my side. thanks shri

3 Answers   Samsung,


how many functional testcases u can write for triangle

6 Answers   SunGard,


What is the difference between Severity and Priority?

1 Answers   IBM, R Systems,


If there are more number of test cases, how can u pick up a selective test case?

4 Answers   Wipro,


how will you define your bug status flow in softsmith qamonitor?

2 Answers  


how do u define quality of software?

6 Answers   Verifone,


Categories