SlideShare a Scribd company logo
Condition Determination Testing and Coverage
                     with




Prepare yourself for the ISTQB exam
Dictionary


condition determination testing: A white box test design
technique in which test cases are independently affect a decision
outcome that have been exercised by a test case
suite.100 % condition determination coverage implies 100 %
decision condition coverage

condition determination coverage: The percentage of all single
condition outcomes that independently affect a decision outcome
that have been exercised by a test case suite.
100% condition determination coverage implies 100% decision
condition coverage.




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




 Copyright © 2013
Rules!!

Condition determination testing - the possible combinations of true/false
conditions that can affect decisions (branches) are identified.


100% multiple condition coverage implies
100% condition determination coverage
modified condition decision coverage (MC/DC) = condition determination coverage
modified multiple condition coverage = condition determination coverage

modified condition decision testing = condition determination testing
modified multiple condition testing = condition determination testing




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


 Copyright © 2013
Examples with sequential code
bs = yan + bq + ad;
h = e * bja;

                       There are no conditions to
                                 cover.




Copyright © 2013
Examples with IF
h = lqy + rh * enh;
IF (cc && t || mva)
{                               In order to cover all
   tw = k - f / j;               modified multiple
}                              conditions, you need 4
                                     test cases.




Copyright © 2013
Examples with IF ELSE
IF (ta &&          k && a)
{
  p = ucc          - wk - g;   In order to cover all
}                                modified multiple
ELSE                           conditions, you need
{                                  4 test cases.
  j = c /          cws - ld;
}
gwe = pzn          - wv;




Copyright © 2013
Examples with SWITCH
ol = or * k + zbo;
SWITCH (hz)
{                    In order to cover all
  CASE 0:              modified multiple
    m = g + pwu;     conditions, you need
    break;               2 test cases.
  CASE 1:
    h = pgm + xh;
    break;
}




Copyright © 2013
Examples with WHILE
zl = ff * br;
vf = -5;
WHILE (o && n || vf < 1)   In order to cover all
{                            modified multiple
  yxx = uum / azc / p;     conditions, you need
  vf++;                        3 test cases.
}




Copyright © 2013
Examples with FOR
FOR (mq = -4; mq > -8; mq--)
{                              In order to cover all
  dsq = q * ry - tqw;            modified multiple
}                              conditions, you need
                                   1 test case.




Copyright © 2013
More examples
mz = e / jxu * du;
ldy = rt + p;
IF (foi || xpm)
{                              In order to cover all
  IF (gt || k || g)              modified multiple
  {                            conditions, you need
    tmr = qjy + w / br;
                                   5 test cases.
  }
  ELSE
  {
    IF (yi || n && bk)
    {
      bwi = tl + be + eae;
    }
    ELSE
    {
      lz = gz - eg * qp;
    }
  }
}
ELSE
{
  sts = ap * yv;
}


Copyright © 2013
More examples
s = 12;
WHILE (dfy && o || s > -1)
{
  tjj = d + ce;                   In order to cover all
  s--;                              modified multiple
}                                 conditions, you need
cb = -8;                              5 test cases.
WHILE (jdh && byw || cb < 1)
{
  x = 14;
  WHILE (dvc && w || x > 8)
  {
    tec = -16;
    WHILE (t && ll || tec < -8)
    {
       n = gp * co + lv;
       tec++;
    }
    x--;
  }
  cb++;
}



Copyright © 2013
More examples
SWITCH (dqw)
{
  CASE 0:
    x = jbv * wkm + suo;       In order to cover all
    break;                       modified multiple
  CASE 1:                      conditions, you need
    zo = lu / ojj / jxc;           3 test cases.
    break;
  DEFAULT:
    ik = fvu + ygq;
    break;
}
IF (y || uq)
{
  rnl = qt - ex + xp;
}




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




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

• Multiple condition testing and
  coverage >>



 Copyright © 2013
Condition Determination Testing and Coverage. ISTQB White-box Techniques with TestCompetence

More Related Content

