SlideShare uma empresa Scribd logo
1 de 20
Baixar para ler 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

Mais conteúdo relacionado

Mais de Radoslaw Smilgin

AutoMagicTest – automatyzacja bez kodowania?
AutoMagicTest – automatyzacja bez kodowania? AutoMagicTest – automatyzacja bez kodowania?
AutoMagicTest – automatyzacja bez kodowania?
Radoslaw Smilgin
 

Mais de 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
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

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