Condition Coverage criteria(CC) in software testing

Condition Coverage criteria(CC) for software testing

According to Condition Coverage (CC) criteria, every condition must be covered. It means that each condition must have at least one True and one False value. Condition coverage and decision coverage have no subsumption relationship.

Condition C1Condition C2
TDon’t Care
FDon’t Care
Don’t CareT
Don’t CareF

Table 1: C1 and C2 both have at least one T and one F value.

Programming example.

void main (int a, int b)


if(a<b && a+b<20)


Cout<<”welcome to our tutorials website”<<endl;


cout<<”welcome to”<<endl;



cout<<”Thank you for your time on our website”<<endl;


Test Requirements.

If all test requirements were met, then we can say that we have correctly performed CC criteria.

1TDon’t careDon’t care
2FDon’t careDon’t care
3Don’t careTDon’t care
4Don’t careFDon’t care
5Don’t careDon’t careT
6Don’t careDon’t careF

Now, we can generate test cases from these test requirements.

TC#Test CaseC1C2C3T.R met
1(7,8)TTT1, 3, 5

Some facts about Condition Coverage criteria (CC).

CC ensures that all conditions must have at least one T and one F value.

CC is weaker than CDC.

CC is weaker than MCDC.

CC 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]