DevTools Logo

Pairwise Test Case Generator

Pairwise Test Case Generator

Reduce a configuration matrix to a minimal all-pairs test set with a coverage certificate.

Runs in your browser
Values are comma-separated; deterministic tie-breaks make output repeatable.
Try an example

Parameters

4 lines · 119 chars

Test matrix

14 cases · 87% reduction · 63/63 pairs

108 full combinations → 14 tests (87% fewer)

Generated test cases
Testbrowseroslocaleauth
1ChromeWindowsen-USguest
2ChromemacOSde-DEmember
3ChromeLinuxpt-BRadmin
4FirefoxWindowsde-DEadmin
5FirefoxmacOSen-USguest
6FirefoxLinuxen-USmember
7SafariWindowspt-BRmember
8SafarimacOSen-USadmin
9SafariLinuxde-DEguest
10EdgeWindowsen-USguest
11EdgemacOSpt-BRguest
12EdgeLinuxde-DEmember
13FirefoxWindowspt-BRguest
14EdgeWindowsen-USadmin
Coverage certificate (63/63)

Every listed pair appears in at least one generated row. Missing pairs are listed explicitly when constraints make full coverage impossible.

Test,browser,os,locale,auth
1,Chrome,Windows,en-US,guest
2,Chrome,macOS,de-DE,member
3,Chrome,Linux,pt-BR,admin
4,Firefox,Windows,de-DE,admin
5,Firefox,macOS,en-US,guest
6,Firefox,Linux,en-US,member
7,Safari,Windows,pt-BR,member
8,Safari,macOS,en-US,admin
9,Safari,Linux,de-DE,guest
10,Edge,Windows,en-US,guest
11,Edge,macOS,pt-BR,guest
12,Edge,Linux,de-DE,member
13,Firefox,Windows,pt-BR,guest
14,Edge,Windows,en-US,admin

Details

Pairwise testing covers every pair of parameter values in far fewer cases than the full cartesian product. This generator builds a deterministic covering array: each new row is anchored to an uncovered pair, then filled greedily by choosing the value that covers most remaining pairs. It verifies the result by enumerating all t-way tuples and reporting any that constraints make impossible. Forbidden pairs can be entered as param=value | param=value rows. Choose 2-way or 3-way strength, review the matrix and coverage certificate, then copy or download CSV for TestRail, Xray or a spreadsheet. No randomness and no network calls.

More examples

Browser compatibility

browser: Chrome, Firefox, Safari, Edge
os: Windows, macOS, Linux
locale: en-US, de-DE, pt-BR
auth: guest, member, admin

120 cartesian combinations collapse to a much smaller all-pairs matrix with a proof of coverage.

Impossible pair

os=Linux | browser=Safari → that combination never appears in a row

Forbidden pairs are excluded from both generation and the coverage certificate.

CSV export

Test,browser,os,locale,auth
1,Chrome,Windows,en-US,guest

The CSV includes a row number column and quotes values containing commas or quotes.

Examples

Browser grid

Input
4 browsers × 3 OS × 3 locales × 3 auth states = 108
Output
Around a dozen all-pairs cases

The coverage certificate lists every included pair.

Constraint

Input
os=Linux | browser=Safari
Output
No test row contains both values

Forbidden pairs are removed from the tuple enumeration.

Three-way

Input
Strength 3 with 4 binary parameters
Output
32 triples covered by a smaller matrix

The same greedy construction generalizes to triples.

About this tool

Pairwise Test Case Generator converts a configuration matrix — one parameter per line with comma-separated values — into a compact covering array. Every pair of values across any two parameters appears in at least one generated test case, typically reducing hundreds of cartesian combinations to a few dozen rows.

The construction is deterministic: each new row is anchored to an uncovered pair and the remaining parameters are filled greedily by the value that covers the most uncovered pairs. Ties resolve in parameter/value order, so identical input always produces identical output.

Forbidden pairs can be declared as param=value | param=value lines. They are excluded from the pair enumeration and never placed in a row; if constraints make some pairs impossible, the coverage certificate lists them explicitly instead of claiming a false pass.

The result panel shows the reduction statistics, the full matrix with row numbers, a coverage certificate and a CSV export suitable for TestRail, Xray or a spreadsheet. Everything runs locally with no randomness and no uploads.

What this tool does not do

  • The greedy construction is deterministic but not guaranteed globally minimal for every matrix.
  • Strength is limited to 2-way and 3-way.
  • Forbidden pairs are pairwise only; they do not express higher-order business rules.
  • Very large 3-way grids can be slow; the 20 × 12 guidance keeps generation responsive.

How to use this tool

  1. Describe the matrix

    Write one parameter per line as name: value1, value2, value3. Up to 20 parameters and 12 values each are supported.

  2. Add constraints

    Optionally add forbidden pairs such as os=Linux | browser=Safari, one per line.

  3. Choose strength

    Use 2-way for standard pairwise coverage or 3-way when interactions of three parameters matter.

  4. Export

    Review the coverage certificate, then copy or download the CSV test matrix.

Use cases

Compatibility testing

Cover browser, OS, locale and auth combinations without running the full grid.

Configuration grids

Test feature flags and deployment settings with a defensible minimal matrix.

Automation suites

Import the CSV into a test management system to parameterize runs.

Impossible combinations

Document forbidden pairs explicitly while retaining a coverage proof.

Input and output formats

FieldFormat
Parameter linebrowser: Chrome, Firefox, Safari
Forbidden pairos=Linux | browser=Safari
MatrixNumbered rows with one column per parameter
CSVTest column first; values with commas/quotes are escaped
Certificatecovered / total tuples plus any explicitly impossible pairs

Pair count is the sum over parameter pairs of |Vi| × |Vj| minus forbidden pairs.

Common mistakes

Mistake:Expecting random test data.

Fix:This tool computes covering arrays, not fake records; output is deterministic for identical input.

Mistake:Entering values separated by semicolons.

Fix:Values are comma- or tab-separated after the colon; one parameter per line.

Mistake:Using a forbidden pair that makes full coverage impossible.

Fix:The certificate reports impossible pairs explicitly rather than silently omitting them.

Mistake:Assuming pairwise covers every triple.

Fix:Use the 3-way strength option when triple interactions matter.

Mistake:Exceeding practical grid sizes.

Fix:Stay within 20 parameters and 12 values each; 3-way grows cubically.

Frequently asked questions

What is pairwise testing?

It is a combinatorial test-design technique: instead of running every cartesian combination, you choose cases so that every pair of parameter values appears together at least once. Most defects involve interactions of two parameters, so this gives strong coverage with far fewer tests.

How many cases will I get?

It depends on the number of parameters and values; the result panel shows the cartesian size, generated case count, reduction percentage and the exact pair count. Usually a 4-parameter grid shrinks by 70–90%.

What about 3-way combinations?

Switch the covering strength to 3-way. The same greedy construction enumerates triples instead of pairs; be aware that the number of tuples grows cubically with the value count.

How are constraints handled?

Enter forbidden pairs as param=value | param=value. They are excluded from the coverage certificate and never appear together in a row. If constraints make some pairs impossible, the certificate lists those pairs explicitly.

Is the result deterministic?

Yes. There is no randomness: all tie-breaks are positional, so the same parameter table always yields the same matrix and CSV.

Does it generate fake test data?

No. It computes a covering array of parameter values; it does not fabricate users, emails or other records.

References & standards