SlideShare a Scribd company logo
1 of 21
Download to read offline
Decision Testing and Decision Coverage
                     with




Prepare yourself for the ISTQB exam
Dictionary
branch: A basic block that can be selected for execution based on
a program construct in which one of two or more alternative
program paths is available, e.g. case, jump, go to, if-then- else.

branch coverage: The percentage of branches that have been
exercised by a test suite. 100% branch coverage implies both 100%
decision coverage and 100% statement coverage.

branch testing: A white box test design technique in which test
cases are designed to execute branches.




                          From „Standard glossary of terms used in Software Testing”




 Copyright © 2013
Dictionary
decision: A program point at which the control flow has two or
more alternative routes. A node with two or more links to separate
branches.

decision coverage: The percentage of decision outcomes that
have been exercised by a test suite. 100% decision coverage
implies both 100% branch coverage and 100% statement coverage.

decision testing: A white box test design technique in which test
cases are designed to execute decision outcomes.

decision outcome: The result of a decision (which therefore
determines the branches to be taken).




                          From „Standard glossary of terms used in Software Testing”



 Copyright © 2013
What is…?
Decision coverage, related to branch testing, is the
assessment of the percentage of decision outcomes
(e.g. the True and False options of an IF statement) that
have been exercised by a test case suite. Decision
testing derives test cases to execute specific decision
outcomes, normally to increase decision coverage.

Decision testing is a form of control flow testing as it
generates a specific flow of control through the decision
points. Decision coverage is stronger than statement
coverage: 100% decision coverage guarantees 100%
statement coverage, but not vice versa.


                      From „Certified Tester Foundation Level Syllabus (version 2011)”


 Copyright © 2013
Rules!




100% branch coverage implies 100%
decision coverage.

Branch testing = arc testing = algorithm testing



                   From „Certified Tester Foundation Level Syllabus (version 2011)”


Copyright © 2013
Examples with sequential code
sep = az * wn;
csc = dvz + isc + d;

                       There are no decisions to
                                 take.




Copyright © 2013
Examples with IF
IF (vz)
{
  fuf = azh - e;            In order to cover all
}                         decisions and branches,
ic = pcg + icn / n;               you need
                                2 test cases.




Copyright © 2013
Examples with IF ELSE
IF (lfn)
{
  j = ag + vy - f;     In order to cover all
}                    decisions and branches,
ELSE                         you need
{                          2 test cases.
  l = ar * hkh;
}
vgd = i * qla / p;




Copyright © 2013
Examples with SWITCH
SWITCH (i)
{
  CASE 0:                In order to cover all
    krg = z - kz;      decisions and branches,
    break;                     you need
  CASE 1:                    2 test cases.
    tob = zrc * cxd;
    break;
}
rl = gs / dl * s;




Copyright © 2013
Examples with WHILE
uyn = -9;
WHILE (bo || uyn < -3)
{                          In order to cover all
  qx = q - ba / i;       decisions and branches,
  uyn++;                         you need
}                               1 test case.
moa = 4;
WHILE (ei || moa > -3)
{
  h = udi * cj;
  moa--;
}




Copyright © 2013
Examples with FOR
FOR (a = 5; a > -5; a--)
{
  b = c + 1;                 In order to cover all
}                          decisions and branches,
                                   you need
                                  1 test case.




Copyright © 2013
More examples
IF (u)
{
  IF (s)
  {                          In order to cover all
     l = el * n * iq;      decisions and branches,
  }                                you need
  ELSE                           4 test cases.
  {
     fz = ga / ca + vd;
  }
}
ELSE
{
  IF (upd)
  {
     w = tvo / x + y;
  }
  ELSE
  {
     grm = neq + ads;
  }
}
e = lcu + b;


