Skip to content

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.

  • Updated
  • 6 tools compared
  • Beginner friendly
checkout.model
  • BrowserChromeFirefoxSafariEdge4
  • OSWindowsmacOSLinux3
  • PaymentCardPayPalSaved card3
  • UserGuestMember2
  • LanguageENDEJA3
Every combination2164 × 3 × 3 × 2 × 3
Every pair1415× fewer tests

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
Combinations4 × 3 × 3 × 2 × 3 = 216multiply the value counts
Pairs to cover89add up value counts of every two parameters
Pairs per row5 × 4 / 2 = 10each row covers many pairs at once

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

#BrowserOSPaymentUser
1ChromeWindowsCardGuest
2ChromemacOSPayPalMember
3FirefoxWindowsPayPalGuest
4FirefoxmacOSCardMember
5SafariWindowsCardMember
6SafarimacOSPayPalGuest

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

WindowsmacOS
Chromenot coverednot covered
Firefoxnot coverednot covered
Safarinot coverednot covered

Browser × Payment

CardPayPal
Chromenot coverednot covered
Firefoxnot coverednot covered
Safarinot coverednot covered

Browser × User

GuestMember
Chromenot coverednot covered
Firefoxnot coverednot covered
Safarinot coverednot covered

OS × Payment

CardPayPal
Windowsnot coverednot covered
macOSnot coverednot covered

OS × User

GuestMember
Windowsnot coverednot covered
macOSnot coverednot covered

Payment × User

GuestMember
Cardnot coverednot covered
PayPalnot coverednot 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.

Share of failures triggered by this many parameters or fewer
  • 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.

  1. 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: parameterstext
    Browser   OS        Payment      User     LanguageChrome    Windows   Card         Guest    ENFirefox   macOS     PayPal       Member   DESafari    Linux     Saved card            JAEdge
  2. Cut 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 BVA
  3. Write 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)text
    IF [Browser] = "Safari" THEN [OS] = "macOS";IF [User] = "Guest" THEN [Payment] <> "Saved card";
  4. 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 browser
  5. Add 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.

  6. 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.

I work6 tools match
  1. 01Browser · Free

    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
  2. 02CLI, open source · Free

    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.

  3. 03Python library · Free

    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.

  4. 04Desktop + CLI (Java) · Free, by email

    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.

  5. 05Web app · Paid

    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.

  6. 06Inside Jira · Paid (Xray Enterprise)

    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.

ToolNo installConstraints3-way +Seeds / must-have rowsScriptable
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.txttext
# 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";
terminalbash
# 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
card.txt: negative valuestext
# a leading ~ marks an invalid value:# PICT puts at most one invalid value in a rowCard number: 4242424242424242, ~empty, ~letters, ~expiredName:        Ann, O'Neil, ~empty

InstallWindows: 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.

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)

    Decision table

    Every rule combination has its own expected result. Pairwise would skip some.

  • When

    One numeric or length input

    Boundary values

    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.