How to Write Clear Steps to Reproduce a Bug

Why Steps to Reproduce Matter

A bug report is only useful if another person can understand and reproduce the problem.

A report such as:

Checkout is broken.

tells the developer almost nothing.

Which product was used?

Which payment method?

Was the user logged in?

What happened after clicking the button?

Did the problem occur every time?

Clear reproduction steps turn an observation into something another tester or developer can investigate.

A good sequence should answer:

What exact actions lead from a known starting point to the defect?

For the broader structure of defect documentation, see How to Write a Good Bug Report: A Practical Guide.


What Are Steps to Reproduce?

Steps to reproduce are the ordered actions needed to trigger a defect.

They should allow another person to follow the same path and observe the same behavior.

For example:

  1. Open the login page.
  2. Enter a valid email address.
  3. Enter an incorrect password.
  4. Click Log In.
  5. Observe the error message.

The steps describe the journey.

The bug report should then separately state:

Expected Result:
An incorrect-password message is displayed.

Actual Result:
The page reloads without displaying any error.

This separation keeps the report easy to understand.

For a reusable report structure, see Bug Report Template: What Every Defect Report Should Include.


Start From a Known State

Good reproduction steps begin from a clear starting condition.

For example:

User is logged in as Administrator.

or:

Cart is empty.

or:

Product A is in stock.

or:

Browser cache has been cleared.

These are preconditions.

They should usually be documented separately from the numbered steps.

Without them, another tester may perform exactly the same visible actions and still get a different result.


Separate Preconditions From Actions

Consider this report:

Log in as Viewer, make sure Customer A exists and belongs to another user, open Contacts, search for Customer A and edit it.

Too much setup is mixed into one instruction.

A clearer version is:

Preconditions:

  • User A has the Viewer role.
  • Customer A exists.
  • Customer A belongs to User B.

Steps to Reproduce:

  1. Log in as User A.
  2. Open Contacts.
  3. Search for Customer A.
  4. Open the customer record.
  5. Attempt to edit the name.
  6. Click Save.

Separating setup from execution makes the test much easier to repeat.

For permission-specific QA, see Role and Permission Testing for SaaS Applications.


Use One Clear Action Per Step

Each step should ideally describe one meaningful action.

Weak:

Log in, open Settings, change the email address, save it and reload the page.

Better:

  1. Log in.
  2. Open Settings.
  3. Change the email address.
  4. Click Save.
  5. Reload the page.

Breaking actions apart helps developers identify exactly where the behavior changes.

It also makes retesting faster.


Keep the Sequence in the Exact Order

Order matters.

If the bug occurs only when the user:

applies a coupon → changes quantity → opens checkout

do not rewrite the sequence as:

changes quantity → applies coupon → opens checkout

unless you have verified that both paths reproduce the defect.

Small changes in state can completely change the result.

The final report should describe the actual tested sequence.


Use Specific Interface Names

Avoid vague wording such as:

Click the button.

Better:

Click Add to Cart.

Instead of:

Open the menu.

write:

Open Account → Billing.

Instead of:

Select the option.

write:

Select Annual Plan.

The tester reading the report should not need to guess which control you mean.


Use the Text the User Actually Sees

When possible, reference visible interface labels.

For example:

  1. Open Account Settings.
  2. Select Security.
  3. Click Change Password.

This is usually clearer than:

Navigate to the password configuration screen.

Precise language also reduces ambiguity when the product contains several similar controls.


Include Exact Test Data When It Matters

Some defects depend on specific input.

For example:

Enter SAVE10 in the coupon field.

is much more useful than:

Enter a coupon.

Likewise:

Set quantity to 11.

may be important if the defect occurs only above a maximum of 10.

Useful test data can include:

  • username;
  • product;
  • quantity;
  • coupon;
  • date;
  • search query;
  • form input;
  • role.

Do not include real passwords, tokens, or unnecessary sensitive information.


Use Stable Test Data Where Possible

If the report depends on data that constantly changes, reproduction becomes difficult.

For example:

Open the newest customer.

may point to a different record tomorrow.

Prefer:

Open test customer QA Customer 001.

Stable test accounts and records make defect reproduction much more reliable.


Include the Relevant URL

If the defect occurs on a specific page, provide the page URL where appropriate.

For example:

Page:
https://example.com/account/settings/

This is especially useful for websites containing many:

  • products;
  • landing pages;
  • admin screens;
  • custom post types.

Do not include sensitive tokens or private credentials in URLs.