Copyright © 2013
More examples
h = -4;
WHILE (ww || h < 6)
{                            In order to cover all
  zx = 1;                  decisions and branches,
  WHILE (iya || zx > -9)           you need
  {                              1 test cases.
    hm = am * x;
    zx--;
  }
  h++;
}
ye = 7;
WHILE (iob || ye > 2)
{
  boi = nk - u + ijy;
  ye--;
}



Copyright © 2013
More examples
vc = 8;
WHILE (xa || vc > -2)
{                                    In order to cover all
  FOR (i = 0; i < 2; i++)          decisions and branches,
  {                                        you need
    FOR (qgn = 1; qgn > -2; qgn--)       1 test cases.
    {
      p = u * ufi;
    }
  }
  vc--;
}
FOR (ij = -2; ij > -12; ij--)
{
  pqr = n + fdq / jx;
}




Copyright © 2012
More examples with…
TestCompetence allows you to generate sample pseudocode to pracitse whitebox
techniques including statement coverage…




  Copyright © 2013
More examples with…
TestCompetence allows you to generate sample pseudocode to pracitse whitebox
techniques including decision coverage…

                                                                  Choose the
                                                                   maximum
                                                                   number of
     Choose the                                                   instructions
       level of                                                    per level.
        nested
     statements.                                                    Choose the
                                                                       type of
      Choose the                                                     coverage
        type of                                                         from:
      statement.                                                    statement,
                                                                      decision,
                                                                      codition,
                                                                      multiple
                                                                     condition,
    GENERATE                                                       and modified
   your exercise.                                                    condition.



  Copyright © 2013
More examples with…
You get pseudocode and sample answers just like during a regular ISTQB exam.
Choose the right answer.




     Pseudocode




                                                                        Choose
                                                                       an answer.




  Copyright © 2013
More examples with…
You get pseudocode and sample answers just like during a regular ISTQB exam.
Choose the right answer.




     Pseudocode



                                                                      Your answer




                                                                     Right answer




  Copyright © 2013
How to get it…
Visit TestCompetence.com and get one for only…




                     EURO   /                    USD


       Unlimited number of exercises during 24 hours!




Copyright © 2013
Check also examples for…
• Statement testing and coverage >>

• Condition testing and coverage >>

• Multiple condition testing and
  coverage >>

• Modified condition decision
  combination (MC/CD) coverage >>


 Copyright © 2013
Decision Testing and Decision Coverage. ISTQB Whitebox techniques with TestCompetence

More Related Content

What's hot

Testing concepts [3] - Software Testing Techniques (CIS640)
Testing concepts [3] - Software Testing Techniques (CIS640)Testing concepts [3] - Software Testing Techniques (CIS640)
Testing concepts [3] - Software Testing Techniques (CIS640)Venkatesh Prasad Ranganath
 
Non Functional Testing
Non Functional TestingNon Functional Testing
Non Functional TestingNishant Worah
 
Software Testing Process
Software Testing ProcessSoftware Testing Process
Software Testing Processguest1f2740
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1Raghu Kiran
 
Keyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkKeyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkMikhail Subach
 
How To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaHow To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaEdureka!
 
What is Test Plan? Edureka
What is Test Plan? EdurekaWhat is Test Plan? Edureka
What is Test Plan? EdurekaEdureka!
 
Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Mani Kanth
 
Test case design techniques
Test case design techniquesTest case design techniques
Test case design techniquesAshutosh Garg
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual TestingDirecti Group
 

What's hot (20)

Testing
TestingTesting
Testing
 
Testing concepts [3] - Software Testing Techniques (CIS640)
Testing concepts [3] - Software Testing Techniques (CIS640)Testing concepts [3] - Software Testing Techniques (CIS640)
Testing concepts [3] - Software Testing Techniques (CIS640)
 
SOFTWARE TESTING
SOFTWARE TESTINGSOFTWARE TESTING
SOFTWARE TESTING
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Unit Testing
Unit TestingUnit Testing
Unit Testing
 
Non Functional Testing
Non Functional TestingNon Functional Testing
Non Functional Testing
 
