Download presentation
Presentation is loading. Please wait.
1
Testing techniques, example Riitta.Viitamaki@iki.fi 14.4.2004
2
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 0 1 100 101 invalid valid invalid
3
Boundary Value Analysis (BVA) Fault tend to lurk near boundaries, godd place to look for faults test values both sides of boundaries 0 1 100 101 invalid valid invalid
4
Example: Loan application Input: –Customer name; 2-64 characters –Account number; 6 digits, 1st non-zero –Loan amount requested; 500-9000 € –term of loan; 1 to 10 years –monthly repayment; minimum 10 € Output: –Term, Repayment, Interest Rate, Total paid back
5
Example; Customer name Number of chars: invalid valid 0 1 2 64 65 Valid characters: A-Z a-z -, space
6
Example; Account number First character: valid: non-zero invalid: zero Number of digits : 0 5 6 7 invalid valid
7
Example; Loan amount 499 500 9000 9001 invalid valid invalid
8
Condition template
9
Test cases
10
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 ?
11
Coverage of test case table
12
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)
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.