← Test Analyst: analysis, design, and prevention
03 / 8 · 40 MIN

Domains, boundaries, and combinations

Select inputs exposing behavioral differences.

Concept and mechanism

Data-test design starts by dividing the input space according to relevant rules. For authorization requiring an integer amount in cents x greater than 250000, the boundary is open: in domain-testing terminology, ON is 250001, the nearest representable point inside the region, and OFF is 250000, the excluded boundary itself.

For x greater than or equal to 250000, the boundary is closed: ON is 250000 and OFF is 249999. Precision belongs to the model; without the smallest unit, nearest may be undefined. When two conditions delimit the region, vary one boundary while keeping the other condition satisfied so the test has a clear interpretation.

Guided application

In a service with channel, currency, and customer type, testing each value once does not ensure that relevant interactions were exercised. A pairwise selection covers value pairs while respecting feasible-combination constraints. It may miss a failure requiring all three factors together.

Choose interaction strength according to risk and add combinations known to be critical. Random generation also needs a domain and an oracle. A generator configured only for positive amounts will never investigate rejection of negative values.

With tools such as Hypothesis, choosing a domain does not mean distribution is uniform or resembles real traffic. Retain counterexamples and add directed cases for important boundaries.

Exercise: isolate boundaries and three-way interaction risks

Build a model with three factors: channel (web or API), currency (EUR, USD or GBP) and profile (personal or business). With no constraints, the Cartesian product contains 2×3×2=12 complete combinations. A pairwise selection may cover every pair but omit a specific three-value interaction that triggers a defect; pair coverage is not triple coverage.

Record real constraints before generating tests: if one channel supports EUR only, USD and GBP with that channel are not valid business flows, although they may become separate rejection tests. For amount>250000 integer cents, use 250000 as OFF and 250001 as ON while keeping age valid to isolate the amount boundary.

After changing the rule to amount≥250000, ON becomes 250000 and OFF becomes 249999. Document an independent oracle for each case, not just inputs. After execution compare covered cases with residual risks and add the most consequential triples without claiming exhaustive coverage.

IN PRACTICE

For integer cents x>250000: ON 250001, OFF 250000.

Common pitfalls

Omitted precision; pairs treated as exhaustive; domain without invalid inputs.

Related topics: Analysis and evidence in the test process · Priority and residual risk · States, CRUD, and journeys

Take this idea with you

Define partitions, boundaries, and interactions before generating data.

Create account

References

ISTQB® is a registered trademark of International Software Testing Qualifications Board. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by ISTQB. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.