Software Testing Process
Software Testing ProcessSoftware Testing Process
Software Testing Process
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1
 
Keyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkKeyword-driven Test Automation Framework
Keyword-driven Test Automation Framework
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Chapter 5 - Test Management
Chapter 5 - Test ManagementChapter 5 - Test Management
Chapter 5 - Test Management
 
How To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaHow To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | Edureka
 
Manual testing ppt
Manual testing pptManual testing ppt
Manual testing ppt
 
What is Test Plan? Edureka
What is Test Plan? EdurekaWhat is Test Plan? Edureka
What is Test Plan? Edureka
 
Code coverage
Code coverageCode coverage
Code coverage
 
TestNG Framework
TestNG Framework TestNG Framework
TestNG Framework
 
Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)
 
Test case design techniques
Test case design techniquesTest case design techniques
Test case design techniques
 
ISTQB Test Process
ISTQB Test ProcessISTQB Test Process
ISTQB Test Process
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual Testing
 

Similar to Decision Testing and Decision Coverage. ISTQB Whitebox techniques with TestCompetence

Condition Determination Testing and Coverage. ISTQB White-box Techniques with...
Condition Determination Testing and Coverage. ISTQB White-box Techniques with...Condition Determination Testing and Coverage. ISTQB White-box Techniques with...
Condition Determination Testing and Coverage. ISTQB White-box Techniques with...Radoslaw Smilgin
 
Test design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesTest design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesKhuong Nguyen
 
Effective and pragmatic test driven development by Andrew Rendell, Principal ...
Effective and pragmatic test driven development by Andrew Rendell, Principal ...Effective and pragmatic test driven development by Andrew Rendell, Principal ...
Effective and pragmatic test driven development by Andrew Rendell, Principal ...Valtech UK
 
White-box Testing: When Quality Really Matters
White-box Testing: When Quality Really MattersWhite-box Testing: When Quality Really Matters
White-box Testing: When Quality Really MattersTechWell
 
ScioTalks | Coverage Based Testing
ScioTalks | Coverage Based TestingScioTalks | Coverage Based Testing
ScioTalks | Coverage Based TestingScio Consulting
 
Cprogrammingprogramcontrols
CprogrammingprogramcontrolsCprogrammingprogramcontrols
Cprogrammingprogramcontrolsteach4uin
 
Finding Bugs, Fixing Bugs, Preventing Bugs - Exploiting Automated Tests to In...
Finding Bugs, Fixing Bugs, Preventing Bugs - Exploiting Automated Tests to In...Finding Bugs, Fixing Bugs, Preventing Bugs - Exploiting Automated Tests to In...
Finding Bugs, Fixing Bugs, Preventing Bugs - Exploiting Automated Tests to In...University of Antwerp
 
control statements
control statementscontrol statements
control statementsAzeem Sultan
 
lecture 6 bca 1 year-1.pptx
lecture 6 bca 1 year-1.pptxlecture 6 bca 1 year-1.pptx
lecture 6 bca 1 year-1.pptxclassall
 
Simple rules for building robust machine learning models
Simple rules for building robust machine learning modelsSimple rules for building robust machine learning models
Simple rules for building robust machine learning modelsKyriakos Chatzidimitriou
 
Tools and techniques of code coverage testing
Tools and techniques of code coverage testingTools and techniques of code coverage testing
Tools and techniques of code coverage testingIAEME Publication
 
Introduction to specification based test design techniques
Introduction to specification based test design techniquesIntroduction to specification based test design techniques
Introduction to specification based test design techniquesYogindernath Gupta
 
Core Java Programming Language (JSE) : Chapter IV - Expressions and Flow Cont...
Core Java Programming Language (JSE) : Chapter IV - Expressions and Flow Cont...Core Java Programming Language (JSE) : Chapter IV - Expressions and Flow Cont...
Core Java Programming Language (JSE) : Chapter IV - Expressions and Flow Cont...WebStackAcademy
 
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ ykblckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ ykSMayankSharma
 