PPT
Test case development
PPTX
Test case design techniques
PPTX
V model Over View (Software Engineering)
PPTX
Chapter 1 - The Technical Test Analyst Tasks in Risk Based Testing
DOCX
Resume Writing sample
PPTX
Iterative model
PPTX
Test case techniques
PDF
Why I ❤️ Kotlin Multiplatform (and want YOU to also ❤️ Kotlin Multiplatform)
Test case development
Test case design techniques
V model Over View (Software Engineering)
Chapter 1 - The Technical Test Analyst Tasks in Risk Based Testing
Resume Writing sample
Iterative model
Test case techniques
Why I ❤️ Kotlin Multiplatform (and want YOU to also ❤️ Kotlin Multiplatform)

What's hot (20)

PDF
01 nand flash_reliability_notes
PDF
Verilog coding of mux 8 x1
ODP
Presentation on Agile Testing
PDF
VLSI Design Final Project - 32 bit ALU
DOCX
What is v model
PPTX
Test Plan Simplicity
PPTX
Latch and Counter
ODP
Defects in software testing
PPTX
Chapter 2 - White Box Test Techniques
PDF
Software engineering lecture notes
PPTX
Modulo n counter
PDF
Implementation of boolean function through1 multiplexer
PPT
Gray box testing
PPT
Istqb chapter 5
PPTX
V model presentation
PPTX
Advantages and Disadvantages of Digital Electronics | Electrical Engineering
PPT
Black Box Testing
PPT
Syste O CHip Concepts for Students.ppt
PPT
Software Testing Fundamentals
01 nand flash_reliability_notes
Verilog coding of mux 8 x1
Presentation on Agile Testing
VLSI Design Final Project - 32 bit ALU
What is v model
Test Plan Simplicity
Latch and Counter
Defects in software testing
Chapter 2 - White Box Test Techniques
Software engineering lecture notes
Modulo n counter
Implementation of boolean function through1 multiplexer
Gray box testing
Istqb chapter 5
V model presentation
Advantages and Disadvantages of Digital Electronics | Electrical Engineering
Black Box Testing
Syste O CHip Concepts for Students.ppt
Software Testing Fundamentals
Ad

Similar to Condition Determination Testing and Coverage. ISTQB White-box Techniques with TestCompetence (20)

PDF
Decision Testing and Decision Coverage. ISTQB Whitebox techniques with TestCo...
PDF
Statement Testing and Statement Coverage. ISTQB whitebox techniques with Test...
PDF
White Box Testing (Introduction to)
DOC
White box-sol
PPT
Whitebox testing
PPTX
Embedded systems
PDF
C++ Chapter II
PPS
Lesson 2....PPT 1
PDF
White Box Testing
PPTX
Programming fundamentals lecture 2 of c
PDF
Software testing lab manual
PPT
Testing Fundamentals
PDF
09 - Program verification
PPTX
Programming fundamentals lecture 4
PPT
Whitebox
PDF
Decision control
PPT
Software testing ari force institute of tech.
PDF
C in 10 Hours learn programming easily.pdf.pdf
PPTX
C++ lab -4
PDF
Fundamentals of Computer Programming - Flow of Control I
Decision Testing and Decision Coverage. ISTQB Whitebox techniques with TestCo...
Statement Testing and Statement Coverage. ISTQB whitebox techniques with Test...
White Box Testing (Introduction to)
White box-sol
Whitebox testing
Embedded systems
C++ Chapter II
Lesson 2....PPT 1
White Box Testing
Programming fundamentals lecture 2 of c
Software testing lab manual
Testing Fundamentals
09 - Program verification
Programming fundamentals lecture 4
Whitebox
Decision control
Software testing ari force institute of tech.
C in 10 Hours learn programming easily.pdf.pdf
C++ lab -4
Fundamentals of Computer Programming - Flow of Control I
Ad

More from Radoslaw Smilgin (20)

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

