Thursday, December 12, 2013

What is MC/DC(Modified Condition/ Decision Coverage) ?

MC/DC Coverage = Branch Coverage + Condition taken for all possible value + Every condition independently affects the outcome of a decision

Ex:
A or (B & C)

     A                   B                 C                   Test case/Output

1) True           False             True                 True
2) False          False             True                 False
3) False          True              True                 True
4) False          True              False                 false


   
Explanation:

1) test case 1 and 2 are for A where values of variable 1 changed and out come as well changed.
2) test case 2 and 3 are for B where values of variable B changed and out come as well changed.
3) test case 3 and 4 are for C where values of variable C changed and outcome as well changed.


2 comments:

Sriram said...

Nice mann :)

Sriram said...

Nice man... :)