SlideShare a Scribd company logo
1 of 20
Download to read offline
Multiple Condition Testing and Multiple Condition Coverage
                            with




Prepare yourself for the ISTQB exam
Dictionary

multiple condition coverage: The percentage of
combinations of all single condition outcomes within one
statement that have been exercised by a test suite.
100% multiple condition coverage implies 100%
condition determination coverage.

multiple condition testing: A white box test design
technique in which test cases are designed to execute
combinations of single condition outcomes (within one
statement).

                        From „Standard glossary of terms used in Software Testing”




 Copyright © 2013
What is…?!!




Multiple condition testing - all possible combinations of
true/false conditions are identified.




                       From „Certified Tester Advanced Level Syllabus (version 2007)”




 Copyright © 2013
Rules!!

100% multiple condition coverage implies
100% condition determination coverage


branch condition combination coverage = multiple condition coverage
condition combination coverage = multiple condition coverage


branch condition combination testing = multiple condition testing
condition combination testing = multiple condition testing




                         From „Certified Tester Advanced Level Syllabus (version 2007)”


 Copyright © 2013
Examples with sequential code
vwj = v - w * yas;
cxd = h - j * emg;

                       No multiple condition to
                                cover.




Copyright © 2013
Examples with IF
mf = ta / kfa;
IF (g || cn || iyl)
{
  msa = si + rr;            In order to cover all
}                          multiple conditions, you
                             need 8 test cases.




Copyright © 2013
Examples with IF ELSE
IF (nk || c && qq)
{
  j = ce * a;
}                       In order to cover all
ELSE                   multiple conditions, you
{                        need 8 test cases.
  nde = bb - v / zk;
}
djk = d / fgw;




Copyright © 2013
Examples with SWITCH
tr = j - ap;
SWITCH (zk)
{                       In order to cover all
  CASE 0:              multiple conditions, you
    dvp = vev * pot;     need 2 test cases.
    break;
  CASE 1:
    b = ut + e;
    break;
}




Copyright © 2013
Examples with WHILE
e = 4;
WHILE (s || qa || e > -7)
{                            In order to cover all
  kt = ngk * bcw;           multiple conditions, you
  e--;                        need 4 test cases.
}
ot = cg - nmv / r;




Copyright © 2013
Examples with FOR
b = cq + bm;
FOR (htk = 9; htk < 15; htk++)
{                                 In order to cover all
  u = sjj / ol;                  multiple conditions, you
}                                  need 1 test case.




Copyright © 2013
More examples
FOR (gc = 0; gc < 4; gc++)
{
  IF (s || vjq && mp)
  {
                              In order to cover all
    c = gmg / qck;
  }                          multiple conditions, you
}                              need 8 test cases.
ir = k + yx - fj;




Copyright © 2013
More examples
IF (o && da && iwd)
{
  new = i + tnb + xw;
}                           In order to cover all
IF (xc || cwk)             multiple conditions, you
{
                            need 11 test cases.
  xck = nyt + sq;
}
ELSE
{
  IF (mbo || atj || xny)
  {
     iq = uu * a;
  }
  ELSE
  {
     uh = tu * en - vt;
  }
}




Copyright © 2013
More examples
SWITCH (wk)
{
  CASE 0:
    IF (jo && mme)          In order to cover all
    {                      multiple conditions, you
      bmw = w - l / h;
                            need 12 test cases.
    }
    break;
  CASE 1:
    IF (y || cm && td)
    {
      sjc = he / eqw;
    }
    break;
}
ype = d + boy;




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




  Copyright © 2013
More examples with…
TestCompetence allows you to generate sample pseudocode to pracitse whitebox
techniques including multiple condition 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 >>

• Decision testing and coverage >>

• Condition testing and coverage >>

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



 Copyright © 2013
Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence

More Related Content

More from Radoslaw 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
 
testerzy.pl katalog szkoleń praktycznych dla testerów oprogramowania 2015
testerzy.pl katalog szkoleń praktycznych dla testerów oprogramowania 2015testerzy.pl katalog szkoleń praktycznych dla testerów oprogramowania 2015
testerzy.pl katalog szkoleń praktycznych dla testerów oprogramowania 2015Radoslaw Smilgin
 
Ile zarabia tester oprogramowania w 2014?
Ile zarabia tester oprogramowania w 2014?Ile zarabia tester oprogramowania w 2014?
Ile zarabia tester oprogramowania w 2014?Radoslaw Smilgin
 
Zarządzanie jakoscią produktu w oparciu o zadania
Zarządzanie jakoscią produktu w oparciu o zadaniaZarządzanie jakoscią produktu w oparciu o zadania
Zarządzanie jakoscią produktu w oparciu o zadaniaRadoslaw Smilgin
 
Prezentacja firmy 21CN. Wybrane projekty.
Prezentacja firmy 21CN. Wybrane projekty.Prezentacja firmy 21CN. Wybrane projekty.
Prezentacja firmy 21CN. Wybrane projekty.Radoslaw Smilgin
 
TestingCup i Mr Buggy 2014
TestingCup i Mr Buggy 2014TestingCup i Mr Buggy 2014
TestingCup i Mr Buggy 2014Radoslaw Smilgin
 

