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 is Database normalisation

3 Answers  


How to write Test Cases? What r the items in the Test Case? How to say whether the Test Case covers all functionalities in Application?

5 Answers   Scandent,


Differentiate Test strategy and Test case?

1 Answers  


What is role of a tester in the requirement phase?

2 Answers  


What is the difference between System Testing and Functionality Testing?

8 Answers   Wipro,






There are 2 clients for a server and that clients can access the data from the server only for 10 days. so how will you test this scenario manually? Can u pls help me?..

4 Answers   eMids, TCS,


How do u ensure that there are no duplicate testcases?

3 Answers  


What is the difference between load testing and volume testing?

2 Answers   Yardi,


differentiate re-testing and regression testing

7 Answers  


What is the diff. between Sanity , smoke and ad-hoc testing?

8 Answers  


What are some of the typical bugs you encountered in your last assignment?

1 Answers   CTS,


expalin integration tsting who will perform ths type of testing at what time will do

2 Answers   Aspire,


Categories