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
I have 6 months experience as project tarine and one and a half year experience as software engineer.Should i write taht my total experience id 2 years.
HI, This question is Investment Banking domain related Question. I was asked in an Interview to tell the 5 test cases for Equity,Bond,Futures and options. Please help.. Pragya
List the considerations in developing testing methodology
Write the 10 high test cases for making video call/face time
What are different types of verifications?
What is ofx testing?
need answer interviewer will ask me about all project which i mention in resume or presently i'm working??please reply tomorrow is my interview
Which criteria should take in account while doing CMS testing of any project?
test cases for Insurance Processing System ?
What are the cases when you’ll consider to choose automated testing over manual testing?
integration test cases for mouse and keyboard
what is acid testing?
wat are the questions would the project leader ask about the project?? please do send the answers early.
Test cases for Internal IP Messenger
What a team leader will test first when s/he will get new module to test?