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

2.How are you going to map between Test Scenarios and Test Cases?

2 Answers  


performance testing is functional or nonfuctional

4 Answers  


A Succesful testcase Means..?

14 Answers   HCL,


Plz any one explain with example for a high priority with low severity and low priority with high severity bug

1 Answers  


What is Test data ?Whrere we are using this in testing process? what are the importance of this data?

3 Answers   Apps Lab, Illusion Technologies,


How do you test if you have minimal or no documentatioabout the product? How do you decide when you have tested enough? How do you determine what to test?

3 Answers  


what is test director?

1 Answers  


what documents are used to write testcase for integration testing and system testing?

3 Answers  


Q.Reasons not to automate. a.No formal test plan. b.No Design document. c.Testing budget is minimal. d.All of the above.

5 Answers   Accenture,


what is the difference test bed and test environment?

5 Answers   CTS,


How u write the test cases after studing the RSD and FSD

2 Answers   CTS,


Hi Friends, I have completed 3 rounds of an Interview with HR discussion also and got Offer letter from Cognizant, but after in 30 min they send one more email like Offer is on Hold, and its not valid... Could you please guide me any one , Can i expect Offer again from Cognizant or Can i drop the hopes ?.

0 Answers   Cognizant,


Categories