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 Gap Analysis?. Is there any template for it.Describe briefly about Gap Analysis Please

1 Answers  


What is the difference between Severity and Priority?

1 Answers   IBM, R Systems,


how to retrive only second row from table?

3 Answers   CTS,


wat is perpose of TRM ?(Test responsibility Matrix)

4 Answers   Synergy,


 You are New to the city,You don't have any Gadgets,you have   only address on paper piece.You are almost nearer to your destination, You have asked one man and he replied saying "Go straight and take Right(Dead End)".After moving some distance you have asked another person and he replied saying "Go straight and take Left (Dead End).And finally question here is As a tester which path you can choose and why? 

5 Answers   Bally Technologies, SSS,






what is the difference between stress and load testing

6 Answers  


Very Important Note for all the Testers!!! As the S/w Boom is getting considerably decreased...

13 Answers   Accenture,


what is error seeding

3 Answers   AZTEC,


test case for post status functionality of facebook

1 Answers  


Can the system testing be done at any stage?

1 Answers  


For Change Password functionality-- Test Case is -- > Change Password Test Steps/Descriptions: 1) Enter Old Password 2) Enter New Password 3) Enter Confirm Password 4) Click on Save button Expected -- > User should login successfully. My question is --> After 4th step tester will check/verify that user [whose password has been changed] is login successfully or not. Should I have to write that steps which user will fallow to verify user login in above test case? What are the preconditions for above test case?

6 Answers  


Hi there!!! Im Varun...i've completed my B.Sc in 2013.now im woriking in pharmaceitical company.now i want to shift to IT field..for that ive learned Manual testing.now i want to put 1+ years fake..wat my doubt s can i manage as fresher or any problem???suggest me im confused????

1 Answers  


Categories