Slice Based Testing
Slice Based Testing
1,2,3,4,5,6,7,8,9,10,11,12,
3 S(A, 28) 13,14,18,27,28 9 8 7 9
4 S(B, 8) 1,2,3,4,7,8,28 8
1,2,3,4,5,6,7,8,9,10,11,19,
5 S(B, 24) 7 9 8 9
20,23,24,25,26,27,28
1,2,3,4,5,6,7,8,9,10,11,12, 8 7 9 9
8 S(C, 16) 15,16,17,18,27,28
1,2,3,4,5,6,7,8,9,10,11,19,
7 8 9 9
9 S(C, 21) 20,21,22,26,27,28
1,2,3,4,5,6,7,8,9,10,11,19, 7 8 9 9
10 S(C, 28)
20,21,22,26,27,28
Slice Based Testing
It focuses on a portion of a program with respect
to a variable location in any statement of the
program.
Slicing cannot test a behaviour which is not
represented by a set of variables or a variable of
the program.