Pairwise test generator

Build the smallest test set in which every pair of values of any two parameters appears at least once. That's usually 5–10% of the full Cartesian product.

17 combinations instead of 288 (−94%)

#BrowserOSUI languageRolePayment
1ChromeWindowsENGuestApple Pay
2ChromemacOSESAdminPayPal
3ChromeAndroidENMemberCard
4ChromeiOSESMemberApple Pay
5FirefoxWindowsESAdminCard
6FirefoxmacOSENMemberPayPal
7FirefoxAndroidESGuestApple Pay
8FirefoxiOSENAdminApple Pay
9SafariWindowsENGuestPayPal
10SafarimacOSESGuestCard
11SafariAndroidENAdminPayPal
12SafariiOSENMemberCard
13EdgeWindowsENMemberPayPal
14EdgemacOSESGuestApple Pay
15EdgeAndroidESAdminCard
16EdgeiOSESGuestPayPal
17SafarimacOSESAdminApple Pay

Why pairwise

Five parameters with 3–4 values each give hundreds of combinations. Defect studies (NIST among them) show that most failures are triggered by a single parameter or by the interaction of two. Pairwise coverage finds those defects with a small fraction of the tests.

How the generator works

A greedy algorithm builds rows so that each new one covers as many still-uncovered pairs as possible, until all pairs are covered. The result is deterministic: the same parameters always produce the same table.

Tips

  • Merge values that always go together into one (for example, “Safari on iOS”).
  • Remove impossible combinations from the result by hand, or model them as a separate parameter.
  • Add explicit cases for critical scenarios on top — pairwise doesn't guarantee three-way interactions.

FAQ

Is pairwise the same as all-pairs testing?+

Yes. All-pairs testing and pairwise testing are two names for the same technique.

How many parameters can I enter?+

Up to 20 parameters with up to 20 values each — the calculation runs in your browser.

How does this compare to PICT?+

Microsoft PICT is a command-line tool with constraints and higher-order coverage. This generator is for quick, no-install pairwise tables; for complex constraints PICT or ACTS is the better choice.