Decision Testing and Decision Coverage. ISTQB Whitebox techniques with TestCompetence

18,063 views
18,006 views

Published on

Whitebox techniques - Decision Testing and Decision Coverage - prepare yourself for the ISTQB exam with TestCompetence.

Published in: Education
1 Comment
6 Likes
Statistics
Notes
  • Slide 7 the answer should be 1 TC is enough for 100 BC or DC.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
18,063
On SlideShare
0
From Embeds
0
Number of Embeds
2,561
Actions
Shares
0
Downloads
208
Comments
1
Likes
6
Embeds 0
No embeds

No notes for slide
  • Do umieszczenie w: http://www.allinterview.com/showanswers/56878.html http://www.youtube.com/watch?v=cq2lnvjtv3E http://www.youtube.com/watch?v=wLINA-Gj7eA http://www.youtube.com/watch?v=n_K3muzE21w http://www.youtube.com/watch?v=-lmVCXjcukA http://www.youtube.com/watch?v=RhlzjrGgrGU Goldenline (grupy, tematy): ISTQB LinkedIN Groups ISTQB i Whitebox
  • http://www.istqb.org/downloads/finish/20/101.html http://www.istqb.org/downloads/finish/16/15.html
  • http://www.istqb.org/downloads/finish/20/101.html http://www.istqb.org/downloads/finish/16/15.html
  • Decision Testing and Decision Coverage. ISTQB Whitebox techniques with TestCompetence

    1. 1. Decision Testing and Decision Coverage withPrepare yourself for the ISTQB exam
    2. 2. Dictionarybranch: A basic block that can be selected for execution based ona program construct in which one of two or more alternativeprogram paths is available, e.g. case, jump, go to, if-then- else.branch coverage: The percentage of branches that have beenexercised by a test suite. 100% branch coverage implies both 100%decision coverage and 100% statement coverage.branch testing: A white box test design technique in which testcases are designed to execute branches. From „Standard glossary of terms used in Software Testing” Copyright © 2013
    3. 3. Dictionarydecision: A program point at which the control flow has two ormore alternative routes. A node with two or more links to separatebranches.decision coverage: The percentage of decision outcomes thathave been exercised by a test suite. 100% decision coverageimplies both 100% branch coverage and 100% statement coverage.decision testing: A white box test design technique in which testcases are designed to execute decision outcomes.decision outcome: The result of a decision (which thereforedetermines the branches to be taken). From „Standard glossary of terms used in Software Testing” Copyright © 2013
    4. 4. What is…?Decision coverage, related to branch testing, is theassessment of the percentage of decision outcomes(e.g. the True and False options of an IF statement) thathave been exercised by a test case suite. Decisiontesting derives test cases to execute specific decisionoutcomes, normally to increase decision coverage.Decision testing is a form of control flow testing as itgenerates a specific flow of control through the decisionpoints. Decision coverage is stronger than statementcoverage: 100% decision coverage guarantees 100%statement coverage, but not vice versa. From „Certified Tester Foundation Level Syllabus (version 2011)” Copyright © 2013
    5. 5. Rules!100% branch coverage implies 100%decision coverage.Branch testing = arc testing = algorithm testing From „Certified Tester Foundation Level Syllabus (version 2011)”Copyright © 2013
    6. 6. Examples with sequential codesep = az * wn;csc = dvz + isc + d; There are no decisions to take.Copyright © 2013
    7. 7. Examples with IFIF (vz){ fuf = azh - e; In order to cover all} decisions and branches,ic = pcg + icn / n; you need 2 test cases.Copyright © 2013
    8. 8. Examples with IF ELSEIF (lfn){ j = ag + vy - f; In order to cover all} decisions and branches,ELSE you need{ 2 test cases. l = ar * hkh;}vgd = i * qla / p;Copyright © 2013
    9. 9. Examples with SWITCHSWITCH (i){ CASE 0: In order to cover all krg = z - kz; decisions and branches, break; you need CASE 1: 2 test cases. tob = zrc * cxd; break;}rl = gs / dl * s;Copyright © 2013
    10. 10. Examples with WHILEuyn = -9;WHILE (bo || uyn < -3){ In order to cover all qx = q - ba / i; decisions and branches, uyn++; you need} 1 test case.moa = 4;WHILE (ei || moa > -3){ h = udi * cj; moa--;}Copyright © 2013
    11. 11. Examples with FORFOR (a = 5; a > -5; a--){ b = c + 1; In order to cover all} decisions and branches, you need 1 test case.Copyright © 2013
    12. 12. More examplesIF (u){ IF (s) { In order to cover all l = el * n * iq; decisions and branches, } you need ELSE 4 test cases. { fz = ga / ca + vd; }}ELSE{ IF (upd) { w = tvo / x + y; } ELSE { grm = neq + ads; }}e = lcu + b;Copyright © 2013
    13. 13. More examplesh = -4;WHILE (ww || h < 6){ In order to cover all zx = 1; decisions and branches, WHILE (iya || zx > -9) you need { 1 test cases. hm = am * x; zx--; } h++;}ye = 7;WHILE (iob || ye > 2){ boi = nk - u + ijy; ye--;}Copyright © 2013
    14. 14. More examplesvc = 8;WHILE (xa || vc > -2){ In order to cover all FOR (i = 0; i < 2; i++) decisions and branches, { you need FOR (qgn = 1; qgn > -2; qgn--) 1 test cases. { p = u * ufi; } } vc--;}FOR (ij = -2; ij > -12; ij--){ pqr = n + fdq / jx;}Copyright © 2012
    15. 15. More examples with…TestCompetence allows you to generate sample pseudocode to pracitse whiteboxtechniques including statement coverage… Copyright © 2013
    16. 16. More examples with…TestCompetence allows you to generate sample pseudocode to pracitse whiteboxtechniques including decision 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
    17. 17. 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
    18. 18. 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
    19. 19. How to get it…Visit TestCompetence.com and get one for only… EURO / USD Unlimited number of exercises during 24 hours!Copyright © 2013
    20. 20. Check also examples for…• Statement testing and coverage >>• Condition testing and coverage >>• Multiple condition testing and coverage >>• Modified condition decision combination (MC/CD) coverage >> Copyright © 2013

    ×