Introduction to computer programming (C)-CSC1205_Lec5_Flow control
Introduction to computer programming (C)-CSC1205_Lec5_Flow controlIntroduction to computer programming (C)-CSC1205_Lec5_Flow control
Introduction to computer programming (C)-CSC1205_Lec5_Flow controlENGWAU TONNY
 

Similar to Decision Testing and Decision Coverage. ISTQB Whitebox techniques with TestCompetence (20)

Condition Determination Testing and Coverage. ISTQB White-box Techniques with...
Condition Determination Testing and Coverage. ISTQB White-box Techniques with...Condition Determination Testing and Coverage. ISTQB White-box Techniques with...
Condition Determination Testing and Coverage. ISTQB White-box Techniques with...
 
Test design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesTest design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniques
 
Rtlws2013
Rtlws2013Rtlws2013
Rtlws2013
 
Effective and pragmatic test driven development by Andrew Rendell, Principal ...
Effective and pragmatic test driven development by Andrew Rendell, Principal ...Effective and pragmatic test driven development by Andrew Rendell, Principal ...
Effective and pragmatic test driven development by Andrew Rendell, Principal ...
 
White-box Testing: When Quality Really Matters
White-box Testing: When Quality Really MattersWhite-box Testing: When Quality Really Matters
White-box Testing: When Quality Really Matters
 
ScioTalks | Coverage Based Testing
ScioTalks | Coverage Based TestingScioTalks | Coverage Based Testing
ScioTalks | Coverage Based Testing
 
Cprogrammingprogramcontrols
CprogrammingprogramcontrolsCprogrammingprogramcontrols
Cprogrammingprogramcontrols
 
Finding Bugs, Fixing Bugs, Preventing Bugs - Exploiting Automated Tests to In...
Finding Bugs, Fixing Bugs, Preventing Bugs - Exploiting Automated Tests to In...Finding Bugs, Fixing Bugs, Preventing Bugs - Exploiting Automated Tests to In...
Finding Bugs, Fixing Bugs, Preventing Bugs - Exploiting Automated Tests to In...
 
control statements
control statementscontrol statements
control statements
 
lecture 6 bca 1 year-1.pptx
lecture 6 bca 1 year-1.pptxlecture 6 bca 1 year-1.pptx
lecture 6 bca 1 year-1.pptx
 
SWE-6 TESTING.pptx
SWE-6 TESTING.pptxSWE-6 TESTING.pptx
SWE-6 TESTING.pptx
 
Simple rules for building robust machine learning models
Simple rules for building robust machine learning modelsSimple rules for building robust machine learning models
Simple rules for building robust machine learning models
 
Clean code
Clean codeClean code
Clean code
 
Tools and techniques of code coverage testing
Tools and techniques of code coverage testingTools and techniques of code coverage testing
Tools and techniques of code coverage testing
 
Introduction to specification based test design techniques
Introduction to specification based test design techniquesIntroduction to specification based test design techniques
Introduction to specification based test design techniques
 
Core Java Programming Language (JSE) : Chapter IV - Expressions and Flow Cont...
Core Java Programming Language (JSE) : Chapter IV - Expressions and Flow Cont...Core Java Programming Language (JSE) : Chapter IV - Expressions and Flow Cont...
Core Java Programming Language (JSE) : Chapter IV - Expressions and Flow Cont...
 
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ ykblckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
 
Lesson 2....PPT 1
Lesson 2....PPT 1Lesson 2....PPT 1
Lesson 2....PPT 1
 
Introduction to computer programming (C)-CSC1205_Lec5_Flow control
Introduction to computer programming (C)-CSC1205_Lec5_Flow controlIntroduction to computer programming (C)-CSC1205_Lec5_Flow control
Introduction to computer programming (C)-CSC1205_Lec5_Flow control
 
