Testing techniques, example
Equivalence Partitioning (EP) Partition (divide) the inputs, outputs, etc. into areas which are same (equivalent) assumption: if one value works, all will work one from each partition better than all from one invalid valid invalid
Boundary Value Analysis (BVA) Fault tend to lurk near boundaries, godd place to look for faults test values both sides of boundaries invalid valid invalid
Example: Loan application Input: –Customer name; 2-64 characters –Account number; 6 digits, 1st non-zero –Loan amount requested; € –term of loan; 1 to 10 years –monthly repayment; minimum 10 € Output: –Term, Repayment, Interest Rate, Total paid back
Example; Customer name Number of chars: invalid valid Valid characters: A-Z a-z -, space
Example; Account number First character: valid: non-zero invalid: zero Number of digits : invalid valid
Example; Loan amount invalid valid invalid
Condition template
Test cases
Questions and assumptions… Input of loan amount is a number of euros, no cents First 3 fields are mandatory; Term OR Repayment is mandatory (not both) Term of loan is in whole years Monthly payment is in euros and cents What is the maximum monthly repayment (Mmax)? Is it the amount of loan ?
Coverage of test case table
Coverage summary We can see from the coverage table how thoroughly we have tested the EP and BVA conditions that we have identified. valid partitions invalid partitions valid boundaries invalid boundaries input conditions 100% (5/5) 12% (2/17) 70% (7/10) 7% (1/13)