Guide

Steps to Reproduce a Bug: Examples

Steps to reproduce (reproduction steps) are the starting state, test data and ordered actions that let someone else try to see the same failure. Write one action per line, then the expected result, the actual result, the tested release and browser, and how many attempts failed.

Last updated:

What are steps to reproduce? A definition and template

Steps to reproduce a bug are the starting state, test data, and ordered actions that let someone try to observe the same failure. Put one action on each line. Then separate the expected result from what actually appeared, and record the tested release, browser, device, and how many attempts failed. A reproduction describes an observation; it does not establish the root cause or prescribe a fix.

Mozilla’s bug-writing guidance likewise calls for precise steps, expected and actual results, and a clear separation between observations and speculation.

# Reproduction checklist

Title: [Name the observed failure, not a suspected cause]

Reproduction steps:
Starting state: [Page, signed-in role or clean session, test data, and relevant setting]
1. [One action with the exact control or value]
2. [Next action]
3. [Action that exposes the failure]

Expected result: [What should happen after the last step]
Actual result: [What happened, including the visible message or missing change]
Environment: [Tested release, page, browser and version, OS/device, viewport, relevant extensions or settings]
Evidence references: [Reviewed screenshot, recording, console excerpt, or issue link; omit private data]

Frequency: [Attempts and failures, for example 2 of 5; say if untested]
Comparison: [Other browser/device/session tested, its result, and its version; say if untested]

Before sharing: Recreate the stated starting state for each attempt without removing data or settings needed to trigger the failure. Remove personal data, tokens, and client details from steps and evidence.

Collect reports on your own site with ContextCapture

ContextCapture adds a bug report widget to your website. Testers send a screenshot, their environment and their notes from the page, reports save to your inbox and, when the site’s destination is GitHub, open as issues in the repository you pick.

Use the same evidence habits on your own site: testers report from the live page, and each report saves to your inbox.

Steps to reproduce a bug: two worked examples

These cases are fictional. Their attempt counts show how to write a report, not measured reliability for any product.

Builder

Intermittent save failure in a dashboard

Example only: these counts describe a sample report, not a measured product failure.

Starting state: Signed in as an editor on a test workspace with one existing draft, on the dashboard before opening that draft.

Reproduction steps
  1. Open the existing draft.
  2. Change the draft title to “Release notes test”.
  3. Select Save once and wait for the save indicator to finish.
  4. Reopen the draft to inspect its title.

Expected result: The saved draft shows the new title after reopening it.

Actual result: On two of five fictional attempts, the save indicator finished but the old title remained after reopening.

Frequency: In this fictional example, 2 failures in 5 attempts, each begun from the same draft state.

Environment: Example: staging release 2026.10, Chrome 129 on macOS, desktop viewport 1440 × 900.

Comparison: Example: repeat from an equivalent draft in a clean Chrome profile and record its result; a changed outcome does not prove an extension caused the failure.

Agency / QA

Client contact form in one mobile browser

Example only: replace the sample environment with the tested client release and device.

Starting state: Clean session on the client staging contact page at a 390 px viewport, with a blank form and non-private test contact details ready.

Reproduction steps
  1. Enter a test message while leaving Email empty.
  2. Submit once to show the validation message.
  3. Enter a valid test email address.
  4. Submit again.

Expected result: The message remains in the form and a confirmation appears after the corrected submission.

Actual result: The message clears after validation on Safari; no confirmation appears on the next submit.

Frequency: In this fictional example, 3 failures in 3 Safari attempts and 0 in 3 Chrome attempts.

Environment: Example: Safari 18 on iPhone 15, iOS 18, 390 × 844 viewport, client staging release 2026.10.

Comparison: Example: repeat the same release, test data, device, viewport, and steps in Chrome 129 on iPhone 15. Record the different result; it does not prove a browser cause.

Shorten the path without losing the trigger

For a consistent failure, try removing one earlier action at a time, then repeat from the same starting state. If the failure disappears, restore that action: it may be a triggering condition. For example, a synthetic settings bug may need “switch alerts off, save, reload”; visiting an unrelated dashboard first can be omitted if the result stays the same. Keep the test data, role, and setting that still matter.

For intermittent failures, reset to the stated starting state before each attempt and report counts such as “2 failures in 5 attempts.” For browser comparisons, use the same release and test data where possible, record each browser and device version, and note what differed. If you cannot reproduce again, write “not reproduced in this attempt” with the conditions you tested; do not invent a frequency or a fix.

Check the starting state before calling a bug intermittent

In the fictional settings example, a save may appear inconsistent if one attempt starts with alerts already off and another starts with alerts on. Reset the setting and use the same test account before each attempt, then count failures out of total attempts. If resetting changes the outcome, add that state to the steps instead of reporting a frequency across unlike trials.

Mozilla’s bug-writing guidance calls for specific reproduction steps and a clear actual result. When a precondition remains unknown, label it unknown and ask the reporter which account, setting, or earlier action they used.

Write the follow-up when one retest does not reproduce

Fictional alert-setting retest

Original observation: On a test editor account, alerts returned to “on” after Save and reload. The reporter did not record whether alerts were already on before the attempt.

Follow-up: “Retested once on the same release and browser with alerts initially on; switched them off, saved, and reloaded. Alerts stayed off. Original failure remains unconfirmed; original starting value and any earlier actions are unknown.” Keep both outcomes and ask for the missing starting state before comparing frequency.

This phrasing follows Mozilla’s guidance to separate precise steps, actual results, and speculation. A successful retest narrows what was observed in that attempt; it does not erase the first report.

Turn your notes into a report

Use the checklist to fill the free bug-report generator’s matching fields: title, steps, expected and actual results, environment, and evidence references. Include frequency and comparison alongside the relevant steps or environment; the generator has no separate fields for them. The sample report shows how the observations fit a complete handoff. Add a focused console excerpt or an annotated screenshot only when it helps a reviewer see the result. Review private details before sharing.

Open bug-report generator

Updated October 21, 2026. Originally published October 8, 2026.

Examples for your team

Builder example

A builder starts from a signed-in dashboard, opens a draft, changes a field, and records the failures across five fictional attempts.

Start your 14-day free trial

Agency / QA example

A QA tester repeats a contact-form failure with the same test data, release, and device across two browsers.

Start your 14-day free trial

Capture the next report with ContextCapture

Start a 14-day free trial. The beta plan is $7.99 per month for unlimited projects and reports, with up to 5 team members.