Use case · Bugs and regression
Regression test cases from bug reports
A fixed bug needs two things before it's closed: a test that proves the fix, and tests for the behaviour around it that the fix could break. Paste the bug report and Testfolio drafts both, from your reproduction steps and the expected behaviour.
Open the test case generatorWhat to paste
- The reproduction steps, the actual and the expected result, and the environment.
- Any fix notes from the developer: which component changed is a strong hint about where regressions can appear.
- Related rules the fix touches, such as validation per country or role, so the regression tests use real values.
Example
BUG-2291 — Saved shipping address lost after changing country
Environment: web checkout, production, Chrome 141 and Safari 19.
Steps to reproduce
1. Sign in as a customer with a saved address in Germany.
2. Add any item to the cart and go to checkout.
3. Change Country from Germany to Austria, then back to Germany.
Actual: street, postcode and city fields are empty; the saved address is gone
from the address picker after reload.
Expected: switching country only clears fields that are invalid for the new
country; the saved address is never deleted unless the user deletes it.
Fix notes (dev): the country change handler called deleteDraftAddress() with the
saved address ID. Postcode format differs per country (DE 5 digits, AT 4 digits).An illustrative fix check and regression test of the kind Testfolio drafts for this report, shortened for this page:
- Preconditions:
- Signed in as a customer with one saved address in Germany. One item in the cart.
- Basis:
- Documented (BUG-2291 expected result)
| # | Action | Expected result |
|---|---|---|
| 1 | Open checkout and change Country from Germany to Austria. | The saved German address is still listed in the address picker. |
| 2 | Change Country back to Germany. | The saved address can be selected again with street, postcode and city intact. |
| 3 | Reload the page and open the address picker. | The saved German address is still listed. |
- Preconditions:
- Checkout with the saved German address selected (postcode 10115).
- Test data:
- Country: Austria
- Basis:
- Documented (fix notes: DE 5 digits, AT 4 digits)
| # | Action | Expected result |
|---|---|---|
| 1 | Change Country to Austria without editing the postcode. | The postcode is flagged as invalid for Austria and checkout can't continue. |
| 2 | Enter the Austrian postcode 1010. | The postcode is accepted; the saved German address is unchanged. |
A full set would typically also cover editing a saved address, deleting one on purpose (which should still work) and a customer with no saved address. The report doesn't say what should happen to a half-typed new address when the country changes; that is a gap to raise as an open question, not an expected result to invent.
Using the result in a regression run
- Keep the fix check as High priority and add it to the release's regression suite.
- Export to Excel: each test is a row, with an Execution Status column (Not Run, Pass, Fail, Blocked) and an empty Actual Result column for the run. Markdown and CSV are also available.
- Edit freely before exporting; your edits are what gets exported.
Limitations
- Testfolio reads only what you paste. It doesn't see your code, logs or the change itself, so regression coverage follows the report and fix notes.
- It doesn't run tests or tell you whether a bug is fixed; the tests are a plan for someone to execute.
- Remove personal data from bug reports first. Common credential formats are redacted automatically, but redaction is pattern-based and names or customer records aren't removed.
More on inputs and redaction is in the documentation.
Try it with your own requirements
Browsing and sample results need no account. Generating tests needs a sign-in and uses credits; editing and exports are free.
Open the test case generator