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

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

  • 1.
    Condition Determination Testingand 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 sequentialcode 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 IFELSE 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… TestCompetenceallows you to generate sample pseudocode to pracitse whitebox techniques including condition determination coverage… Copyright © 2013
  • 14.
    More examples with… TestCompetenceallows 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… Youget 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… Youget 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 getit… Visit TestCompetence.com and get one for only… EURO / USD Unlimited number of exercises during 24 hours! Copyright © 2013
  • 18.
    Check also examplesfor… • Statement testing and coverage >> • Decision testing and coverage >> • Condition testing and coverage >> • Multiple condition testing and coverage >> Copyright © 2013