Generate pairwise (all-pairs) and n-wise test cases in your browser. Enter the parameters in a grid, or write a Microsoft PICT model as text, with constraints, sub-models, aliases, weights and negative values. Copy the result to a spreadsheet or download it as CSV, TSV, JSON or JSON Lines.
Testing every combination of inputs quickly becomes impossible: 5 devices × 2 operating systems × 3 browsers × 5 versions is already 150 cases. Pairwise testing (all-pairs testing) instead picks a small set of cases in which every pair of values from any two parameters appears at least once. Many defects are caused by the interaction of just two settings, so this catches most of them with far fewer tests.
You can also raise the strength to 3-wise or higher to cover every combination of three or more parameters. The test sets (covering arrays) are built with the covertable library.
Switching between Grid and Text converts the contents. The grid can only hold plain parameters, so a model that uses aliases, weights, negative values, sub-models or formula columns stays in Text.
# Parameters: name, colon, comma-separated values
Type: Single, Span, Stripe, Mirror, RAID-5
Size: 10, 100, 500, 1000, 5000
File system: FAT, FAT32, NTFS
# Constraints
IF [File system] = "FAT" THEN [Size] <= 4096;
| Syntax | Meaning |
|---|---|
Name: a, b, c | A parameter and its values ("a, b" for a value with a comma) |
~value | Negative value: at most one per row, to test error cases one at a time |
a | b | Aliases: any name can be used in constraints; the first is output |
value (N) | Weight: makes the value more likely when rows are filled in |
{ A, B, C } @ 3 | Sub-model: cover these parameters with a different strength |
Name: =FORMULA([A], [B]) | Formula column: output on every row with [A] replaced by that row's cell (A1, B2, …) |
IF … THEN … ELSE …; | Constraint |
=, <>, >, <, >=, <= | Comparisons (text values in double quotes) |
IN {"a", "b"}, LIKE "ab*" | Set membership, wildcard match (* any text, ? one character) |
AND, OR, NOT, ( ) | Combine conditions |
+, -, *, /, % | Arithmetic, e.g. [A] * [B] > 100 |
# comment | Comment line |
Problems in the model are listed under the editor, and the lines with errors are highlighted.
It reads the PICT model format, including constraints, sub-models, aliases, weights and negative values. It also accepts a few extensions that PICT does not: arithmetic in constraints, # comments inside constraints, and formula columns. Models that use them will not run in the original PICT. The rows generated are not identical to PICT's, but they cover the same combinations.
It depends on the parameters, especially the two with the most values: pairwise testing needs at least (values of the largest parameter) × (values of the second largest) cases. The generator is greedy, so the result is small but not always the minimum; Optimize can shrink it further.
Your constraints rule out some value pairs entirely, so they can never appear. Check that the rules are what you intended. "Pruned" in the result counts these pairs.
No. Generation runs entirely in your browser.