Testing
TestingTesting
Testing
 

More from Radoslaw Smilgin

Automatyzacja w praktyce. Praktyka automatyzacji
Automatyzacja w praktyce. Praktyka automatyzacjiAutomatyzacja w praktyce. Praktyka automatyzacji
Automatyzacja w praktyce. Praktyka automatyzacjiRadoslaw Smilgin
 
Accessibility for all platforms and all people
Accessibility for all platforms and all peopleAccessibility for all platforms and all people
Accessibility for all platforms and all peopleRadoslaw Smilgin
 
Transformacja od formalnego do eksploracyjnego testowania. Moja historia
Transformacja od formalnego do eksploracyjnego testowania. Moja historiaTransformacja od formalnego do eksploracyjnego testowania. Moja historia
Transformacja od formalnego do eksploracyjnego testowania. Moja historiaRadoslaw Smilgin
 
Testerska edukacja dzisiaj
Testerska edukacja dzisiajTesterska edukacja dzisiaj
Testerska edukacja dzisiajRadoslaw Smilgin
 
Tester eksploracyjny. Ostatni zawód na świecie.
Tester eksploracyjny. Ostatni zawód na świecie.Tester eksploracyjny. Ostatni zawód na świecie.
Tester eksploracyjny. Ostatni zawód na świecie.Radoslaw Smilgin
 
Eksploracja w kulturze Agile i DevOps czyli o zwinnym testowaniu eksploracyjnym
Eksploracja w kulturze Agile i DevOps czyli o zwinnym testowaniu eksploracyjnymEksploracja w kulturze Agile i DevOps czyli o zwinnym testowaniu eksploracyjnym
Eksploracja w kulturze Agile i DevOps czyli o zwinnym testowaniu eksploracyjnymRadoslaw Smilgin
 
Testy eksploracyjne. Wyższy poziom testowania.
Testy eksploracyjne. Wyższy poziom testowania.Testy eksploracyjne. Wyższy poziom testowania.
Testy eksploracyjne. Wyższy poziom testowania.Radoslaw Smilgin
 
Testy eksploracyjne - podstawy i przykłady
Testy eksploracyjne - podstawy i przykładyTesty eksploracyjne - podstawy i przykłady
Testy eksploracyjne - podstawy i przykładyRadoslaw Smilgin
 
TestingCup 2017 - historia i nowości
TestingCup 2017 - historia i nowościTestingCup 2017 - historia i nowości
TestingCup 2017 - historia i nowościRadoslaw Smilgin
 
60 minut testowania - czyli co tester może osiągnąć w jedną godzinę przy pomo...
60 minut testowania - czyli co tester może osiągnąć w jedną godzinę przy pomo...60 minut testowania - czyli co tester może osiągnąć w jedną godzinę przy pomo...
60 minut testowania - czyli co tester może osiągnąć w jedną godzinę przy pomo...Radoslaw Smilgin
 
Context Driven School of testing w prostych przykładach
Context Driven School of testing w prostych przykładachContext Driven School of testing w prostych przykładach
Context Driven School of testing w prostych przykładachRadoslaw Smilgin
 
TestArena Instrukcja obsługi dla wersji 3.0.929
TestArena Instrukcja obsługi dla wersji 3.0.929TestArena Instrukcja obsługi dla wersji 3.0.929
TestArena Instrukcja obsługi dla wersji 3.0.929Radoslaw Smilgin
 
Zawód tester - spotkanie z autorem książki
Zawód tester - spotkanie z autorem książkiZawód tester - spotkanie z autorem książki
Zawód tester - spotkanie z autorem książkiRadoslaw Smilgin
 
AutoMagicTest – automatyzacja bez kodowania?
AutoMagicTest – automatyzacja bez kodowania? AutoMagicTest – automatyzacja bez kodowania?
AutoMagicTest – automatyzacja bez kodowania? Radoslaw Smilgin
 
