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!

Multiple condition coverage MCC

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

Also called condition combination coverage.

For each decision all the combinations of conditions should be evaluated.

MCC for 2 conditions:

Example code:

if(a>10     &&     b>20)

{
}

Test Requirements:

Total  test requirement are 22=4

Test RequirementsCondition C1Condition C2
1TT
2TF
3FT
4FF

 

Test RequirementsabTest Case #
120     T30        T1
220     T10        F2
35       F30        T3
45       F10        F4

 

 

Test Case #Values input Pattern(a,b)
120,30
220,10
35,30
45,10

 

 

MCC for 3 conditions:

if(a>10     &&     b>20    OR   c<30)

{
}

 

Test Requirements:

Total  test requirement are 23=8

Test RequirementsCondition C1Condition C2Condition C3
1TTT
2TTF
3TFT
4TFF
5FTT
6FTF
7FFT
8FFF
Test RequirementsabcTest Case #
120       T30      T10        T1
220       T30      T40        F2
320       T10      F10        T3
420       T10      F40        F4
55         F30      T10        T5
65         F30      T40        F6
75         F10      F10        T7
85         F10      F40        F8

 

Test Case #Values input Pattern(a,b,C)
120,30,10
220,30,40
320,10,10
420,10,40
55,30,10
65,30,40
75,10,10
85,10,40

 

 

 

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.