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

2,951 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,951
On SlideShare
0
From Embeds
0
Number of Embeds
521
Actions
Shares
0
Downloads
52
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

  1. 1. Condition Determination Testing and Coverage withPrepare yourself for the ISTQB exam
  2. 2. Dictionarycondition determination testing: A white box test designtechnique in which test cases are independently affect a decisionoutcome that have been exercised by a test casesuite.100 % condition determination coverage implies 100 %decision condition coveragecondition determination coverage: The percentage of all singlecondition outcomes that independently affect a decision outcomethat have been exercised by a test case suite.100% condition determination coverage implies 100% decisioncondition coverage. From „Certified Tester Foundation Level Syllabus (version 2011)” Copyright © 2013
  3. 3. Rules!!Condition determination testing - the possible combinations of true/falseconditions that can affect decisions (branches) are identified.100% multiple condition coverage implies100% condition determination coveragemodified condition decision coverage (MC/DC) = condition determination coveragemodified multiple condition coverage = condition determination coveragemodified condition decision testing = condition determination testingmodified multiple condition testing = condition determination testing From „Certified Tester Advanced Level Syllabus (version 2007)” Copyright © 2013
  4. 4. Examples with sequential codebs = yan + bq + ad;h = e * bja; There are no conditions to cover.Copyright © 2013
  5. 5. Examples with IFh = 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. 6. Examples with IF ELSEIF (ta && k && a){ p = ucc - wk - g; In order to cover all} modified multipleELSE conditions, you need{ 4 test cases. j = c / cws - ld;}gwe = pzn - wv;Copyright © 2013
  7. 7. Examples with SWITCHol = 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. 8. Examples with WHILEzl = 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. 9. Examples with FORFOR (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. 10. More examplesmz = 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. 11. More exampless = 12;WHILE (dfy && o || s > -1){ tjj = d + ce; In order to cover all s--; modified multiple} conditions, you needcb = -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. 12. More examplesSWITCH (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. 13. More examples with…TestCompetence allows you to generate sample pseudocode to pracitse whiteboxtechniques including condition determination coverage… Copyright © 2013
  14. 14. More examples with…TestCompetence allows you to generate sample pseudocode to pracitse whiteboxtechniques 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. 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. 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. 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. 18. Check also examples for…• Statement testing and coverage >>• Decision testing and coverage >>• Condition testing and coverage >>• Multiple condition testing and coverage >> Copyright © 2013

×