Continuous performance management with Gatling
Continuous performance management with GatlingContinuous performance management with Gatling
Continuous performance management with GatlingRadoslaw Smilgin
 
Budowanie biznesu w testerskiej niszy
Budowanie biznesu w testerskiej niszy Budowanie biznesu w testerskiej niszy
Budowanie biznesu w testerskiej niszy Radoslaw Smilgin
 
Zawód testerka. Proste drogi do zawodu.
Zawód testerka. Proste drogi do zawodu.Zawód testerka. Proste drogi do zawodu.
Zawód testerka. Proste drogi do zawodu.Radoslaw Smilgin
 
TestingCup 2015 - prezentacja wprowadzająca do zawodów.
TestingCup 2015 - prezentacja wprowadzająca do zawodów.TestingCup 2015 - prezentacja wprowadzająca do zawodów.
TestingCup 2015 - prezentacja wprowadzająca do zawodów.Radoslaw Smilgin
 

More from Radoslaw Smilgin (20)

Automatyzacja w praktyce. Praktyka automatyzacji
Automatyzacja w praktyce. Praktyka automatyzacjiAutomatyzacja w praktyce. Praktyka automatyzacji
Automatyzacja w praktyce. Praktyka automatyzacji
 
Accessibility for all platforms and all people
Accessibility for all platforms and all peopleAccessibility for all platforms and all people
Accessibility for all platforms and all people
 
Kwestionowanie ISTQB
Kwestionowanie ISTQBKwestionowanie ISTQB
Kwestionowanie ISTQB
 
Transformacja od formalnego do eksploracyjnego testowania. Moja historia
Transformacja od formalnego do eksploracyjnego testowania. Moja historiaTransformacja od formalnego do eksploracyjnego testowania. Moja historia
Transformacja od formalnego do eksploracyjnego testowania. Moja historia
 
Testerska edukacja dzisiaj
Testerska edukacja dzisiajTesterska edukacja dzisiaj
Testerska edukacja dzisiaj
 
Tester eksploracyjny. Ostatni zawód na świecie.
Tester eksploracyjny. Ostatni zawód na świecie.Tester eksploracyjny. Ostatni zawód na świecie.
Tester eksploracyjny. Ostatni zawód na świecie.
 
Eksploracja w kulturze Agile i DevOps czyli o zwinnym testowaniu eksploracyjnym
Eksploracja w kulturze Agile i DevOps czyli o zwinnym testowaniu eksploracyjnymEksploracja w kulturze Agile i DevOps czyli o zwinnym testowaniu eksploracyjnym
Eksploracja w kulturze Agile i DevOps czyli o zwinnym testowaniu eksploracyjnym
 
Testy eksploracyjne. Wyższy poziom testowania.
Testy eksploracyjne. Wyższy poziom testowania.Testy eksploracyjne. Wyższy poziom testowania.
Testy eksploracyjne. Wyższy poziom testowania.
 
Testy eksploracyjne - podstawy i przykłady
Testy eksploracyjne - podstawy i przykładyTesty eksploracyjne - podstawy i przykłady
Testy eksploracyjne - podstawy i przykłady
 
TestingCup 2017 - historia i nowości
TestingCup 2017 - historia i nowościTestingCup 2017 - historia i nowości
TestingCup 2017 - historia i nowości
 
60 minut testowania - czyli co tester może osiągnąć w jedną godzinę przy pomo...
60 minut testowania - czyli co tester może osiągnąć w jedną godzinę przy pomo...60 minut testowania - czyli co tester może osiągnąć w jedną godzinę przy pomo...
60 minut testowania - czyli co tester może osiągnąć w jedną godzinę przy pomo...
 
TestingCup 2016
TestingCup 2016TestingCup 2016
TestingCup 2016
 
