Condition Decision Coverage criteria(CDC) for software testing

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 C1 Condition C2 Decision D1
T T T
T F F
F T F
F F F

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

 Try Automatic Tool to check Condition Decision CoverageClick Here 

Condition C1 Condition C2 Decision D1
T T T
T F F
F T F
F F F

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

Condition C1 Condition C2 Decision D1
T T T
T F F
F T F
F F F

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

Condition C1 Condition C2 Decision D1
T T T
T F F
F T F
F F F

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

 

Condition C1 Condition C2 Decision D1
T T T
T F F
F T F
F F F

Table 5: C1 and C1 and D1 are covered.

Result

Condition C1 Condition C2 Decision D1
T T T
F F F

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.

 

Fazal Rehman Shamil
Welcome to all friends. The reason for our success is only your love for T4Tutorials. Our team is always available to answer your queries regarding any kind of confusions or discussion regarding your study and career matters. For discussion with us please join our facebook group "T4Tutorials.com". The link of the group is mentioned below. Thanks and love to all for connecting with us. We are nothing without you. Love you all.....
https://web.facebook.com/groups/2066136233601097/

Leave a Reply