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 different test techniques?

3 Answers   Covansys,


The degree to which the software LOC of a program has been tested is called A.Data flow testing B.Code coverage C.Code walk through D.Statement coverage

1 Answers   ADITI,


Write Test Strategy for Hot mail Login Screen?

2 Answers  


3.risk factor ratio in the project?

2 Answers  


Is dekstop testing and client-server testing same ?

1 Answers  






Testing OO class operations is made more difficult by Option 1 Encapsulation Option 2 Inheritance Option 3 Polymorphism Option 4 Both Inheritance and Polymorphism

2 Answers   Infosys,


can anyone please tell me how to test the functional specification?

3 Answers   Mastek,


What is the significance of version control in software testing

1 Answers   IBM,


What is user acceptance testing (uat)?

0 Answers  


Hi, Can anyone send me the interview questions & answer for 1+ year of experience in manual testing

0 Answers   STG,


Any one can send the Test Plan Tempelate to this id raj_kan1979@yahoo.co.in

1 Answers   Photon,


What are Testing Metrics? Explain

3 Answers   Fiserv, Persistent,


Categories