Week 9 Advanced Testing Flashcards
How are inputs selected in random testing?
The input domain is identified and random numbers are mapped to that input domain according to a probabilistic distribution.
What guarantees does random testing produce?
Probabilistic guarantees about the programs faultiness.
What are the benefits of random testing?
Cheap, easy, calculates reliability using probability theory. Good alternative to ECP when lack of domain knowledge or data volume is large.
What are the 4 types of input space sampling?
Uniform, Equispaced, Proportional sampling and adaptive.
What are the 4 types of input space sampling?
Uniform, Equispaced, Proportional sampling and adaptive.
What is uniform distribution?
Uniform random selection of the input space, every input has the same chance of being chosen.
What is Equispaced sampling
Unsampled sections of the input space are equally spaced apart (every 10,100,1000 etc)
What is proportional sampling
Sample according to the subdomain distribution
Adaptive sampling
Utilise prior knowledge about what type of input is more likely to cause failures and focus on this.
What is a test oracle?
A test oracle is a mechanism for determining whether a test has passed or failed.
How is a test oracle used.
The real outputs of a test are compared to the output the oracle determines the test should really have.
What is the oracle problem?
It is the question of how do you determine the correct output for a given input.
What are solutions to the oracle problem.
- Golden standard. (use results from an old equivalent system)
- Parametric oracle.
- Observer oracle. It knows normal output curve of the SUT, if curves don’t match its an exceptional output.
- Assertion you know a fact to be a truth. Whenever the output violates this assumed truth its a wrong output.
What are solutions to the oracle problem.
- Golden standard. (use results from an old equivalent system)
- Parametric oracle.
- Observer oracle. It knows normal output curve of the SUT, if curves don’t match its an exceptional output.
- Assertion you know a fact to be a truth. Whenever the output violates this assumed truth its a wrong output.
What are some faults of random testing.
Corner faults escaping detection, uniform distribution can easily be wrong, non uniform has domain bias.