Modified Condition  Decision Coverage (MCDC) in software testing

Last modified on May 26th, 2018 at 2:02 pm

Modified Condition  Decision Coverage (MCDC) in software testing

According to Modified Condition  Decision Coverage criteria, we need to cover all those combinations of truth values of conditions in which each of the condition’s truth value determines the decision truth value.

For example, if the condition is True then a decision must also be True. Similarly, if the condition is False, then the decision must also be false.

Condition C1Condition C2Decision D1 
TTTC1 determines D1 as T
FTFC1 determines D1 as F

Table 1: C1 determines D1.

Condition C1Condition C2Decision D1 
TTTC2 determines D1 as T
TFFC2 determines D1 as F

Table 2: C2 determines D1.

Condition C1Condition C2Decision D1 
TTTC1 determines D1 as T
FTFC1 determines D1 as F
TTTC2 determines D1 as T
TFFC2 determines D1 as F

Table 3: C1 and C2 determines D1.

Now, we can remove the redundancy. Redundancy is mentioned below;

TTTC1 determines D1 as T
TTTC2 determines D1 as T

Both of these two testing the same thing, so we can choose one of them to remove. In this example we have chosen the following;

TTTC2 determines D1 as T

 

Condition C1Condition C2Decision D1 
TTTC1 determines D1 as T
FTFC1 determines D1 as F
TFFC2 determines D1 as F

Table 4: After removing redundancy.

Now, we can see in table 4 that conditions determine the decision

  • If C1 is T then D1 is T
  • If C1 is F then D1 is F
  • If C2 is T then D1 is T, but it is removed because it is redundant to (if C1 is T then D1 is T).
  • If C2 is F then D1 is F

MCC= MCC stands for Multiple condition Coverage.

MCDC= MCDC stands for Modified Condition Decision Coverage.

CDC= CDC stands for Condition Decision Coverage.

CC= CC stands for condition Coverage.

DC= DC stands for Decision Coverage.

Some facts about Modified Condition Decision Coverage (MCDC)

Modified Condition Decision Coverage (MCDC) subsumes CDC. So it leads to the followings;

CDC subsumes CC and DC.

It means that if we performed MCC testing, then no need to perform MCDC, CDC, CC, and DC.

MCDC is stronger than CC.

MCDC is stronger than DC.

MCDC 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.