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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain some techniques for developing software components with respect to testability.

3050


Differentiate test bed and test environment?

2105


Risk Analysis a) 2 step, b)3 step, c) 4 step, d) 6 step

1610


Hello again!! wanted to ask you HOW EXACTLY create stubs and driver in integration testing? 2.whats the difference between integration testing and system integration testing? Thanks!!

1701


list of methods that is used to document the requirements of a software.

1549






Relative to other technical groups in the company? Relative to your staff?

1499


functional testing test cases for transfer funds ?

1187


What r the documents required for performance testing

1805


how to connect your project in database?

1510


Why performance testing is performed? What are tools of performance testing?

705


sanity testing is done during regression testing.is it true.if it is true plz explain?

1454


What is virtual creation tool?

1545


Did any one completed CSTE certiication? can u send sample question papers? how to apply that? pls send it to my mail id - dsnathi@gmail.com THANKS IN ADVANCE

1646


When will the testing starts?

663


Tell me the algo for convering number into words. Meanse if the number is 4567 then it should print Four Thousand Five Hundred Sixty Seven

1555