Include Environment Information

Reproduction steps alone may not be enough if the issue is environment-specific.

Useful context may include:

Environment: Staging
Browser: Safari
Operating System: macOS
Viewport: 390px
Role: Member

A responsive defect without viewport information can be extremely difficult to reproduce.

A permission defect without the role may be impossible to understand.


Do Not Hide Important Conditions Inside the Title

A title may say:

Safari: Menu does not open.

That is useful.

But Safari should still appear in the environment information if it is required for reproduction.

The title helps scanning.

The report body provides the complete context.


Keep Steps Minimal — But Complete

Good steps contain everything necessary and nothing irrelevant.

Suppose the original sequence is:

  1. Open homepage.
  2. Scroll around.
  3. Open About.
  4. Return to homepage.
  5. Open Products.
  6. Select Product A.
  7. Add Product A to cart.
  8. Open cart.
  9. Change quantity.

If steps 1–5 have no effect on the bug, remove them.

The final reproduction sequence should contain the shortest verified path to the defect.


Do Not Remove Necessary State

Minimal does not mean incomplete.

Imagine a cart defect that occurs only after applying a coupon.

If you remove the coupon step because it looks like extra detail, the bug may no longer reproduce.

Every included step should have a reason.

Every unnecessary step should be removed.


Reproduce the Bug Again After Simplifying the Steps

This is one of the most important habits.

After writing a cleaner sequence:

start again from the beginning and follow only the final steps.

If the bug no longer appears, something important was removed.

A report is not finished simply because the wording looks clear.

The final sequence should actually reproduce the issue.


Avoid Combining Expected Behavior With the Steps

Do not write:

Click Save and the record should update, but it doesn’t.

The step should be:

Click Save.

Then document separately:

Expected Result:
The updated record is saved.

Actual Result:
The button enters a loading state and the record is not updated.

This separation makes reports easier to scan.


Describe What You Observed, Not What You Assume Happened

Bad:

Click Save and the database fails.

Unless you verified the database failure, that is speculation.

Better:

Click Save.

Then:

Actual Result:
The loading indicator remains visible and the updated value is not displayed after refresh.

A developer can investigate the technical cause.

QA should report observable evidence.


Do Not Put Root-Cause Theories Into Reproduction Steps

Suppose the console shows an error after checkout.

Do not write:

Trigger the broken JavaScript request.

Instead describe the user action:

Click Place Order.

Then include the technical evidence separately:

Technical Evidence:
Browser console shows a JavaScript error immediately after the button is clicked.

This keeps reproduction independent of the suspected cause.


Use Numbered Steps

Numbered steps are easier to:

  • follow;
  • discuss;
  • retest;
  • reference.

A developer can say:

The issue occurs after Step 4.

That is much clearer than referring to a paragraph of instructions.

For most defects, numbered steps should be the default format.


Avoid Overly Detailed Mouse Instructions

You usually do not need instructions such as:

Move the mouse to the top-right corner and left-click the blue button.

Instead:

Click Log In.

Include detailed interaction only when the interaction itself is relevant to the defect.

For example:

Hover over Products without clicking.

may matter for a hover-related menu bug.


Describe Keyboard Interaction Precisely

For keyboard accessibility bugs, the interaction itself matters.

For example:

  1. Open the mobile menu.
  2. Press Tab until focus reaches Services.
  3. Press Enter.
  4. Press Tab again.

Then describe what happens.

Use exact keys such as:

Tab

Shift + Tab

Enter

Space

Escape

For a complete keyboard QA workflow, see How to Test Keyboard Navigation on a Website.


Include Timing When It Is Relevant

Some defects depend on timing.

For example:

  1. Click Save twice within approximately one second.

or:

  1. Open the modal.
  2. Wait 10 seconds.
  3. Click Confirm.

Do not add timing information unless it actually influences reproduction.

If timing is part of the trigger, make it explicit.


Document Intermittent Bugs Honestly

Not every defect occurs on every attempt.

If the bug appears three times out of ten, say so.

For example:

Reproducibility:
3/10 attempts

or:

Reproducibility:
Intermittent — reproduced approximately 30% of the time.

Do not write:

Always happens.

unless you have verified that.

Intermittent bugs are still valid defects.

They simply require more careful documentation.


Record What Makes an Intermittent Bug More Likely

If you notice a pattern, document it.

For example:

The issue occurs more frequently when Add to Cart is clicked repeatedly before the loading indicator disappears.

That information can dramatically reduce investigation time.

