SlideShare a Scribd company logo
1 of 1
MC/DC (Modified Condition / Decision Coverage)
A B C Final decision (Pattern)
Focusing on Cond. A: Fix B and C
TRUE TRUE TRUE TRUE (1)
FALSE TRUE TRUE FALSE (2)
Focusing on Cond. B: Fix A and C
TRUE TRUE TRUE TRUE (1)
TRUE FALSE TRUE FALSE (3)
Focusing on Cond. C: Fix A and B
TRUE TRUE TRUE TRUE (1)
TRUE TRUE FALSE FALSE (4)
Cond. A && Cond. B && Cond. C
Statement X
FALSE
TRUE
MC/DC confirms :
- Each condition can affect the final decision correctly
with less test case than C2
A B C (Pattern)
TRUE TRUE TRUE (1)
FALSE TRUE TRUE (2)
TRUE FALSE TRUE (3)
TRUE TRUE FALSE (4)
Test case design :
Focus on each condition so as to make the final decision by only itself
Combined test case :
Less than C2
50% decreased from C2
(C2 : all condition combinations
= 23 = 8 test cases)

More Related Content

What's hot

Mobile Operating Systems
Mobile Operating Systems Mobile Operating Systems
Mobile Operating Systems Anant Lodha
 
Introduction to the 16-bit PIC24F Microcontroller Family
Introduction to the 16-bit PIC24F Microcontroller FamilyIntroduction to the 16-bit PIC24F Microcontroller Family
Introduction to the 16-bit PIC24F Microcontroller FamilyPremier Farnell
 
Acceptance Test Driven Development and Robot Framework
Acceptance Test Driven Development and Robot FrameworkAcceptance Test Driven Development and Robot Framework
Acceptance Test Driven Development and Robot FrameworkSteve Zhang
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net frameworkArun Prasad
 
White box & Black box testing
White box & Black box testingWhite box & Black box testing
White box & Black box testingNitishMhaske1
 
A deep dive into Android OpenSource Project(AOSP)
A deep dive into Android OpenSource Project(AOSP)A deep dive into Android OpenSource Project(AOSP)
A deep dive into Android OpenSource Project(AOSP)Siji Sunny
 
Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...
Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...
Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...Alexander Nyßen
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGERaval Chirag
 
Introducción a Unit Testing y TDD
Introducción a Unit Testing y TDDIntroducción a Unit Testing y TDD
Introducción a Unit Testing y TDDFernando Perez
 
Types of Software Testing | Edureka
Types of Software Testing | EdurekaTypes of Software Testing | Edureka
Types of Software Testing | EdurekaEdureka!
 
State Machine Workflow: Esoteric Techniques & Patterns Everyone Should Buy pr...
State Machine Workflow: Esoteric Techniques & Patterns Everyone Should Buy pr...State Machine Workflow: Esoteric Techniques & Patterns Everyone Should Buy pr...
State Machine Workflow: Esoteric Techniques & Patterns Everyone Should Buy pr...European SharePoint Conference
 

What's hot (20)

Selenium presentation
Selenium presentationSelenium presentation
Selenium presentation
 
Mobile Operating Systems
Mobile Operating Systems Mobile Operating Systems
Mobile Operating Systems
 
Introduction to the 16-bit PIC24F Microcontroller Family
Introduction to the 16-bit PIC24F Microcontroller FamilyIntroduction to the 16-bit PIC24F Microcontroller Family
Introduction to the 16-bit PIC24F Microcontroller Family
 
Labview -USB
Labview -USB Labview -USB
Labview -USB
 
Introduction to c#
Introduction to c#Introduction to c#
Introduction to c#
 
Acceptance Test Driven Development and Robot Framework
Acceptance Test Driven Development and Robot FrameworkAcceptance Test Driven Development and Robot Framework
Acceptance Test Driven Development and Robot Framework
 
ADO CONTROLS - Database usage
ADO CONTROLS - Database usageADO CONTROLS - Database usage
ADO CONTROLS - Database usage
 
JVM
JVMJVM
JVM
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 
White box & Black box testing
White box & Black box testingWhite box & Black box testing
White box & Black box testing
 
A deep dive into Android OpenSource Project(AOSP)
A deep dive into Android OpenSource Project(AOSP)A deep dive into Android OpenSource Project(AOSP)
A deep dive into Android OpenSource Project(AOSP)
 
Component Diagram
Component DiagramComponent Diagram
Component Diagram
 
Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...
Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...
Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
 
acceptance testing
acceptance testingacceptance testing
acceptance testing
 
Introducción a Unit Testing y TDD
Introducción a Unit Testing y TDDIntroducción a Unit Testing y TDD
Introducción a Unit Testing y TDD
 
Types of Software Testing | Edureka
Types of Software Testing | EdurekaTypes of Software Testing | Edureka
Types of Software Testing | Edureka
 
State Machine Workflow: Esoteric Techniques & Patterns Everyone Should Buy pr...
State Machine Workflow: Esoteric Techniques & Patterns Everyone Should Buy pr...State Machine Workflow: Esoteric Techniques & Patterns Everyone Should Buy pr...
State Machine Workflow: Esoteric Techniques & Patterns Everyone Should Buy pr...
 

MC/DC

  • 1. MC/DC (Modified Condition / Decision Coverage) A B C Final decision (Pattern) Focusing on Cond. A: Fix B and C TRUE TRUE TRUE TRUE (1) FALSE TRUE TRUE FALSE (2) Focusing on Cond. B: Fix A and C TRUE TRUE TRUE TRUE (1) TRUE FALSE TRUE FALSE (3) Focusing on Cond. C: Fix A and B TRUE TRUE TRUE TRUE (1) TRUE TRUE FALSE FALSE (4) Cond. A && Cond. B && Cond. C Statement X FALSE TRUE MC/DC confirms : - Each condition can affect the final decision correctly with less test case than C2 A B C (Pattern) TRUE TRUE TRUE (1) FALSE TRUE TRUE (2) TRUE FALSE TRUE (3) TRUE TRUE FALSE (4) Test case design : Focus on each condition so as to make the final decision by only itself Combined test case : Less than C2 50% decreased from C2 (C2 : all condition combinations = 23 = 8 test cases)