Software Testing

(3) Random Testing

How does Random Selection Of Input Values (Random Testing Approach) work?

  • Black-Box testing technique
  • Test input values are selected randomly and independently from specified range of values (test domain)
    • Can be selected uniformly or following a specific probability distribution
  • Results are compared against expected output
 
Problem
  • Dimension of input domain: 64-bit integer → 2^64 possiblities
    • e.g. condition int x ==7 in code
    • Probability to evaluate this condition to true with uniform random testing: 1/(2^64)=0%
  • Solution: Follow specific probability distribution → Statistical Testing

Diskussion