But distinguish observed patterns from unverified theories.


Use Video for Complex Reproduction Sequences

Some defects are difficult to describe with text alone.

Video is particularly useful for:

  • intermittent behavior;
  • drag-and-drop interactions;
  • animation defects;
  • keyboard focus problems;
  • multi-step UI failures.

The written steps should still exist where practical.

The video supports the report.

It should not be the only explanation.


Use Screenshots for Static Evidence

Screenshots work well for:

  • layout defects;
  • incorrect text;
  • wrong totals;
  • missing controls;
  • visual state.

A screenshot should show enough context to understand the problem.

For example:

A close-up of an overlapping button may be useful, but including enough surrounding interface to identify the location is usually better.


Example: Weak Cart Bug Report

Title: Cart broken

Steps:

  1. Add product.
  2. Change quantity.
  3. Doesn’t work.

This report leaves many unanswered questions.

Which product?

What quantity?

What should happen?

What actually happens?


Example: Clear Cart Reproduction Steps

Title: Cart subtotal does not update after quantity changes from 1 to 2

Environment:
Chrome / Windows / Staging

Precondition:
Product A costs $25 and is available.

Steps to Reproduce:

  1. Open Product A.
  2. Click Add to Cart.
  3. Open the cart.
  4. Change quantity from 1 to 2.

Expected Result:
Subtotal changes from $25 to $50.

Actual Result:
Quantity changes to 2, but subtotal remains $25.

For a broader cart testing process, see Shopping Cart Testing: Common Issues and QA Checks.


Example: Checkout Bug

Title: Coupon discount disappears after proceeding to checkout

Preconditions:

  • Product A is eligible for SAVE10.
  • Cart is empty.

Steps to Reproduce:

  1. Add Product A to the cart.
  2. Open the cart.
  3. Enter SAVE10.
  4. Click Apply Coupon.
  5. Confirm that the cart total is reduced by 10%.
  6. Click Proceed to Checkout.

Expected Result:
The discounted total remains active during checkout.

Actual Result:
Checkout displays the original full price.

For broader checkout coverage, see How to Test an E-commerce Checkout Flow.


Example: SaaS Permission Bug

Title: Viewer can edit another user’s record through direct URL

Preconditions:

  • User A has Viewer role.
  • Customer A belongs to User B.

Steps to Reproduce:

  1. Log in as User A.
  2. Open the direct edit URL for Customer A.
  3. Change the customer name.
  4. Click Save.

Expected Result:
User A is prevented from editing the record.

Actual Result:
The change is saved successfully.

This is much stronger than:

Viewer permissions don’t work.


Example: Responsive Bug

Title: Mobile navigation overlaps page heading at 375px width

Environment:
Chrome
375 × 812 viewport
Portrait

Steps to Reproduce:

  1. Open the homepage at 375px viewport width.
  2. Open the mobile navigation.
  3. Scroll slightly downward.

Expected Result:
The navigation remains visually separated from page content.

Actual Result:
The navigation overlaps the page heading.

For broader responsive testing, see Responsive Website Testing Checklist for Desktop, Tablet and Mobile.


Example: Keyboard Accessibility Bug

Title: Keyboard focus cannot reach the modal Close button

Steps to Reproduce:

  1. Open the page.
  2. Press Tab until focus reaches View Details.
  3. Press Enter.
  4. Continue pressing Tab through the modal controls.

Expected Result:
Focus reaches the Close button and it can be activated by keyboard.

Actual Result:
Focus skips the Close button and moves behind the modal.

This gives the developer a precise interaction sequence.


Example: Browser-Specific Bug

Title: Safari dropdown closes immediately after opening

Environment:
Safari / macOS

Steps to Reproduce:

  1. Open the homepage.
  2. Navigate to Products.
  3. Activate the Products dropdown.
  4. Attempt to select a submenu item.

Expected Result:
The dropdown remains open until the user selects an item or leaves the menu.

Actual Result:
The dropdown closes immediately after activation.

If the same workflow works in Chrome, include that as additional evidence.

For broader browser QA, see Cross-Browser Testing Guide: How to Test Websites Across Browsers.


Include State Changes Explicitly

Web applications often depend on state.

Examples include:

Logged Out → Logged In

Cart Empty → Product Added

Draft → Published

Viewer → Administrator

If the bug appears only after a state change, include it.

Do not assume another tester will begin in the same state.


Account for Multiple Users

Some SaaS bugs require more than one account.

