Char array test sets

De Software testing
Ir para: navegação, pesquisa

Equivalence partition-adequate test set

Test case T CC C O Output Covered classes
1 3 abc c, k s, n Found at position 3, Not found 1, 4, 5, 7, 8
2 -3 Invalid length 2
3 34 Invalid length 3
4 3 abc c w Answer with s or n 6

T = 34 and O = w would suit to satisfy the invalid class for the input condition O (although 'w' is an invalid input).

Boundary value analysis-adequate test set

Test case T CC C O Output Covered classes
1 1 aa c, k y, n Found at position 1, Not found
2 20 abcdefghijklmnopqrst t n Found at position 20
3 0 Invalid length
4 21 Invalid length
5 3 abc c w Anwser y or n