04 - Domain Testing
04 - Domain Testing
Domain Testing
• 4 steps
1. Identify Input & Output variables
2. Identify equivalence classes for each Input & Output
1. Divide the set of possible values (domain) of the field into subsets (sub-domains –
equivalence classes)
3. Find a “best representative” for each subset
4. Best representatives of ordered fields will typically be boundary values
• Condition 3: the “must be” case for the first two characters.
• EC6. The first 2 characters are letters, valid.
• EC7. The first 2 characters are not letters, invalid.
• Valid
• The widget identifier is alphanumeric, has between 3 and 15 characters,
and the first 2 characters are letters
• Invalid
• The widget identifier is not alphanumeric
• The widget identifier has less than 3 characters
• The widget identifier has greater than 15 characters
• The first 2 characters are not letters
• For each equivalence class partition, we’ll have at most, 9 test cases to execute.
• It is essential to understand that each identified equivalence class represents a specific risk
that it may pose.
* Smallest/Largest Possible Values Allowed via UI
8* 1 9*
2 5
LB+1 UB+1
• Strengths
• Find highest probability errors with a relatively small set of tests.
• Intuitively clear approach, easy to teach and understand
• Extends well to multi-variable situations
• Blind spots or weaknesses
• Errors that are not at boundaries or in obvious special cases
• Also, the actual domains are often unknowable