Expected Result vs Actual Result: How to Document Bugs Clearly
A good bug report explains two fundamental things:
What should have happened?
and:
What actually happened?
These are the:
Expected Result
and:
Actual Result
The difference may seem simple, but poorly written expected and actual results are one of the most common reasons bug reports become difficult to understand.
Compare these examples.
Weak
Expected Result:
It should work.
Actual Result:
It doesn’t work.
Better
Expected Result:
After the user clicks Save, the updated phone number should be stored and remain visible after the page is refreshed.
Actual Result:
After clicking Save, the new phone number appears initially, but refreshing the page restores the previous value.
The second version gives the developer a clear, testable difference.
That makes the defect easier to:
- understand;
- reproduce;
- investigate;
- fix;
- retest.
For the broader defect-reporting structure, see How to Write a Good Bug Report.
What Is the Expected Result?
The expected result describes the behavior that should occur after the reproduction steps are completed.
It answers:
What should the user or system have produced at this point?
The expected result should have a real basis.
That may come from:
- requirements;
- acceptance criteria;
- design specifications;
- business rules;
- established product behavior;
- agreed stakeholder expectations.
It should not simply describe what the tester personally prefers.
What Is the Actual Result?
The actual result describes what really happened during testing.
It should be based on direct observation.
Examples include:
- the wrong value is displayed;
- the button produces no response;
- a duplicate record is created;
- the page redirects unexpectedly;
- the modal remains open;
- the previous value returns after refresh;
- the wrong total appears at checkout.
The actual result should describe evidence, not speculation.
Expected and Actual Results Should Describe the Same Moment
A strong bug report compares like with like.
For example:
Expected Result:
Clicking Add to Cart once should add one unit of Product A and display a cart quantity of 1.
Actual Result:
Clicking Add to Cart once adds two units of Product A and displays a cart quantity of 2.
The difference is immediately understandable.
A weaker comparison would be:
Expected: Product should work.
Actual: Cart has a problem.
The two statements are too broad to be useful.
Why the Difference Matters
A defect is essentially a difference between:
expected behavior
and:
observed behavior
If the report does not explain that difference clearly, the reader has to reconstruct it.
That creates unnecessary questions:
- What exactly should have happened?
- What happened instead?
- Is this actually a defect?
- Is the tester describing evidence or guessing the cause?
Clear expected and actual results remove that ambiguity.
Expected Results Should Be Specific
Avoid:
The page should display correctly.
Instead:
The modal should open above the page content and display the selected customer details.
Avoid:
Search should work.
Instead:
Searching for the customer’s email address should return the matching customer record.
A specific expected result makes the behavior objectively testable.
Actual Results Should Be Observable
Avoid:
The database probably didn’t update.
Unless the database was actually inspected, that is an assumption.
Instead:
After saving and refreshing the page, the previous value is displayed again.
That describes what was actually observed.
The developer can then investigate whether the cause is:
- persistence;
- caching;
- frontend state;
- API behavior;
- something else.
QA should describe the symptom accurately without inventing the root cause.
Separate Observation From Diagnosis
Suppose a button appears not to work.
Weak:
JavaScript is broken.
Better:
Clicking Submit produces no visible response. The page remains unchanged and no confirmation message appears.
If technical evidence is available, add it separately:
Browser console shows an uncaught JavaScript error immediately after the click.
This separates:
user-visible behavior
from:
technical evidence
That distinction makes the report more precise.
Do Not State a Root Cause Unless It Is Confirmed
For example:
Actual Result: The API is broken.
This may be premature.
A stronger actual result is:
The request returns HTTP 500 and the user sees a generic error message.
That gives development useful evidence without pretending to know why the server failed.
Use the User’s Perspective
Where possible, describe what the user experiences.
For example:
Expected Result:
After submitting valid login credentials, the user should be redirected to the dashboard.
Actual Result:
After submitting valid credentials, the login page reloads and the user remains logged out.
This is understandable to:
- developers;
- QA;
- PMs;
- clients.
Include the Business Outcome When It Matters
Sometimes the visible UI result is only part of the expected outcome.
For example:
Expected Result:
After successful contact-form submission, the confirmation message should appear and a new lead should be created in the CRM.
Actual Result:
The confirmation message appears, but no lead is created in the CRM.
This exposes the real business impact.
Do not stop at the visible success state when the important outcome happens downstream.
Do Not Stop at a Success Message
A message such as:
Order placed successfully.
does not prove that the order actually exists.
For a critical workflow, the expected result may include:
UI result + business outcome
For example:
Expected Result:
Payment succeeds, one order is created, and the customer sees the confirmation page.
Actual Result:
Payment succeeds, but no order is created and an error page is displayed.
This makes the failure much easier to evaluate.
Use Exact Values Where Useful
Specific values make the discrepancy immediately visible.
Weak:
Wrong total shown.
Better:
Expected Result:
The checkout total should be $89.00.
Actual Result:
The checkout displays $99.00.
Exact values reduce interpretation.
Use Before and After States
For update defects, state transitions are often useful.
Example:
Before: Status = Active
Action: Change Status to Inactive
Expected Result:
Status should display Inactive after saving.
Actual Result:
Status returns to Active after the page is refreshed.
This makes the behavior easy to follow.
Use Exact UI Labels
If the interface has several similar controls, use the actual label.
Avoid:
Click the button.
Use:
Click Save Changes.
Likewise:
The Save Changes button should remain visible after validation fails.
Specific terminology makes reproduction and retesting easier.
Avoid Vague Words
Words such as:
- broken;
- wrong;
- bad;
- weird;
- incorrect;
- doesn’t work;
are usually not enough on their own.
For example:
Weak:
Layout is wrong.
Better:
The Checkout button overlaps the order total at a 390 px-wide viewport.
Describe what the user can actually observe.
Avoid “Works as Expected”
Writing:
Expected Result: Works as expected.
adds almost no information.
The reader still needs to determine what “expected” means.
State the intended outcome explicitly.
Avoid “Nothing Happens” When More Detail Is Available
Sometimes:
Nothing happens.
is technically accurate.
But a stronger version might be:
Clicking Export does not start a download, display a loading state, or show an error message. The page remains unchanged.
That gives the reader more context.
Keep the Expected Result Independent
Do not define the expected result only by negating the bug.
Weak:
The button should not disappear.
Better:
The Save button should remain visible after validation fails so the user can correct the form and submit again.
The second version explains the intended behavior.
Keep the Actual Result Independent
Likewise, avoid:
The expected result does not happen.
Instead describe what actually happens.
For example:
After validation fails, the Save button disappears and cannot be used again without refreshing the page.
Expected Results Should Be Based on Requirements
A tester should not create a defect simply because they would personally design the feature differently.
For example:
I think the button should be blue.
is not automatically a bug.
Expected behavior should have a basis in:
- specification;
- design;
- acceptance criteria;
- business rules;
- established product convention.
If the expected behavior is unclear, ask for clarification.
What If the Requirement Is Ambiguous?
Sometimes the current behavior is observable, but the correct behavior is unclear.
For example:
The current implementation clears all selected filters after editing a record. The specification does not state whether filters should persist. Please confirm the intended behavior.
This is better than inventing:
Expected Result: Filters should remain.
Unclear requirements should become questions, not false defects.
Expected Results Can Come From Established Behavior
Not every project has perfect documentation.
Sometimes an established product pattern provides useful evidence.
For example:
- every existing modal returns focus to its trigger when closed;
- one newly added modal sends focus to the top of the page.
That inconsistency may deserve investigation.
But if the requirement is uncertain, document the evidence rather than overstating certainty.
Use Acceptance Criteria Where Available
Suppose a user story says:
Users can export selected contacts as CSV.
Then a useful expected result might be:
Clicking Export Selected with three contacts selected should download a CSV containing those three contacts.
This connects the defect directly to the requirement.
Expected Results Should Be Testable
A strong expected result can be verified objectively.
Weak:
The application should provide a good user experience.
Better:
When the dialog opens, keyboard focus should move to the first interactive control inside it.
The second statement can be tested and retested.
Avoid Unnecessary Implementation Detail
For normal functional QA, avoid statements such as:
React state should update
selectedContactsand rerender component X.
unless the ticket is specifically about a confirmed implementation requirement.
Usually this is better:
After selecting one contact, the bulk-action bar should display a selected count of 1.
Describe the required behavior, not the assumed implementation.
Describe the Final State
A useful expected result often describes the state after the action completes.
Example:
Action: Delete customer.
Expected Result:
The customer should be removed from the active customer list and should no longer appear in normal search results.
This is stronger than:
Delete should work.
Verify Persistence Where Relevant
For Create and Update operations, the immediate UI may not prove that data was saved correctly.
Example:
Expected Result:
After changing the phone number and saving, the new value should remain after refreshing the page.
Actual Result:
The updated phone number appears immediately after Save, but refreshing restores the previous value.
For broader record-lifecycle coverage, see How to Test CRUD Workflows in Web Applications.
Example: Duplicate Create
Steps:
- Open Add Contact.
- Enter valid contact details.
- Double-click Save.
Expected Result:
One contact record should be created.
Actual Result:
Two identical contact records are created.
The difference is precise and easy to verify.
Example: Update Defect
Expected Result:
Changing only the contact’s phone number should update the phone number while leaving the existing email address unchanged.
Actual Result:
The phone number is updated, but the email address becomes empty after saving.
This also exposes the data-integrity impact.
Example: Search Defect
Expected Result:
Searching for john@example.com should return the contact with that exact email address.
Actual Result:
The search returns zero results even though the contact is visible in the unfiltered list.
Example: Authentication Defect
Expected Result:
After logout, opening the Account Settings URL should redirect the user to the login page.
Actual Result:
The Account Settings page remains accessible and allows profile changes.
This clearly communicates the security impact.
Example: Responsive Defect
Environment:
390 px mobile viewport
Expected Result:
The Checkout button should remain fully visible below the order total.
Actual Result:
The sticky footer overlaps the Checkout button and prevents it from being tapped.
This gives the reader both the environment and the observable failure.
Example: Payment Defect
Expected Result:
After successful payment, one order should be created and the confirmation page should appear.
Actual Result:
Payment succeeds, but no order is created and the customer sees an error page.
This is stronger than:
Payment issue.
Keep One Primary Defect Per Report
A single bug report should usually focus on one clear problem.
Avoid combining unrelated issues such as:
- wrong total;
- missing confirmation email;
- broken mobile layout;
- wrong order status;
into one ticket unless they are clearly part of the same failure.
Separate defects are easier to:
- assign;
- fix;
- retest;
- close.
When Multiple Effects Belong Together
Sometimes one failure produces several directly connected symptoms.
Example:
Payment succeeds but order creation fails.
That may also produce:
- no order;
- no confirmation page;
- no confirmation email.
If these are consequences of the same failed transaction flow, a single report may make sense.
Describe the primary expected and actual result first, then add supporting observations.
Expected and Actual Results Should Match the Reproduction Steps
The reproduction steps should lead directly to the result being described.
For example:
- Open Contact A.
- Click Edit.
- Change only Phone.
- Click Save.
- Refresh the page.
Then:
Expected Result:
The new phone number should remain after refresh and all unchanged fields should retain their previous values.
Actual Result:
The new phone number remains, but the Email field becomes empty.
The relationship between steps and outcome is clear.
For step-writing guidance, see How to Write Clear Steps to Reproduce a Bug.
Do Not Mix Steps Into the Expected Result
Avoid:
Expected Result: Click Save and refresh and then the new phone number should appear.
The action belongs in the reproduction steps.
The result should be:
The updated phone number should remain after refresh.
This keeps the report easy to scan.
Add Environment When It Changes the Result
The expected and actual result may be correct only in a specific environment.
For example:
Environment:
Safari / macOS
Expected Result:
The modal should open above the Research panel.
Actual Result:
The modal appears behind the Research panel.
Environment information makes the comparison reproducible.
Add Preconditions When Needed
Some defects require a specific starting state.
Examples:
- user already logged in;
- contact already has an email address;
- cart contains two products;
- Viewer role is active;
- record is archived.
Document these conditions separately.
Do not overload the expected-result section with setup information.
Use Evidence to Support the Actual Result
Useful evidence may include:
- screenshot;
- video;
- console error;
- network request;
- response code;
- log extract.
Evidence should support the actual result.
It should not replace it.
For example:
Actual Result:
Clicking Save displays an error and the record is not updated.
Technical Evidence:
Save request returns HTTP 500.
That is clearer than using the HTTP response alone.
Screenshots Are Best for Visual Differences
Screenshots are particularly useful for:
- layout defects;
- incorrect values;
- missing UI elements;
- focus visibility;
- error messages.
They help show exactly what was observed.
Video Is Better for Sequence-Based Defects
Video can be more useful when the problem involves:
- timing;
- modal behavior;
- scrolling;
- focus movement;
- repeated actions;
- navigation sequence.
Keep evidence focused on the defect.
Expected and Actual Results Improve Retesting
A developer fixes the defect.
QA should then compare the new behavior against the original expected result.
For example:
Expected Result:
Updated phone number remains after refresh.
If the fix now produces that result, the defect has a clear retest criterion.
This is another reason expected results should be objective.
Do Not Quietly Change the Expected Result During Retest
Requirements can change.
If they do, document that change.
For example:
Requirement updated: selected records should now be cleared after a successful bulk action.
Otherwise a defect may appear “fixed” simply because the expected behavior silently changed.
Expected Results Help Reduce “Works for Me”
A precise comparison makes environment differences easier to investigate.
Example:
Expected:
Modal opens above Research.
Actual:
Modal appears behind Research in Chrome / Windows.
Now development can compare:
- environment;
- steps;
- state;
- expected result.
Vague reports make this much harder.
Expected vs Actual Helps Defect Triage
A precise difference makes severity and priority discussions easier.
Compare:
PayPal issue.
with:
Expected Result:
Canceling PayPal should return the customer to an active checkout.
Actual Result:
After PayPal cancellation, checkout remains frozen and the user cannot continue.
The second report gives the team useful impact context.
For severity and priority, see Bug Severity vs Priority.
Expected vs Actual Can Support Known-Issue Documentation
If a defect remains open at release, the same comparison remains useful.
Example:
Expected:
PDF export supports 50,000 records.
Actual:
Export times out above approximately 25,000 records.
Workaround:
Export smaller date ranges.
For the broader process, see How to Document Known Issues and Residual Risk.
Use AI Carefully
AI can help turn rough notes into clearer wording.
For example:
save doesn’t work, old phone comes back
might become:
Expected Result:
After saving the updated phone number, the new value should remain after page refresh.
Actual Result:
The updated value appears immediately after saving, but refreshing the page restores the previous phone number.
That can improve clarity.
But AI should never invent:
- requirements;
- browser details;
- error messages;
- reproduction results;
- actual behavior.
For a broader process, see How to Use AI to Improve Bug Reports.
Verify AI-Rewritten Results
After AI improves the wording, compare the output against what actually happened.
Make sure it did not add:
- frequency;
- environment;
- technical cause;
- business rule;
- error text;
that was never observed.
Clarity is useful.
Fabricated evidence is not.
A Practical Expected vs Actual Template
Use:
Expected Result:
[Describe the exact behavior that should occur after completing the reproduction steps.]
Actual Result:
[Describe the exact behavior that actually occurs.]
Optional:
Impact:
[Explain why the difference matters.]
Technical Evidence:
[Relevant error, request, log, screenshot, or video.]
This structure works for most website and web-application defects.
Example Complete Bug Report
Title:
Contact email is cleared when phone number is updated
Environment:
Staging / Chrome / Windows
Preconditions:
The contact already contains both an email address and phone number.
Steps to Reproduce:
- Open the contact.
- Click Edit.
- Change only the phone number.
- Click Save.
- Refresh the page.
Expected Result:
The phone number should be updated and the existing email address should remain unchanged.
Actual Result:
The phone number is updated, but the email address becomes empty after saving.
Impact:
Editing one field can unintentionally remove existing customer data.
This report gives development a clear, testable difference.
Expected Result Checklist
- Based on a real requirement or established behavior.
- Describes one clear outcome.
- Uses specific values where useful.
- Can be tested objectively.
- Does not simply say “should work.”
- Does not prescribe unnecessary implementation detail.
Actual Result Checklist
- Describes directly observed behavior.
- Uses exact values where useful.
- Avoids guessing the root cause.
- Identifies partial success where relevant.
- Includes downstream failure where important.
- Does not exaggerate the affected scope.
Comparison Checklist
- Expected and actual describe the same stage of the workflow.
- The difference is immediately understandable.
- Important user impact is clear.
- Environment is documented where relevant.
- Preconditions are documented where relevant.
- Reproduction steps lead directly to the result.
Evidence Checklist
- Screenshots support visual issues where useful.
- Video supports sequence-based problems where useful.
- Error messages are recorded accurately.
- Technical evidence is separated from assumptions.
- Sensitive information is removed.
Common Mistake: “Expected — Works”
This tells the reader almost nothing.
Describe what success actually looks like.
Common Mistake: “Actual — Doesn’t Work”
Describe what happens instead.
Does the button:
- do nothing;
- show an error;
- redirect;
- save the wrong data;
- create duplicate data?
That detail matters.
Common Mistake: Guessing the Cause
Avoid:
Database doesn’t save the value.
unless that was verified.
Prefer:
The previous value returns after refresh.
Report evidence first.
Common Mistake: Writing Only the Actual Result
A ticket may say:
Price displays $99.
But is $99 wrong?
Without:
Expected Result: $89
the reader may not know.
Use both sides of the comparison when the correct behavior is not obvious.
Common Mistake: Writing Only the Expected Result
Likewise:
Expected: modal should close.
What actually happened?
Did it:
- remain open;
- reopen;
- freeze;
- close but leave an overlay?
State the observed behavior.
Common Mistake: Describing Impact Instead of Behavior
Avoid:
Actual Result: User experience is terrible.
That is an opinion about impact.
Instead:
The Submit button is covered by the sticky footer and cannot be tapped at a 375 px viewport width.
Then explain the impact separately if needed.
Common Mistake: Treating Assumptions as Requirements
If you do not know whether selection should remain after a bulk action, do not invent:
Expected: Selection remains.
Ask for clarification.
Incorrect expected results create false defects.
Common Mistake: Making the Expected Result Too Long
The expected-result section should not become a mini-specification.
Keep the primary success condition easy to scan.
Use Expected vs Actual Throughout the QA Process
This structure is useful beyond the original bug ticket.
It supports:
- defect triage;
- retesting;
- regression;
- release readiness;
- known-issue documentation;
- client reporting.
A clear comparison gives everyone the same understanding of the defect.
For teams that need standardized defect reporting, test evidence, regression workflows, and release-readiness documentation, Qualavo QA Professional provides a broader structured QA workflow.
Final Thoughts
The core of a useful bug report is simple:
Expected Result = what should have happened.
Actual Result = what actually happened.
But the quality of these two statements can determine how quickly a defect is understood, reproduced, fixed, and retested.
Write expected results that are:
specific, testable, and based on real requirements.
Write actual results that are:
observable, factual, and free from unsupported assumptions.
Use exact:
- values;
- labels;
- states;
- outcomes;
where they improve clarity.
Separate:
symptoms
from:
suspected causes.
And make sure the expected and actual results describe the same point in the workflow.
A developer should be able to read those two sections and immediately understand:
This is what the system should do.
and:
This is what the system does instead.
That simple contrast is one of the most effective ways to make bug reports clearer, faster to investigate, and easier to verify.
