Testing case study plan
- Derrive tests for blackbox testing using equivalence partitioning
- Triangle problem exercise (sides are not independent input (use triples)
- what is a partition (set of inputs within a particualr area (valid/invalid, a range etc.)
- what are the partition inputs, how do they combine, do they have specific outputs
Application of equivalence partitioning
- how can testing be down to existing applications
- Consider all possible cases that could occur
TRIANGLE PROBLEM EXERCISE

- input must be an integer (not string, or alphabetical)
- must be a valid integer (not negative)
- must be valid triangle (3 sides, sides must be connected)
- must be valid type of triangle (scalene, isocoleces, equltateral)
Testing a UK Tax Allowance Calculator EXERCISE
- Use gov.uk website to get definitions of tax bands, personal allowances, how tax should be calculated etc.
- Use this to define equivalence partitions, categories of inputs, how they are defined, how they combine
Blackbox testing existing app
- define valid income (totsl income per annum/year, must be numeric value)
- Edgecases:
- money can be sometimes problematic to define correctly when using floats
- salary should be in GDP (British pounds) eg. £[1100.52]
- best way to avoid errors when using percentages convert to pence? so using integers not floats then apply rules? (simple way to handle but could be more specific if required - see how money in handled in code for finance apps?)
- is tax rounded up or down if half a pence (down?)
- after calculations convert back to pounds and pence format for user (expected format), ensure this is done correctly
- define tax band ranges
- define tax free allowance