Condition Decision Coverage criteria(CDC) for software testing

Download This Tutorial in PDF

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.

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.

 

Subscribe for Friendship

Latest posts by Prof. Fazal Rehman Shamil (see all)

Buy advertisement space on T4Tutorials

For more details email [email protected]