Constraints and must-have tests in combinations
Tell the pair table which mixes cannot exist and which one you insist on. Then raise the group size from pairs to threes only where the risk is worth the extra tests.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: planning outfits for a trip. You want to try different tops with different trousers and shoes. But sandals are not for snow. Some mixes are impossible, and a plan that includes them is wasted. Some mixes you must wear anyway, such as the coat you will use every day. A good plan drops the first kind and keeps the second.
Daily List is a to-do list app. Tom, the tester, mixes four settings. They are the plan, the calendar connection, the device and the alert type. The earlier lesson showed how pairs of values can be covered with few tests. Now Nina, the product owner, adds two facts. The free plan cannot use the calendar connection, and one mix is the one she cares most about.
A constraint is a rule that forbids certain combinations of values. A is a combination you insist on including, often because it is common or risky. Tom also learns , which covers every group of N parameters, such as three at a time.
The picture has a limit. In a suitcase you see what you packed. In software, a lives in code, and the team must tell the tool about it.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 1 in this section
- constraint
- a limit or rule that restricts what can be done
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB A pair table works best when it knows which mixes cannot exist, which mix must appear and how many settings must meet at a time.
- Write the constraints
- Name the seeds
- Build the set
- Raise N where the risk is high
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The trip plan | The combination model |
| Sandals in the snow | A constraint, a mix that cannot exist |
| The coat you wear every day | A seed test, a mix you insist on |
| Trying every two items together | Pairs |
| Trying every three items together | N-wise testing with N of three |
WHERE THIS PICTURE STOPS
- In a suitcase you can see the sandals. In software the rule that forbids a mix lives in code.
- A traveller chooses a few outfits by feel. A tool needs the rules written down.
- Wearing three items together is easy to check by eye. Threes in software grow in number fast.
HOOK
Rules out, must-haves in, then size up.
REMEMBER IT THIS WAY
A contrast: two neighbours told apart by one test.
Constraints define permitted configurations; seeds request rows under the chosen tool. Validate feasibility and coverage without assuming a fixed suite-size change.
| In the trick | What it stands for |
|---|---|
| Constraint | A rule that forbids certain combinations, like sandals in the snow |
| Seed | A combination you insist on including, like the daily coat |
TELL A FRIEND
A trip plan drops sandals for snow and keeps the daily coat. A pair table drops impossible mixes and keeps seeds.
OFTEN MIXED UP WITH Pairwise testing. covers every pair of values with few tests. This lesson adds rules that remove impossible mixes, must-have mixes and larger groups.
PRACTISE AND KEEP
Sources for this topic — 3 sources
- Market practice
Automated Combinatorial Testing for Software: Frequently Asked Questions ↗ — National Institute of Standards and Technology (NIST), Computer Security Resource Center · Frequently asked questions: most failures involve one or two parameters, fewer involve three or more, so pairs alone are not always enough (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Project page as listed on the publisher's site; no edition number found. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
ACTS combinatorial test generation tool ↗ — National Institute of Standards and Technology (NIST) · NIST tool page: generates t-way test sets with constraint handling and mixed strength (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Project page; the user guide named in search results is dated November 2023. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Pairwise Testing in the Real World: Practical Extensions to Test-Case Scenarios ↗ — Microsoft (MSDN, software testing archive) · Pairwise testing in the real world: constraints remove impossible combinations during generation and seeds name rows that must appear (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Archived article; no edition number found. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.