A regression test re-checks a feature that already worked, so a new change does not quietly break it. This page shows a regression test template with six worked examples for an example online shop, and gives it to you as an Excel workbook, a CSV file or Markdown.
How to use it#
- Read the examples above. Each row has a feature, preconditions, numbered steps, an expected result, a priority and the date it last ran.
- Select Download .xlsx for a workbook with a How to use tab, the examples and 20 blank rows, or Download .csv to import the rows into another tool.
- Write one row for each behaviour your users rely on, and give it a priority: High for what would stop people, Medium for the rest.
- On each release, run the High rows at least, update Last run, and set Status.
What the columns are for#
Preconditions say what must be true before the first step, such as "signed in as a test user" or "a product in the cart", so each row can start without reading the one before it. Priority decides what runs when there is no time for everything. Last run shows which rows have gone unchecked for a while; in the examples, the order history and the password reset email were last run a week before the rest, and the reset email has not been run in this round yet. A failed row, such as the card payment in the examples, is a bug to report with the steps already written.
Keeping the list healthy#
A regression list grows with every feature, and a long list that nobody finishes protects nothing. Remove rows for features that are gone, merge rows that check the same thing, and add a row for every bug that reached your users. Rows that run on every release with the same steps are the first to automate, because a script repeats them exactly and never skips one.
Questions#
How many regression tests do I need?#
Enough to cover what your users rely on most. Start with the High priority paths and add rows as bugs are found.
How often should regression tests run?#
Before every release, at least the High priority rows. The more often you ship, the more it pays to automate them.
Is the template free?#
Yes. Download it without an account and use it in your own plans and tools.
Will these examples fit my app?#
No. They are for an example online shop. Replace them with your own app's features and keep the columns.