Condition Determination Testing and Coverage. ISTQB White-box Techniques with TestCompetence

  • 1. Condition Determination Testing and Coverage with Prepare yourself for the ISTQB exam
  • 2. Dictionary condition determination testing: A white box test design technique in which test cases are independently affect a decision outcome that have been exercised by a test case suite.100 % condition determination coverage implies 100 % decision condition coverage condition determination coverage: The percentage of all single condition outcomes that independently affect a decision outcome that have been exercised by a test case suite. 100% condition determination coverage implies 100% decision condition coverage. From „Certified Tester Foundation Level Syllabus (version 2011)” Copyright © 2013
  • 3. Rules!! Condition determination testing - the possible combinations of true/false conditions that can affect decisions (branches) are identified. 100% multiple condition coverage implies 100% condition determination coverage modified condition decision coverage (MC/DC) = condition determination coverage modified multiple condition coverage = condition determination coverage modified condition decision testing = condition determination testing modified multiple condition testing = condition determination testing From „Certified Tester Advanced Level Syllabus (version 2007)” Copyright © 2013
  • 4. Examples with sequential code bs = yan + bq + ad; h = e * bja; There are no conditions to cover. Copyright © 2013
  • 5. Examples with IF h = lqy + rh * enh; IF (cc && t || mva) { In order to cover all tw = k - f / j; modified multiple } conditions, you need 4 test cases. Copyright © 2013
  • 6. Examples with IF ELSE IF (ta && k && a) { p = ucc - wk - g; In order to cover all } modified multiple ELSE conditions, you need { 4 test cases. j = c / cws - ld; } gwe = pzn - wv; Copyright © 2013
  • 7. Examples with SWITCH ol = or * k + zbo; SWITCH (hz) { In order to cover all CASE 0: modified multiple m = g + pwu; conditions, you need break; 2 test cases. CASE 1: h = pgm + xh; break; } Copyright © 2013
  • 8. Examples with WHILE zl = ff * br; vf = -5; WHILE (o && n || vf < 1) In order to cover all { modified multiple yxx = uum / azc / p; conditions, you need vf++; 3 test cases. } Copyright © 2013
  • 9. Examples with FOR FOR (mq = -4; mq > -8; mq--) { In order to cover all dsq = q * ry - tqw; modified multiple } conditions, you need 1 test case. Copyright © 2013
  • 10. More examples mz = e / jxu * du; ldy = rt + p; IF (foi || xpm) { In order to cover all IF (gt || k || g) modified multiple { conditions, you need tmr = qjy + w / br; 5 test cases. } ELSE { IF (yi || n && bk) { bwi = tl + be + eae; } ELSE { lz = gz - eg * qp; } } } ELSE { sts = ap * yv; } Copyright © 2013
  • 11. More examples s = 12; WHILE (dfy && o || s > -1) { tjj = d + ce; In order to cover all s--; modified multiple } conditions, you need cb = -8; 5 test cases. WHILE (jdh && byw || cb < 1) { x = 14; WHILE (dvc && w || x > 8) { tec = -16; WHILE (t && ll || tec < -8) { n = gp * co + lv; tec++; } x--; } cb++; } Copyright © 2013
  • 12. More examples SWITCH (dqw) { CASE 0: x = jbv * wkm + suo; In order to cover all break; modified multiple CASE 1: conditions, you need zo = lu / ojj / jxc; 3 test cases. break; DEFAULT: ik = fvu + ygq; break; } IF (y || uq) { rnl = qt - ex + xp; } Copyright © 2012
  • 13. More examples with… TestCompetence allows you to generate sample pseudocode to pracitse whitebox techniques including condition determination coverage… Copyright © 2013
  • 14. More examples with… TestCompetence allows you to generate sample pseudocode to pracitse whitebox techniques including condition determination 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
  • 15. 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
  • 16. 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
  • 17. How to get it… Visit TestCompetence.com and get one for only… EURO / USD Unlimited number of exercises during 24 hours! Copyright © 2013
  • 18. Check also examples for… • Statement testing and coverage >> • Decision testing and coverage >> • Condition testing and coverage >> • Multiple condition testing and coverage >> Copyright © 2013