For example:

  1. Log in as Administrator.
  2. Assign Customer A to User B.
  3. Log out.
  4. Log in as User A.
  5. Search for Customer A.

The user transitions are part of reproduction.

Document them explicitly.


Account for Multiple Tabs When Necessary

Some state bugs occur only across multiple browser tabs.

For example:

  1. Log in as Administrator.
  2. Open Account Settings in Tab A.
  3. Open Users in Tab B.
  4. Change the user’s role in Tab B.
  5. Return to Tab A.
  6. Attempt an Admin action.

If multiple tabs are part of the trigger, state that clearly.


Document Refreshes and Browser Navigation

Actions such as:

Refresh

Back

Forward

can change application state.

If the defect requires them, include them as actual steps.

For example:

Press the browser Back button.

is clearer than:

Go back.


Include Sorting and Filtering State

Data-heavy applications can behave differently after:

  • search;
  • sorting;
  • filtering;
  • pagination.

Suppose the bug occurs only after sorting.

The reproduction sequence might need to include:

  1. Open Contacts.
  2. Sort by Client Name ascending.
  3. Select three contacts.
  4. Change sort order to descending.
  5. Observe selection.

Removing the sort step would make the report incomplete.


Use Exact Values for Boundary Bugs

Boundary defects need exact values.

Instead of:

Enter a large number.

write:

Enter 101 when the maximum allowed value is 100.

A useful pattern is:

99

100

101

This shows exactly where the behavior changes.

Boundary testing is particularly useful in risk-based QA.

See Risk-Based Testing: How to Prioritize What Matters Most for a broader approach.


Avoid Unnecessary Technical Jargon

The goal is reproducibility.

Do not make a simple interaction harder to understand by overusing technical language.

Instead of:

Trigger the frontend authentication mutation.

write:

Click Log In.

Technical evidence can be included separately where useful.


Keep Developer Knowledge Assumptions Low

A good report should not require the developer to already know what you did.

Avoid:

Do the normal setup.

or:

Go through the usual checkout.

Write the important actions explicitly.

The person reproducing the defect may be:

  • another tester;
  • a developer;
  • a project manager;
  • someone returning to the bug six months later.

Do Not Write a Novel

The opposite problem is excessive detail.

A simple visual defect should not require 20 steps.

Good reproduction instructions are:

complete, concise, ordered, and specific.

The goal is not maximum text.

The goal is minimum ambiguity.


Use AI to Improve Reproduction Steps

AI can be useful for turning rough notes into structured instructions.

For example, raw notes:

login member, dashboard, settings, change phone, save, reload old value back

can become:

  1. Log in as a Member.
  2. Open Dashboard → Settings.
  3. Change the phone number.
  4. Click Save.
  5. Reload the page.

Then:

Expected Result:
The new phone number remains saved.

Actual Result:
The original phone number appears again after reload.

For a broader workflow, see How to Use AI to Improve Bug Reports.


Never Let AI Invent Missing Steps

AI can make a report sound complete even when information is missing.

Tell it explicitly:

Do not invent missing details. Identify any information needed for reproduction that is not provided.

Then verify the rewritten sequence yourself.

A plausible sequence is not necessarily the sequence that actually produced the bug.


Ask Another Person to Reproduce the Bug

One of the best quality checks is simple:

give the report to someone who did not discover the defect.

If they can reproduce it without asking questions, the steps are probably strong.

If they immediately ask:

Which account?

Which browser?

Which product?

What value did you enter?

the report is missing information.


Retest Using Only the Written Report

Even if another tester is unavailable, you can simulate this.

Stop relying on your memory.

Read the report from the beginning and follow only what is written.

If you need to remember an undocumented action, add it.

This technique catches many weak reports.


Clear Steps Make Retesting Faster

After development fixes the issue, QA can reuse the original steps.

For example:

Original:
Quantity change does not update subtotal.

Retest:
Repeat Steps 1–4 and confirm the expected total now appears.

Clear reproduction therefore helps both:

debugging

and:

verification.


Add Regression Checks After the Original Reproduction

Retest confirms that the original defect is fixed.

Then consider related functionality.

For example, after a quantity-calculation fix:

  • increase quantity;
  • decrease quantity;
  • apply coupon;
  • verify shipping threshold;
  • proceed to checkout.

These are regression checks.

They should not be mixed into the original reproduction steps unless they are required to trigger the original bug.


Reproduction Steps Support Better Triage

Clear steps also help teams understand:

  • severity;
  • affected users;
  • workaround;
  • release impact.

