Identifier test sets

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

Equivalence partition adequate

Input Output
a1 Valid (1, 4, 6)
Invalid (2)
A1b2C3d Invalid (3)
2B3 Invalid (5)
Z#12 Invalid (7)


Boundary analysis adequate

Identifier Result Description
a Valid First valid lower case, min. size
b3 Valid Second valid lower case, above min. size
Xkl Valid Last but one valid upper case, valid size
Z9 Valid Last valid upper case, above min. size
xkl Valid Last but one valid lower case, valid size
zAaZ1 Valid Last but one valid lower case, below max. size
AaZz91 Valid First valid upper case, max. size
BaZz91 Valid Second valid upper case, max. size
abcdefg Invalid Valid characters, above max. size
@ Invalid First char. below min. (A), min. size
[ Invalid First char. above max. (Z), valid size
` Invalid First char. below min. (a), min. size
{ Invalid First char. above max. (z), max. size
A-&$# Invalid Invalid characters, max. size

All-nodes adequate

Input Output
1#@ Invalid (1, 2, 3, 4, 5, 6, 7, 8 12)
i Valid (1, 2, 8, 9, 10, 11)


All-edges adequate

Edge (9, 12) is infeasible.

Input Output
Invalid (1, 8)
A1b2C3d Invalid {(5, 7), (10, 12)}


All-uses adequate

For the Java version:

  • (i, 3, 5)
  • (i, 3, 7)
  • (valid_id, 1, (8,9)
  • (valid_id, 1, (8,12)
  • ..


All-Potential-Uses

For the Java version:

  • (s, 1, 6)
  • (achar, 3, (8, 9))
  • (achar, 3, (8, 12))
  • ...