Pairwise Test Case Generator
Reduce a configuration matrix to a minimal all-pairs test set with a coverage certificate.
Parameters
4 lines · 119 charsTest matrix
14 cases · 87% reduction · 63/63 pairs108 full combinations → 14 tests (87% fewer)
| 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 |
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, admin120 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 rowForbidden pairs are excluded from both generation and the coverage certificate.
CSV export
Test,browser,os,locale,auth
1,Chrome,Windows,en-US,guestThe CSV includes a row number column and quotes values containing commas or quotes.
Examples
Browser grid
4 browsers × 3 OS × 3 locales × 3 auth states = 108Around a dozen all-pairs casesThe coverage certificate lists every included pair.
Constraint
os=Linux | browser=SafariNo test row contains both valuesForbidden pairs are removed from the tuple enumeration.
Three-way
Strength 3 with 4 binary parameters32 triples covered by a smaller matrixThe 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
Describe the matrix
Write one parameter per line as name: value1, value2, value3. Up to 20 parameters and 12 values each are supported.
Add constraints
Optionally add forbidden pairs such as os=Linux | browser=Safari, one per line.
Choose strength
Use 2-way for standard pairwise coverage or 3-way when interactions of three parameters matter.
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
| Field | Format |
|---|---|
| Parameter line | browser: Chrome, Firefox, Safari |
| Forbidden pair | os=Linux | browser=Safari |
| Matrix | Numbered rows with one column per parameter |
| CSV | Test column first; values with commas/quotes are escaped |
| Certificate | covered / 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
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.gitattributes Generator
Build .gitattributes rules for line endings, Git LFS, GitHub linguist marks and merge drivers — with a one-line explanation for every rule.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
A/B Test Sample Size Calculator
Compute required sample size per variant and test duration from baseline conversion rate, minimum detectable effect, alpha and power.
ABA Routing Number Validator
Validate 9-digit US ABA routing numbers with 3-7-1 Mod-10 breakdown.