Black Box Testing
# Black Box Testing
Testing of requirements and specifications
Assumptions:
- Verifiable requirements (i.e. hire juniors on part time basis compared to hire those below 18 years old part time)
- Testable code
Test case design:
- Formulate the equivalence classes
- Break down ECs into boundary values. Remove boundary values which fall into other ECs -
- Create valid test cases using permutation of valid boundary values -
- Create invalid test cases using permutation of invalid boundary values; only one parameter can be invalid at one time -
# Equivalence Class Testing
Equivalence Class: set of values that produce the same output
Example: We are testing if an alert is sent
Valid ECs will produce a positive output according to specification (i.e. will send an alert) Invalid ECs will produce a negative output (i.e. no alert sent). Error or exception ECs are invalid data ranges or types not within specification (i.e. exception is thrown).
# Boundary Value Testing
For each EC, there are 3 BVs for the 2 ends of the range:
- On the value
- Below the value
- Above the value
Discrete values have no BV.