# Multiple condition coverage MCC

## What are the conditions in software testing?

Conditions are atomic conditions in expressions.

## What are Decisions in software testing?

Decisions are the controls that can control the program flow after evaluating the full expression.

## Test Requirements

 Test Case ID a > b a >c a >d Output Condition 1 Condition 2 Condition 3 1 False False False False 2 False False True False 3 False True False False 4 False True True False 5 True False False False 6 True False True False 7 True True False False 8 True True True True

## Test cases

 Test Case ID a > b a >c a >d Output Condition Condition Condition 1 a=2, b=5, False a=2, c=5, False a=2, d=5, False False 2 a=2, b=5, False a=2, c=5, False a=9, d=8, True False 3 a=2, b=5, False a=7, c=6, True a=2, d=5, False False 4 a=2, b=5, False a=7, c=6, True a=9, d=8, True False 5 a=7, b=6, True a=2, c=5, False a=2, d=5, False False 6 a=7, b=6, True a=2, c=5, False a=9, d=8, True False 7 a=7, b=6, True a=7, c=6, True a=2, d=5, False False 8 a=7, b=6, True a=7, c=6, True a=9, d=8, True True

How many test cases required for Multiple condition coverage (MCC)

# Total number of test cases = 2C

Explanation of formula:

Condition 1: a > b

Condition 2: a>c

Condition 3: a>d

23=8

Total test cases required = 8

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,