Building pair sets with tools and constraints
By hand you can build a pair set for three settings. For ten settings you give a tool the model and the banned mixes, then check what it returns.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: making a seating plan. You have many guests and a few tables. You want every two people to sit together at least once, so that everyone meets. A tool can place the guests for you. But two guests must never share a table. You tell the tool, and it plans around them.
Daily List is a to-do list app. An earlier lesson built a short test set by hand for three settings. Now Tom, the tester, has ten settings, such as plan, device, language and theme. By hand is too slow.
Tom gives a tool an , the list of settings and their values that a tool uses to build tests. The tool returns a , a table of tests in which every chosen group of values appears at least once. A program that does this is a pairwise tool.
Tom also tells the tool the banned mixes. It then leaves them out. He checks the result, since a tool can be wrong or misused.
The picture has a limit. A seating plan is done once. A test set is built again whenever a setting or a rule changes.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 1 in this section
- pairwise
- covering every pair of values
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 Giving a tool a model and the banned mixes, then checking that the set covers every allowed pair.
- Model
- Rules
- Run
- Check
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A seating plan | The covering array |
| The guest list and the tables | The input model |
| Guests who must not share a table | The constraints |
| The planner | The pairwise tool |
WHERE THIS PICTURE STOPS
- A seating plan is made once. A test set is rebuilt when a setting changes.
- Guests are people. Settings can interact in ways nobody listed.
- A planner is trusted by sight. A test set must be checked by counting pairs.
HOOK
Model, rules, run, check.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Before trusting a , hand it the model and the banned mixes. Run it, then check the result yourself.
| In the trick | What it stands for |
|---|---|
| Model | The input model, the settings and their values |
| Banned mixes | The constraints the tool must leave out |
| Check | Tom checks the result, since a tool can be wrong or misused |
TELL A FRIEND
A is a planner that seats guests so every two meet once, except the pairs who must not share a table.
OFTEN MIXED UP WITH Pairwise testing. The pairwise lesson builds a small set by hand for three settings. This lesson scales that up with a tool and handles banned mixes.
PRACTISE AND KEEP
Sources for this topic — 5 sources
- Market practice
ACTS combinatorial test generation tool ↗ — National Institute of Standards and Technology (NIST) · The tool builds t-way test sets for t from 1 to 6, handles constraints and supports 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
Downloadable tools (NIST Automated Combinatorial Testing for Software project) ↗ — National Institute of Standards and Technology (NIST) · The project page lists free tools for generating covering arrays (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. 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
microsoft/pict (PICT, Pairwise Independent Combinatorial Testing, repository) ↗ — Microsoft (GitHub) · A command-line tool builds compact suites covering all pairs of values from a model file; constraints use if-then logic and unconditional constraints hold for every generated case (search excerpt, page not opened; syntax details came from third-party guides)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. 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) · Impossible combinations are best removed while the set is built and not by deleting rows afterwards; seed rows are honoured only when they obey the rules (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.
- Market practice
Automated Combinatorial Testing for Software: Frequently Asked Questions ↗ — National Institute of Standards and Technology (NIST), Computer Security Resource Center · Most software failures involve one or two parameters, fewer involve three or more, and testing all pairs is not enough on its own (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.
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.