Skip to content
Tools

Pairwise Test Generator

Cover every pair of parameter values with far fewer test cases.

Local
Parameters

Give each parameter a name and a comma-separated list of values.

What this tool does

This tool takes your test parameters and their values and produces a small set of test cases that, together, cover every pair of values from every pair of parameters. You get most of the defect-finding power of testing all combinations, for a fraction of the cases.

Why pairwise works

Testing every combination of parameters grows out of control fast: four parameters with three values each is already 81 cases. In practice most defects are triggered by a single value or by two values interacting, not by rare three- or four-way combinations. Covering every pair catches that large class of defects while keeping the number of cases small and reviewable.

How to use it

  1. Add a parameter for each factor that varies, such as browser, role or payment method.
  2. List its values, separated by commas.
  3. Generate the set and read the table, or copy it as CSV into your test plan.

The status line shows how many cases the pairwise set uses compared with testing every combination.

Good to know

Pairwise covers every two-way interaction, not three-way or higher. If you know a specific trio of settings is risky, add that exact case by hand alongside the generated set. The generator uses a greedy algorithm, so the result is small and complete, though not always the smallest set that exists.

Frequently asked questions

Why pairwise instead of every combination?
Many defects depend on the interaction of just two parameters. Covering every pair catches those while using a fraction of the full combination count.
Does it find the smallest possible set?
It uses a greedy algorithm that produces a small set and guarantees every pair is covered. The absolute minimum is a hard problem, so the result is near-minimal rather than provably smallest.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.