Professional Documents
Culture Documents
Statement Testing Coverage Istqb White Box Techniques 130211031012 Phpapp01 PDF
Statement Testing Coverage Istqb White Box Techniques 130211031012 Phpapp01 PDF
with
Copyright © 2013
What is…?
Copyright © 2013
Rules
Copyright © 2013
Examples with sequential code
a = b + c
d = e * e
In order to cover all
statements, you need
1 test case.
Copyright © 2013
Examples with IF
IF (wa)
{
ev = ghd - pkq / cds; In order to cover all
} statements, you need
1 test case.
Copyright © 2013
Examples with IF ELSE
IF (weu)
{
i = o - f; In order to cover all
} statements, you need
ELSE 2 test cases.
{
u = gkt * k;
}
Copyright © 2013
Examples with SWITCH
SWITCH (yc)
{
CASE 0: In order to cover all
epl = o / c; statements, you need
break; 4 test cases.
CASE 1:
p = wt * bd;
break;
CASE 2:
fbt = xg + ana - cs;
break;
DEFAULT:
qxn = q / ti;
break;
}
Copyright © 2013
Examples with WHILE
a = 1;
WHILE (a < 5)
{ In order to cover all
b = c; statements, you need
a++; 1 test case.
}
Copyright © 2013
Examples with DO WHILE
DO{
a = a + 1
} WHILE (a <= 0) In order to cover all
statements, you need
1 test case.
Copyright © 2013
Examples with FOR
FOR (a = 5; a > -5; a--)
{
b = c + 1; In order to cover all
} statements, you need
1 test case.
Copyright © 2013
More examples
IF (a)
{
b = c + d; In order to cover all
} statements, you need
ELSE 2 test cases.
{
IF (e)
{
b = c - d;
}
}
Copyright © 2013
More examples
IF (a)
{
IF (f) In order to cover all
{ statements, you need
g = h - i; 2 test cases.
}
}
ELSE
{
IF (e)
{
b = c - d;
}
}
Copyright © 2013
More examples
SWITCH (a)
{
CASE 0:
IF (b) In order to cover all
{ statements, you need
c; 3 test cases.
}
break;
CASE 1:
IF (d)
{
e;
}
ELSE
{
f;
}
break;
}
Copyright © 2012
More examples with…
TestCompetence allows you to generate sample pseudocode to pracitse whitebox
techniques including statement coverage…
Copyright © 2013
More examples with…
TestCompetence allows you to generate sample pseudocode to pracitse whitebox
techniques including statement 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
Copyright © 2013
Check also examples for…