Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence
-
Upload
radoslaw-smilgin -
Category
Education
-
view
3.791 -
download
4
description
Transcript of Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence
![Page 1: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/1.jpg)
Multiple Condition Testing and Multiple Condition Coverage with
Prepare yourself for the ISTQB exam
![Page 2: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/2.jpg)
Dictionary
multiple condition coverage: The percentage of combinations of all single condition outcomes within one statement that have been exercised by a test suite. 100% multiple condition coverage implies 100% condition determination coverage. multiple condition testing: A white box test design technique in which test cases are designed to execute combinations of single condition outcomes (within one statement).
From „Standard glossary of terms used in Software Testing”
Copyright © 2013
![Page 3: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/3.jpg)
What is…?!!
Multiple condition testing - all possible combinations of true/false conditions are identified.
From „Certified Tester Advanced Level Syllabus (version 2007)”
Copyright © 2013
![Page 4: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/4.jpg)
Rules!!
100% multiple condition coverage implies 100% condition determination coverage branch condition combination coverage = multiple condition coverage condition combination coverage = multiple condition coverage
branch condition combination testing = multiple condition testing condition combination testing = multiple condition testing
From „Certified Tester Advanced Level Syllabus (version 2007)”
Copyright © 2013
![Page 5: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/5.jpg)
vwj = v - w * yas;
cxd = h - j * emg;
Copyright © 2013
Examples with sequential code
No multiple condition to cover.
![Page 6: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/6.jpg)
mf = ta / kfa;
IF (g || cn || iyl)
{
msa = si + rr;
}
Copyright © 2013
Examples with IF
In order to cover all multiple conditions, you
need 8 test cases.
![Page 7: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/7.jpg)
IF (nk || c && qq)
{
j = ce * a;
}
ELSE
{
nde = bb - v / zk;
}
djk = d / fgw;
Copyright © 2013
Examples with IF ELSE
In order to cover all multiple conditions, you
need 8 test cases.
![Page 8: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/8.jpg)
tr = j - ap;
SWITCH (zk)
{
CASE 0:
dvp = vev * pot;
break;
CASE 1:
b = ut + e;
break;
}
Copyright © 2013
Examples with SWITCH
In order to cover all multiple conditions, you
need 2 test cases.
![Page 9: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/9.jpg)
e = 4;
WHILE (s || qa || e > -7)
{
kt = ngk * bcw;
e--;
}
ot = cg - nmv / r;
Copyright © 2013
Examples with WHILE
In order to cover all multiple conditions, you
need 4 test cases.
![Page 10: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/10.jpg)
b = cq + bm;
FOR (htk = 9; htk < 15; htk++)
{
u = sjj / ol;
}
Copyright © 2013
Examples with FOR
In order to cover all multiple conditions, you
need 1 test case.
![Page 11: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/11.jpg)
FOR (gc = 0; gc < 4; gc++)
{
IF (s || vjq && mp)
{
c = gmg / qck;
}
}
ir = k + yx - fj;
Copyright © 2013
More examples
In order to cover all multiple conditions, you
need 8 test cases.
![Page 12: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/12.jpg)
IF (o && da && iwd)
{
new = i + tnb + xw;
}
IF (xc || cwk)
{
xck = nyt + sq;
}
ELSE
{
IF (mbo || atj || xny)
{
iq = uu * a;
}
ELSE
{
uh = tu * en - vt;
}
}
Copyright © 2013
More examples
In order to cover all multiple conditions, you
need 11 test cases.
![Page 13: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/13.jpg)
SWITCH (wk)
{
CASE 0:
IF (jo && mme)
{
bmw = w - l / h;
}
break;
CASE 1:
IF (y || cm && td)
{
sjc = he / eqw;
}
break;
}
ype = d + boy;
Copyright © 2012
More examples
In order to cover all multiple conditions, you
need 12 test cases.
![Page 14: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/14.jpg)
More examples with…
TestCompetence allows you to generate sample pseudocode to pracitse whitebox
techniques including multiple condition coverage…
Copyright © 2013
![Page 15: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/15.jpg)
More examples with…
TestCompetence allows you to generate sample pseudocode to pracitse whitebox
techniques including multiple condition coverage…
Copyright © 2013
Choose the level of nested
statements.
Choose the maximum number of instructions per level.
Choose the type of
coverage from:
statement, decision, codition, multiple
condition, and modified
condition.
Choose the type of
statement.
GENERATE your exercise.
![Page 16: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/16.jpg)
More examples with…
You get pseudocode and sample answers just like during a regular ISTQB exam.
Choose the right answer.
Copyright © 2013
Pseudocode
Choose an answer.
![Page 17: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/17.jpg)
More examples with…
You get pseudocode and sample answers just like during a regular ISTQB exam.
Choose the right answer.
Copyright © 2013
Pseudocode
Your answer
Right answer
![Page 18: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/18.jpg)
How to get it…
Visit TestCompetence.com and get one for only…
Copyright © 2013
EURO / USD
Unlimited number of exercises during 24 hours!
![Page 19: Multiple Condition Testing and Coverage. ISTQB Whitebox Techniques with TestCompetence](https://reader034.fdocuments.in/reader034/viewer/2022051323/547aa632b4af9fb4158b4b8a/html5/thumbnails/19.jpg)
Check also examples for…
• Statement testing and coverage >>
• Decision testing and coverage >>
• Condition testing and coverage >> • Modified condition decision
combination (MC/CD) coverage >>
Copyright © 2013