Beruflich Dokumente
Kultur Dokumente
ASSURANCE
WHITE BOX
Control flow
Statement testing
Branch/Decision Testing
Branch Condition Testing
Modified Condition Combination Testing
White Box
unit;
exercise logical decisions on both their true and
false side;
execute loops at their boundaries and within
their operational bounds
exercise internal data structures to ensure their
validity
Statement testing
An entity in a programming
language which is typically
the smallest indivisible unit of
execution.
identification of statement(s) to be
executed by the test case
the expected outcome of the test
case
Test completeness criteria: the percentage of the statements in the
software which were executed at least at once (executing a statement
means that the statement was encountered and evaluated during testing).
Example
float foo (int a, int b, int c, int d, float e)
{
float e;
if (a == 0) {
return 0;
}
int x = 0;
if ((a==b) OR ((c == d) AND bug(a) )) {
x=1;
}
statement
e = 1/x;
return e;
}
Branch/Decision Testing
an executable statement
which may transfer control
to another statement,
depending upon the logic
of the decision statement
Example
if A and (B or C)
Case
Output
Branch Condition
Combination