Pairwise Test Case Generators Compared (2026)
Five checkout settings make 216 combinations. Pairwise testing covers every pair of values in 14 tests. Here’s how it works from zero, which generator to use, and the mistakes that quietly cancel the savings.
- BrowserChromeFirefoxSafariEdge4
- OSWindowsmacOSLinux3
- PaymentCardPayPalSaved card3
- UserGuestMember2
- LanguageENDEJA3
Each square is one test. Floor for this model: 12 rows (Browser × OS), because every value of the two biggest parameters must meet once.
Short answer
- Quick table, no setup: a browser generator like AQAPro Pairwise.
- Constraints, 3-way, CI: Microsoft PICT, free and scriptable.
- Inside pytest: allpairspy. Team platform: DesignWise or Xray Test Case Designer.
Eight words you need
Skip this if you already write pairwise tests. If not, every section below uses these words, and none of them is hard.
- Parameter
- Anything that can change between two runs of the same test.
- Browser, payment method, user role
- Value
- One option a parameter can take. Keep only values that behave differently.
- Chrome, Firefox, Safari
- Test case (row)
- One value for every parameter. One row in the generated table.
- Safari · macOS · PayPal · Guest
- Pair
- Two values from two different parameters that meet in at least one row.
- Safari + PayPal
- Pairwise (all-pairs)
- A set of rows where every possible pair appears at least once.
- 14 rows instead of 216
- Strength (t-way)
- The same idea for bigger groups. 2-way is pairwise, 3-way covers every triple.
- Safari + PayPal + Guest
- Constraint
- A rule that removes combinations that cannot exist in real life.
- Safari only runs on macOS
- Expected result
- What the app should do for this row. No generator writes it for you.
- Order placed, receipt in German
That last number is the whole trick. One test with five values covers ten pairs in one go, so 89 pairs fit into 14 rows. The full product needs 216 because it repeats each pair many times over.
Watch the pairs fill up
A smaller model: four parameters, 24 combinations, 30 pairs. Each new row covers whatever pairs are still empty.
Generated rows 0 / 6
| # | Browser | OS | Payment | User |
|---|---|---|---|---|
| 1 | Chrome | Windows | Card | Guest |
| 2 | Chrome | macOS | PayPal | Member |
| 3 | Firefox | Windows | PayPal | Guest |
| 4 | Firefox | macOS | Card | Member |
| 5 | Safari | Windows | Card | Member |
| 6 | Safari | macOS | PayPal | Guest |
Hover a row to see the six pairs it covers at once. Four parameters means 4 × 3 / 2 = 6 pairs per row.
Pairs covered 0 / 30
Browser × OS
| Windows | macOS | |
|---|---|---|
| Chrome | not covered | not covered |
| Firefox | not covered | not covered |
| Safari | not covered | not covered |
Browser × Payment
| Card | PayPal | |
|---|---|---|
| Chrome | not covered | not covered |
| Firefox | not covered | not covered |
| Safari | not covered | not covered |
Browser × User
| Guest | Member | |
|---|---|---|
| Chrome | not covered | not covered |
| Firefox | not covered | not covered |
| Safari | not covered | not covered |
OS × Payment
| Card | PayPal | |
|---|---|---|
| Windows | not covered | not covered |
| macOS | not covered | not covered |
OS × User
| Guest | Member | |
|---|---|---|
| Windows | not covered | not covered |
| macOS | not covered | not covered |
Payment × User
| Guest | Member | |
|---|---|---|
| Card | not covered | not covered |
| PayPal | not covered | not covered |
3 × 2 × 2 × 2 = 24 combinations, but only 30 pairs to cover.
Why two values at a time is enough (usually)
Most bugs need one or two settings to line up, not five. NIST measured it on real failure reports.
- 1 value10–65%
- 2-waypairwise45–95%
- 3-way75–99%
- 4-way90–100%
- 5-way95–100%
- 6-way100%
Range across the systems NIST studied (medical devices, a browser, a server, databases, network security software). Read from NIST’s chart and rounded, so approximate.
Pairs catch a lot, not everything. In the best case about 95% of failures needed two values or fewer. In the worst systems studied, fewer than half.
3-way closes most of the gap. Every system reached roughly 75% or more. Use it on payments, permissions and anything safety-related: pict model.txt /o:3.
Nothing needed more than six. No studied failure required seven parameters to line up, so 6-way is the practical ceiling even though PICT can go higher.
From a feature to a pairwise suite
Six steps, the same checkout all the way through. Steps 2, 5 and 6 are the ones people skip.
List what can vary
Walk the feature and write down every input, setting and environment detail that changes behaviour. Inputs (payment method), user state (guest, member), configuration (language), environment (browser, OS). Outputs like “error shown” are not parameters.
checkout: parameterstextBrowser OS Payment User LanguageChrome Windows Card Guest ENFirefox macOS PayPal Member DESafari Linux Saved card JAEdgeCut values down to classes
A quantity field accepting 1–99 is not 99 values. Keep one value per class that behaves differently, plus the edges: 0, 1, 99, 100. The Boundary Value tool does this for numbers. Fewer values means fewer rows, and the biggest parameter sets your minimum.
Boundary Value tool 2-value vs 3-value BVAWrite down impossible combinations
Safari doesn’t run on Windows. A guest has no saved card. Without constraints the generator happily puts these in rows, you delete them by hand, and the pairs they carried are lost. Declare them so the tool covers those pairs somewhere valid.
constraints (PICT syntax)textIF [Browser] = "Safari" THEN [OS] = "macOS";IF [User] = "Guest" THEN [Payment] <> "Saved card";Generate
Paste the model into a generator. For the checkout above you get 14 rows instead of 216. Keep the output: commit the table or fix the random seed, so a failure on row 7 is still row 7 tomorrow.
Generate in the browserAdd the expected result to every row
The table only tells you what to feed in. For each row, write what should happen: total, currency, message, email. This is the part that finds bugs, and it is still your job.
Add the cases you can’t skip
Pairwise picks rows to cover pairs, not to cover risk. Add your top business paths by hand (most popular browser + card + member), and keep invalid inputs in separate negative tests, one invalid value per test.
The generators, compared
They all produce the same kind of table. They differ in where you use them and whether they understand constraints.
- 01
AQAPro Pairwise
Fastest way to a pairwise table: type parameters, copy CSV or Markdown.
Runs in your browser, nothing uploaded. 2-way only and no constraints yet: delete impossible rows by hand, or use PICT.
Open the generator - 02
Microsoft PICT
The standard for scripted generation: constraints, any strength, seeds, negative values.
Plain-text model file, so it lives in git and runs in CI. The model syntax takes an hour to learn.
- 03
allpairspy
Generate the rows inside pytest. No separate files.
Constraints are a Python filter function, n= sets the strength, previously_tested= seeds your own rows. A filter that rejects too much makes it slow.
- 04
NIST ACTS
Strength up to 6-way with coverage measurement, from the team behind the research.
Public domain. You request the download by email from NIST. Best for safety-critical or research work.
- 05
DesignWise (formerly Hexawise)
A guided commercial platform when test design is a team habit.
Visual models and coverage charts. Sold alongside TestRail. Overkill for occasional use.
- 06
Xray Enterprise: Test Case Designer
Model-based pairwise right where your Jira test cases already live.
Only if your team is on Xray Enterprise. Generated scenarios become Xray tests.
| Tool | No install | Constraints | 3-way + | Seeds / must-have rows | Scriptable |
|---|---|---|---|---|---|
| AQAPro Pairwise | |||||
| Microsoft PICT | |||||
| allpairspy | |||||
| NIST ACTS | |||||
| DesignWise (formerly Hexawise) | |||||
| Xray Enterprise: Test Case Designer | ? | ? |
One model, three tools
The checkout model with its two constraints, ready to copy. Pick the one that matches where your tests live.
# checkout.txt: one parameter per lineBrowser: Chrome, Firefox, Safari, EdgeOS: Windows, macOS, LinuxPayment: Card, PayPal, Saved cardUser: Guest, MemberLanguage: EN, DE, JA # constraints end with a semicolonIF [Browser] = "Safari" THEN [OS] = "macOS";IF [User] = "Guest" THEN [Payment] <> "Saved card";# pairwise, tab-separated, header row first$ pict checkout.txt > cases.tsv # every triple instead of every pair$ pict checkout.txt /o:3 # randomised, replayable: seed 42 gives the same rows every time$ pict checkout.txt /r:42 # try 50 seeds, keep the smallest table$ pict checkout.txt /b:50 # start from rows you wrote by hand$ pict checkout.txt /e:must-have.tsv# a leading ~ marks an invalid value:# PICT puts at most one invalid value in a rowCard number: 4242424242424242, ~empty, ~letters, ~expiredName: Ann, O'Neil, ~emptyInstallWindows: download pict.exe from the GitHub releases page. macOS and Linux: clone github.com/microsoft/pict, then cmake -S . -B build and cmake --build build.
# pip install allpairspy pytestimport pytestfrom allpairspy import AllPairs PARAMS = [ ["Chrome", "Firefox", "Safari", "Edge"], # browser ["Windows", "macOS", "Linux"], # os ["Card", "PayPal", "Saved card"], # payment ["Guest", "Member"], # user ["EN", "DE", "JA"], # language] def is_valid(row): # called on partial rows while the generator builds them if len(row) > 1 and row[0] == "Safari" and row[1] != "macOS": return False if len(row) > 3 and row[3] == "Guest" and row[2] == "Saved card": return False return True CASES = [tuple(c) for c in AllPairs(PARAMS, filter_func=is_valid)] @pytest.mark.parametrize("browser, os_name, payment, user, lang", CASES)def test_checkout(browser, os_name, payment, user, lang): ...NoteThe filter sees half-built rows, so check the length before you read an index. AllPairs(PARAMS, n=3) gives every triple.
// tests/checkout.spec.ts: one test per row of pairwise.csv// (exported from /tools/pairwise: "#,Payment,User,Language,Coupon")import fs from "node:fs";import { test, expect } from "@playwright/test"; const [head, ...rows] = fs.readFileSync("tests/data/pairwise.csv", "utf8") .trim().split("\n").map((line) => line.split(",")); for (const row of rows) { const c = Object.fromEntries(head.map((h, i) => [h, row[i]])); test(`checkout #${c["#"]}: ${c.Payment}, ${c.User}, ${c.Language}`, async ({ page }) => { await page.goto(`/${c.Language.toLowerCase()}/cart`); // …log in for Member, apply c.Coupon, pay with c.Payment await expect(page.getByRole("heading", { level: 1 })).toBeVisible(); });}NoteBrowser and OS usually aren’t per-test data in Playwright: they are projects or CI matrix jobs. Put in-app parameters (payment, user, language, coupon) in the CSV and let the projects cover browsers.
Mistakes that cancel the savings
Each looks harmless. Each either inflates the table or quietly drops coverage.
Every value of a range: age 1, 2, 3 … 120.
One value per class plus the edges: 17, 18, 65, 66. The biggest parameter decides the minimum row count.
Invalid values mixed into the main model.
Two invalid values in one row hide each other: the first error stops the form. Keep invalid values out, or mark them with ~ in PICT.
No constraints, then deleting impossible rows by hand.
Each deleted row takes its pairs with it, so coverage silently drops. Declare the rule and regenerate.
Treating the table as complete testing.
It covers interactions of two values. Add your top risk paths by hand and go 3-way where money or safety is involved.
Generated rows, no expected results.
A row is a question, not a test. Write the expected result before you run it, or you only test that nothing crashes.
Regenerating on every run.
Different rows each time means a failure you can’t reproduce. Commit the table or pin the seed (/r:42 in PICT).
Using pairwise for two or three parameters.
With two parameters every pair is every combination: nothing to save. The savings start at four parameters or more.
Outputs listed as parameters (“Result: success, error”).
You don’t choose the result, the app does. Model only what you can set before the test starts.
When pairwise is the wrong tool
Pairwise answers “which combinations of settings?”. Three common problems look similar and need something else.
When
Rules decide the outcome (if A and not B, then discount)
Every rule combination has its own expected result. Pairwise would skip some.
When
One numeric or length input
The bugs sit on the edges: min − 1, min, max, max + 1.
When
The order of actions matters (cart → login → pay)
State transitions
Pairwise ignores order. Draw the states, then test every arrow between them, including the ones that should be refused.
Two values at a time find most interaction bugs.
Not all of them. Add your risky paths by hand and go 3-way where it hurts.
FAQ
What is the best free pairwise test case generator?
For a quick table with no install, a browser generator such as AQAPro Pairwise. For constraints, 3-way coverage and CI, Microsoft PICT is the most capable free option. If your tests are in Python, allpairspy generates the rows inside pytest.
What is the difference between pairwise and combinatorial testing?
Pairwise (2-way) covers every pair of parameter values. Combinatorial testing is the general idea at any strength t: 3-way covers every triple, 4-way every group of four. Pairwise is the most common strength because it finds most interaction bugs with the fewest tests.
How many test cases does pairwise testing save?
It depends on the model. Five parameters with 4, 3, 3, 2 and 3 values have 216 combinations and need 14 pairwise rows. The savings grow with the number of parameters: six parameters with six values each have 46,656 combinations and need about 50 rows.
What is the minimum number of pairwise test cases?
At least the value counts of the two largest parameters multiplied together, because every value of one must meet every value of the other. With 4 browsers and 3 operating systems you cannot go below 12 rows.
Does pairwise testing find all bugs?
No. It covers interactions of two values. NIST's studies found that pairs triggered roughly half to almost all failures depending on the system, and 3-way coverage caught most of the rest. Add high-risk paths by hand and use 3-way for payments, permissions and safety.
How do I handle impossible combinations in pairwise testing?
Declare them as constraints, for example IF [Browser] = "Safari" THEN [OS] = "macOS"; in PICT, or a filter function in allpairspy. Deleting impossible rows after generation also deletes the valid pairs they carried, so coverage drops without warning.
Is PICT better than an online pairwise tool?
They serve different needs. PICT supports constraints, any strength, seeding and runs in CI, but it is a command-line tool. An online generator is faster for a quick table with no setup. Many testers sketch in the browser and move the model to PICT once it needs constraints.