Domain testing is a functional testing method that tests whether each module in the software system accepts input within the accepted domain and produces the expected output. Domain testing, with a minimal number of inputs, aims to ensure that out-of-range and invalid input values are rejected by the system and any unexpected behavior is caught. Domain testing is considered one of the most vital White Box Testing methods.
First, the domain is partitioned into equivalence classes, which are mutually exclusive subsets of the domain. For each equivalence class, the following tests are constructed:
X
with equivalence class . The valid input values that will be tested are and to determine correct behavior at the boundary. The invalid values and will be tested to determine that these out-of-range values are rejected correctly.The following table can be constructed for the domain testing document:
Input Variable | Equivalence Class | Test Cases Input | Test Description | Expected Result | Output Result |
X | 0-50 | 0 | Valid Boundary Value | Accepted | Accepted |
50 | Valid Boundary Value | Accepted | Accepted | ||
-1 | Invalid Boundary Value | Rejected | Rejected | ||
51 | Invalid Boundary Value | Rejected | Rejected | ||
25 | Equivalence Partition Value | Accepted | Accepted |
Free Resources