Context Driven School of testing w prostych przykładach
Context Driven School of testing w prostych przykładachContext Driven School of testing w prostych przykładach
Context Driven School of testing w prostych przykładach
 
TestArena Instrukcja obsługi dla wersji 3.0.929
TestArena Instrukcja obsługi dla wersji 3.0.929TestArena Instrukcja obsługi dla wersji 3.0.929
TestArena Instrukcja obsługi dla wersji 3.0.929
 
Zawód tester - spotkanie z autorem książki
Zawód tester - spotkanie z autorem książkiZawód tester - spotkanie z autorem książki
Zawód tester - spotkanie z autorem książki
 
AutoMagicTest – automatyzacja bez kodowania?
AutoMagicTest – automatyzacja bez kodowania? AutoMagicTest – automatyzacja bez kodowania?
AutoMagicTest – automatyzacja bez kodowania?
 
Continuous performance management with Gatling
Continuous performance management with GatlingContinuous performance management with Gatling
Continuous performance management with Gatling
 
Budowanie biznesu w testerskiej niszy
Budowanie biznesu w testerskiej niszy Budowanie biznesu w testerskiej niszy
Budowanie biznesu w testerskiej niszy
 
Zawód testerka. Proste drogi do zawodu.
Zawód testerka. Proste drogi do zawodu.Zawód testerka. Proste drogi do zawodu.
Zawód testerka. Proste drogi do zawodu.
 
TestingCup 2015 - prezentacja wprowadzająca do zawodów.
TestingCup 2015 - prezentacja wprowadzająca do zawodów.TestingCup 2015 - prezentacja wprowadzająca do zawodów.
TestingCup 2015 - prezentacja wprowadzająca do zawodów.
 

Recently uploaded

AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 

Recently uploaded (20)

AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 