More from Radoslaw Smilgin (20)

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.
 
testerzy.pl katalog szkoleń praktycznych dla testerów oprogramowania 2015
testerzy.pl katalog szkoleń praktycznych dla testerów oprogramowania 2015testerzy.pl katalog szkoleń praktycznych dla testerów oprogramowania 2015
testerzy.pl katalog szkoleń praktycznych dla testerów oprogramowania 2015
 
Ile zarabia tester oprogramowania w 2014?
Ile zarabia tester oprogramowania w 2014?Ile zarabia tester oprogramowania w 2014?
Ile zarabia tester oprogramowania w 2014?
 
Zarządzanie jakoscią produktu w oparciu o zadania
Zarządzanie jakoscią produktu w oparciu o zadaniaZarządzanie jakoscią produktu w oparciu o zadania
Zarządzanie jakoscią produktu w oparciu o zadania
 
Prezentacja firmy 21CN. Wybrane projekty.
Prezentacja firmy 21CN. Wybrane projekty.Prezentacja firmy 21CN. Wybrane projekty.
Prezentacja firmy 21CN. Wybrane projekty.
 
TestingCup i Mr Buggy 2014
TestingCup i Mr Buggy 2014TestingCup i Mr Buggy 2014
TestingCup i Mr Buggy 2014
 

Recently uploaded

ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsRommel Regala
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 

Recently uploaded (20)

ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World Politics
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 

Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence

  • 1. Multiple Condition Testing and Multiple Condition Coverage with Prepare yourself for the ISTQB exam
  • 2. Dictionary multiple condition coverage: The percentage of combinations of all single condition outcomes within one statement that have been exercised by a test suite. 100% multiple condition coverage implies 100% condition determination coverage. multiple condition testing: A white box test design technique in which test cases are designed to execute combinations of single condition outcomes (within one statement). From „Standard glossary of terms used in Software Testing” Copyright © 2013
  • 3. What is…?!! Multiple condition testing - all possible combinations of true/false conditions are identified. From „Certified Tester Advanced Level Syllabus (version 2007)” Copyright © 2013
  • 4. Rules!! 100% multiple condition coverage implies 100% condition determination coverage branch condition combination coverage = multiple condition coverage condition combination coverage = multiple condition coverage branch condition combination testing = multiple condition testing condition combination testing = multiple condition testing From „Certified Tester Advanced Level Syllabus (version 2007)” Copyright © 2013
  • 5. Examples with sequential code vwj = v - w * yas; cxd = h - j * emg; No multiple condition to cover. Copyright © 2013
  • 6. Examples with IF mf = ta / kfa; IF (g || cn || iyl) { msa = si + rr; In order to cover all } multiple conditions, you need 8 test cases. Copyright © 2013
  • 7. Examples with IF ELSE IF (nk || c && qq) { j = ce * a; } In order to cover all ELSE multiple conditions, you { need 8 test cases. nde = bb - v / zk; } djk = d / fgw; Copyright © 2013
  • 8. Examples with SWITCH tr = j - ap; SWITCH (zk) { In order to cover all CASE 0: multiple conditions, you dvp = vev * pot; need 2 test cases. break; CASE 1: b = ut + e; break; } Copyright © 2013
  • 9. Examples with WHILE e = 4; WHILE (s || qa || e > -7) { In order to cover all kt = ngk * bcw; multiple conditions, you e--; need 4 test cases. } ot = cg - nmv / r; Copyright © 2013
  • 10. Examples with FOR b = cq + bm; FOR (htk = 9; htk < 15; htk++) { In order to cover all u = sjj / ol; multiple conditions, you } need 1 test case. Copyright © 2013
  • 11. More examples FOR (gc = 0; gc < 4; gc++) { IF (s || vjq && mp) { In order to cover all c = gmg / qck; } multiple conditions, you } need 8 test cases. ir = k + yx - fj; Copyright © 2013
  • 12. More examples IF (o && da && iwd) { new = i + tnb + xw; } In order to cover all IF (xc || cwk) multiple conditions, you { need 11 test cases. xck = nyt + sq; } ELSE { IF (mbo || atj || xny) { iq = uu * a; } ELSE { uh = tu * en - vt; } } Copyright © 2013
  • 13. More examples SWITCH (wk) { CASE 0: IF (jo && mme) In order to cover all { multiple conditions, you bmw = w - l / h; need 12 test cases. } break; CASE 1: IF (y || cm && td) { sjc = he / eqw; } break; } ype = d + boy; Copyright © 2012
  • 14. More examples with… TestCompetence allows you to generate sample pseudocode to pracitse whitebox techniques including multiple condition coverage… Copyright © 2013
  • 15. More examples with… TestCompetence allows you to generate sample pseudocode to pracitse whitebox techniques including multiple condition 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
  • 16. 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
  • 17. 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
  • 18. How to get it… Visit TestCompetence.com and get one for only… EURO / USD Unlimited number of exercises during 24 hours! Copyright © 2013
  • 19. Check also examples for… • Statement testing and coverage >> • Decision testing and coverage >> • Condition testing and coverage >> • Modified condition decision combination (MC/CD) coverage >> Copyright © 2013