Decision Testing and Decision Coverage. ISTQB Whitebox techniques with TestCompetence
Upcoming SlideShare
Loading in...5
×
 

Decision Testing and Decision Coverage. ISTQB Whitebox techniques with TestCompetence

on

  • 9,425 views

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

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

Statistics

Views

Total Views
9,425
Views on SlideShare
8,474
Embed Views
951

Actions

Likes
0
Downloads
75
Comments
0

7 Embeds 951

http://testerzy.pl 668
http://www.testerzy.pl 253
http://testerzy.nazwa.pl 20
http://www.nowi.testerzy.pl 4
http://nowi.testerzy.pl 3
http://webcache.googleusercontent.com 2
http://local.testlacza.testerzy.pl 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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 Decision Testing and Decision Coverage. ISTQB Whitebox techniques with TestCompetence Presentation Transcript

  • Decision Testing and Decision Coverage withPrepare yourself for the ISTQB exam
  • 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
  • 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 View slide
  • 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 View slide
  • Rules!100% branch coverage implies 100%decision coverage.Branch testing = arc testing = algorithm testing From „Certified Tester Foundation Level Syllabus (version 2011)”Copyright © 2013
  • Examples with sequential codesep = az * wn;csc = dvz + isc + d; There are no decisions to take.Copyright © 2013
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • More examples with…TestCompetence allows you to generate sample pseudocode to pracitse whiteboxtechniques including statement coverage… Copyright © 2013
  • 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
  • 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 >>• Condition testing and coverage >>• Multiple condition testing and coverage >>• Modified condition decision combination (MC/CD) coverage >> Copyright © 2013