Decision Testing and Decision Coverage. ISTQB Whitebox techniques with TestCompetence

  • 1. Decision Testing and Decision Coverage with Prepare yourself for the ISTQB exam
  • 2. Dictionary branch: A basic block that can be selected for execution based on a program construct in which one of two or more alternative program paths is available, e.g. case, jump, go to, if-then- else. branch coverage: The percentage of branches that have been exercised by a test suite. 100% branch coverage implies both 100% decision coverage and 100% statement coverage. branch testing: A white box test design technique in which test cases are designed to execute branches. From „Standard glossary of terms used in Software Testing” Copyright © 2013
  • 3. Dictionary decision: A program point at which the control flow has two or more alternative routes. A node with two or more links to separate branches. decision coverage: The percentage of decision outcomes that have been exercised by a test suite. 100% decision coverage implies both 100% branch coverage and 100% statement coverage. decision testing: A white box test design technique in which test cases are designed to execute decision outcomes. decision outcome: The result of a decision (which therefore determines the branches to be taken). From „Standard glossary of terms used in Software Testing” Copyright © 2013
  • 4. What is…? Decision coverage, related to branch testing, is the assessment of the percentage of decision outcomes (e.g. the True and False options of an IF statement) that have been exercised by a test case suite. Decision testing derives test cases to execute specific decision outcomes, normally to increase decision coverage. Decision testing is a form of control flow testing as it generates a specific flow of control through the decision points. Decision coverage is stronger than statement coverage: 100% decision coverage guarantees 100% statement coverage, but not vice versa. From „Certified Tester Foundation Level Syllabus (version 2011)” Copyright © 2013
  • 5. Rules! 100% branch coverage implies 100% decision coverage. Branch testing = arc testing = algorithm testing From „Certified Tester Foundation Level Syllabus (version 2011)” Copyright © 2013
  • 6. Examples with sequential code sep = az * wn; csc = dvz + isc + d; There are no decisions to take. Copyright © 2013
  • 7. Examples with IF IF (vz) { fuf = azh - e; In order to cover all } decisions and branches, ic = pcg + icn / n; you need 2 test cases. Copyright © 2013
  • 8. Examples with IF ELSE IF (lfn) { j = ag + vy - f; In order to cover all } decisions and branches, ELSE you need { 2 test cases. l = ar * hkh; } vgd = i * qla / p; Copyright © 2013
  • 9. Examples with SWITCH SWITCH (i) { CASE 0: In order to cover all krg = z - kz; decisions and branches, break; you need CASE 1: 2 test cases. tob = zrc * cxd; break; } rl = gs / dl * s; Copyright © 2013
  • 10. Examples with WHILE uyn = -9; WHILE (bo || uyn < -3) { In order to cover all qx = q - ba / i; decisions and branches, uyn++; you need } 1 test case. moa = 4; WHILE (ei || moa > -3) { h = udi * cj; moa--; } Copyright © 2013
  • 11. Examples with FOR FOR (a = 5; a > -5; a--) { b = c + 1; In order to cover all } decisions and branches, you need 1 test case. Copyright © 2013
  • 12. More examples IF (u) { IF (s) { In order to cover all l = el * n * iq; decisions and branches, } you need ELSE 4 test cases. { fz = ga / ca + vd; } } ELSE { IF (upd) { w = tvo / x + y; } ELSE { grm = neq + ads; } } e = lcu + b; Copyright © 2013
  • 13. More examples h = -4; WHILE (ww || h < 6) { In order to cover all zx = 1; decisions and branches, WHILE (iya || zx > -9) you need { 1 test cases. hm = am * x; zx--; } h++; } ye = 7; WHILE (iob || ye > 2) { boi = nk - u + ijy; ye--; } Copyright © 2013
  • 14. More examples vc = 8; WHILE (xa || vc > -2) { In order to cover all FOR (i = 0; i < 2; i++) decisions and branches, { you need FOR (qgn = 1; qgn > -2; qgn--) 1 test cases. { p = u * ufi; } } vc--; } FOR (ij = -2; ij > -12; ij--) { pqr = n + fdq / jx; } Copyright © 2012
  • 15. More examples with… TestCompetence allows you to generate sample pseudocode to pracitse whitebox techniques including statement coverage… Copyright © 2013
  • 16. More examples with… TestCompetence allows you to generate sample pseudocode to pracitse whitebox techniques including decision coverage… Choose the maximum number of Choose the instructions level of per level. nested statements. Choose the type of Choose the coverage type of from: statement. statement, decision, codition, multiple condition, GENERATE and modified your exercise. condition. Copyright © 2013
  • 17. More examples with… You get pseudocode and sample answers just like during a regular ISTQB exam. Choose the right answer. Pseudocode Choose an answer. Copyright © 2013
  • 18. More examples with… You get pseudocode and sample answers just like during a regular ISTQB exam. Choose the right answer. Pseudocode Your answer Right answer Copyright © 2013
  • 19. How to get it… Visit TestCompetence.com and get one for only… EURO / USD Unlimited number of exercises during 24 hours! Copyright © 2013
  • 20. Check also examples for… • Statement testing and coverage >> • Condition testing and coverage >> • Multiple condition testing and coverage >> • Modified condition decision combination (MC/CD) coverage >> Copyright © 2013

Editor's Notes

  1. Do umieszczenie w: http://www.allinterview.com/showanswers/56878.html http://www.youtube.com/watch?v=cq2lnvjtv3E http://www.youtube.com/watch?v=wLINA-Gj7eA http://www.youtube.com/watch?v=n_K3muzE21w http://www.youtube.com/watch?v=-lmVCXjcukA http://www.youtube.com/watch?v=RhlzjrGgrGU Goldenline (grupy, tematy): ISTQB LinkedIN Groups ISTQB i Whitebox
  2. http://www.istqb.org/downloads/finish/20/101.html http://www.istqb.org/downloads/finish/16/15.html
  3. http://www.istqb.org/downloads/finish/20/101.html http://www.istqb.org/downloads/finish/16/15.html