Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Condition Decision Coverage criteria(CDC) for software testing

Last modified on January 7th, 2019 at 8:58 am

Condition Decision Coverage criteria(CDC) for software testing

According to CDC criteria, every Decision and Condition must be covered. This Decision and Condition Coverage means that both must have at least one True and one False value.

Condition C1Condition C2Decision D1
TTT
TFF
FTF
FFF

Table 1: C2 and D1 are covered but C1 is not covered.

 Try Automatic Tool to check Condition Decision CoverageClick Here 

Condition C1Condition C2Decision D1
TTT
TFF
FTF
FFF

Table 2: C1 and C2 are covered but D1 is not covered.

Condition C1Condition C2Decision D1
TTT
TFF
FTF
FFF

Table 3: C2 is covered but C1 and D1 are not covered.

Condition C1Condition C2Decision D1
TTT
TFF
FTF
FFF

Table 4: C1 and D1 are covered but C2 is not covered.

 

Condition C1Condition C2Decision D1
TTT
TFF
FTF
FFF

Table 5: C1 and C1 and D1 are covered.

Result

Condition C1Condition C2Decision D1
TTT
FFF

Now, we can see in table 5 that all conditions and decisions are covered because

  • C1 have one T and one F value.
  • C2 have one T and one F value.
  • D1 have one T and one F value.

Some facts about Condition Decision Coverage (CDC)

  1. Condition Decision Coverage (CDC) subsumes Condition Coverage and Decision Coverage. It means that if we performed CDC testing, then no need to perform Condition Coverage and Decision Coverage.
  2. CDC is more strong than condition coverage.
  3. CDC is more strong than decision coverage.
  4. CDC ensures that all conditions and decisions are working fine or not.
  5. CDC is weaker than MCDC.
  6. CDC is weaker than MCC.

 

Prof. Fazal Rehman Shamil
Researcher, Publisher of International Journal Of Software Technology & Science ISSN: 2616-5325
Instructor, SEO Expert, Web Programmer and poet.
Feel free to contact.