Part 2: W04-2 Functional Testing Flashcards
What is the Test Selection Problem?
Selecting a set of tests to reveal all failures in program
What are some test generation techniques?
- Equivalent Partitioning
- Boundary Value Analysis
- Decision Tables
What are the steps of equivalence partitioning?
- Start with set of all behaviours of system
- Identify behaviours that adhere to quality requirement
- Split behaviours into disjoint subdomains by quality requirements
- Assume subdomain has same behaviour on all inputs
- Make a tests using inputs from each subdomain (equivalence class)
What are the objectives of equivalence partitioning?
- coverage completeness
- avoiding redundant tests
What are the testing strategies?
Explain using
inputs: A,B,C
and states: A1,A2,A3,B1,B2,B3,B4,C1,C2
Fault Assumption
1. Weak equivalent class -
have at least one test with each input
# of tests is 4 because B has input domain 4
2. Strong equivalent class - try every combination of inputs
# of tests is 342 = 24
Selection
- Robust selection strategy - split inputs into valid and invalid / test inputs on both sides of edge
- Normal - teset all classes of valid values
What is the effectiveness equation for equivalence testing?
effectiveness = # failures exposed by tests / total # of existing failures