0
Upcoming SlideShare
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Standard text messaging rates apply

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

2,020

Published on

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total Views
2,020
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
41
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Transcript

• 1. Condition Determination Testing and Coverage withPrepare yourself for the ISTQB exam
• 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 &#x201E;Certified Tester Foundation Level Syllabus (version 2011)&#x201D; Copyright &#xA9; 2013
• 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 &#x201E;Certified Tester Advanced Level Syllabus (version 2007)&#x201D; Copyright &#xA9; 2013
• 4. Examples with sequential codebs = yan + bq + ad;h = e * bja; There are no conditions to cover.Copyright &#xA9; 2013
• 5. Examples with IFh = lqy + rh * enh;IF (cc &amp;&amp; t || mva){ In order to cover all tw = k - f / j; modified multiple} conditions, you need 4 test cases.Copyright &#xA9; 2013
• 6. Examples with IF ELSEIF (ta &amp;&amp; k &amp;&amp; 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 &#xA9; 2013
• 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 &#xA9; 2013
• 8. Examples with WHILEzl = ff * br;vf = -5;WHILE (o &amp;&amp; n || vf &lt; 1) In order to cover all{ modified multiple yxx = uum / azc / p; conditions, you need vf++; 3 test cases.}Copyright &#xA9; 2013
• 9. Examples with FORFOR (mq = -4; mq &gt; -8; mq--){ In order to cover all dsq = q * ry - tqw; modified multiple} conditions, you need 1 test case.Copyright &#xA9; 2013
• 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 &amp;&amp; bk) { bwi = tl + be + eae; } ELSE { lz = gz - eg * qp; } }}ELSE{ sts = ap * yv;}Copyright &#xA9; 2013
• 11. More exampless = 12;WHILE (dfy &amp;&amp; o || s &gt; -1){ tjj = d + ce; In order to cover all s--; modified multiple} conditions, you needcb = -8; 5 test cases.WHILE (jdh &amp;&amp; byw || cb &lt; 1){ x = 14; WHILE (dvc &amp;&amp; w || x &gt; 8) { tec = -16; WHILE (t &amp;&amp; ll || tec &lt; -8) { n = gp * co + lv; tec++; } x--; } cb++;}Copyright &#xA9; 2013
• 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 &#xA9; 2012
• 13. More examples with&#x2026;TestCompetence allows you to generate sample pseudocode to pracitse whiteboxtechniques including condition determination coverage&#x2026; Copyright &#xA9; 2013
• 14. More examples with&#x2026;TestCompetence allows you to generate sample pseudocode to pracitse whiteboxtechniques including condition determination coverage&#x2026; 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 &#xA9; 2013
• 15. More examples with&#x2026;You get pseudocode and sample answers just like during a regular ISTQB exam.Choose the right answer. Pseudocode Choose an answer. Copyright &#xA9; 2013