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
Hi, This is vkram.I had completed my B.E in May 2005 & currently i am undergoing Testing Course. I want to join as a Fresher in any MNC. What should I tell why u r coming to testing field & what u did this 2 years?
What is the difference between a defect and a failure?
how to write test cases on SRS?tell me any example which type of certification is usefull for less then 1 yr exp. people in testing. can anybody know immediatly sent it which the answer
Tell me the SRS based review,brs based review
If I want to check compability of software in a MAC OS then which steps shold I follow?
What is the difference between baseline and traceability matrix?
what is conditional testing? explain and examples
What is the difference between stlc and sdlc?
how can we do database testing. In database testing we verify the data integrity and data validation. how can we do testing of Index, triggers, views, ransactions,cursors etc
Wat type of questions ll be asked in interview for an 1-2 yrs. experinced persond and i need some database concept question in testing.
How to find bug in photos and videos ??
How do you get programmers to build testability support into their code?
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
Hi All. How can we write negative test cases for Logout Operation ? Please place the answer with a few details and if possible add some related object properties. "A tester exposes his/her ability not only by words he/she also proof it by work"
qtp9.2 and qtp10.0 difference