A vague bug is difficult to evaluate.

A reproducible bug provides concrete evidence.

This matters when deciding whether an issue should delay release.

For a broader framework, see Which Bugs Should Block a Website Release?.


A Practical Steps-to-Reproduce Template

A useful defect structure is:

Title:
Clear description of the failure.

Environment:
Browser / OS / device / staging or production.

Preconditions:
State required before Step 1.

Steps to Reproduce:

  1. First action.
  2. Second action.
  3. Third action.
  4. Action that triggers the issue.

Expected Result:
What should happen?

Actual Result:
What actually happens?

Reproducibility:
Always / intermittent / X of Y attempts.

Evidence:
Screenshot, video, console, or network information where relevant.

This provides enough structure for most website QA defects.


Steps to Reproduce Checklist

Before submitting a bug, verify:

  • The starting state is clear.
  • Preconditions are documented.
  • Environment information is included when relevant.
  • Each step contains a clear action.
  • Steps are in the correct order.
  • Interface labels are specific.
  • Required test data is included.
  • Irrelevant steps have been removed.
  • Necessary state changes remain included.
  • Expected and actual results are separated.
  • Observed facts are separated from suspected causes.
  • Intermittent behavior is described honestly.
  • Screenshots or video support complex issues where useful.
  • Sensitive information is excluded.
  • The final sequence has been reproduced again.
  • Another tester could reasonably follow the report without additional explanation.

Common Mistake: “It Happens After Normal Use”

This is not reproducible.

What does normal use mean?

Instead, identify the shortest known sequence.

For example:

After logging in, opening Contacts, sorting by Name, selecting three records, and changing the sort direction, the selection is cleared.

Now the state change is visible.


Common Mistake: Missing the Trigger

A report may contain many actions but fail to identify which one exposes the defect.

Try to determine:

What is the final action immediately before the incorrect behavior appears?

That action is often important for debugging.


Common Mistake: Mixing Multiple Bugs

Suppose you discover:

  1. cart subtotal is incorrect;
  2. checkout button overlaps footer.

These should usually be separate reports.

Combining unrelated issues creates confusing reproduction steps.

One bug report should normally describe one coherent defect.


Common Mistake: Writing Only What You Think Matters

A tester who already understands the product may unconsciously omit crucial context.

For example:

Click Edit.

But perhaps Edit appears only for:

Administrators on Professional plans.

Someone without that context cannot reproduce the issue.

Write for a reader who does not share your memory.


Common Mistake: Changing the Sequence While Writing

A tester may discover the bug through a long exploratory path and later rewrite the report based on what they think should trigger it.

Always verify the simplified sequence.

Do not replace observed reproduction with assumed reproduction.


Common Mistake: Treating Screenshots as Steps

A screenshot proves what the interface looked like.

It usually does not explain how the user reached that state.

Use:

steps + evidence

rather than:

evidence instead of steps.


Common Mistake: Calling an Issue Reproducible After One Attempt

If the defect is important, reproduce it again.

This helps distinguish:

  • stable bug;
  • temporary network problem;
  • stale browser state;
  • one-time test-data issue.

The more serious the defect, the more valuable reproducibility evidence becomes.


Make Reproduction Quality Proportional to Risk

A small visual defect may need:

three steps + screenshot.

A suspected authorization defect may require:

multiple users, ownership state, exact role, direct URL, environment, and detailed evidence.

Documentation depth should reflect the risk and complexity of the defect.


Build Clear Reproduction Into Your QA Process

Teams should not treat reproduction quality as optional writing style.

A practical defect workflow is:

Discover → Reproduce → Simplify → Document → Verify Steps → Submit → Fix → Retest → Regression

This makes bug reports more useful throughout the entire defect lifecycle.

If you need a structured system for defect documentation, QA planning, regression testing, release readiness, and reporting, Qualavo QA Starter provides a practical starting point for repeatable website QA.


Final Thoughts

Clear steps to reproduce are one of the most valuable parts of any bug report.

A strong sequence should be:

specific, ordered, minimal, complete, and verified.

Start from a known state.

Separate preconditions from actions.

Use exact interface labels and test data where necessary.

Document browser, device, role, viewport, or account state when they influence the issue.

Keep expected and actual results outside the numbered steps.

Avoid speculation about root cause.

And before submitting the report, perform one final check:

Can I reproduce this bug using only what I have written?

If the answer is yes, the developer has a much better chance of reproducing, understanding, fixing, and retesting the defect efficiently.

Similar Posts