Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

"Is this going to be a stand-up fight sir, or a bug hunt?" - Hudson

I've always wondered what the secrets were to writing a great bug report. Over time I've narrowed down the activity to three basic elements.

  1. Replicate: Once you've found the bug, replicate it.
  2. Document: Write it down, pack in detail where necessary.
  3. Communicate: Input it into the bug tracker and tell someone.

Replicate - Clearly this is the most hated step because you just made something break, why should we break it again? Unfortunately, it's part of the process. Bugs that are repeatable often give the development/implementation team a very clear view into what might be going wrong. A bug that happens one time can be very hard to track down. So, your first step if you find something wrong is to try and make it happen again. This is why it's critical that you mentally keep track of what you're doing and what you've clicked. Certain combinations can yield bugs, while others won't.

Document - The only thing worse than a bug is a bug without any details. For example, what's wrong with the following bug report?

My order failed. I think it is broken.

Aside from the fact that your order failed, there's no detail! Examples of very excellent detail:

  • Steps to repeat the bug (see Step 1)
  • What you were expecting vs. what you got
  • Error messages that appear on the page
  • What browser/operating system were you using

So if you were to rewrite the bug like the following - this will make it easier for the implementation team to investigate and solve the issue:

I'm using the following: OS: Mac OS X (10.4.9) Browser: Firefox 2.0.0.3

My order for a snuggle puppies on yoursitehere.com wouldn't go through and I'm not sure why. When I try to place the order, I end up on the order entry page with the following error message: "We're sorry, our records indicate another order has already been placed...." I was expecting to end up on the receipt page with a confirmation message and with a confirmation email in my inbox and instead I'm getting an error.

Try the following steps:

Your steps here

Communicate - In order for a bug to get corrected, the implementation team needs to know about it. This doesn't end up being as plodding as it sounds. But the sooner you let your primary developer/project manager/testing know the sooner it can be put into the queue to be fixed.

This is how I've done it ... but what makes a great bug report in your mind?

share|improve this question

closed as not constructive by Rebecca Chernoff May 3 '11 at 20:13

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Have you read the FAQ, Good Subjective, Bad Subjective and Real Questions Have Answers? I'm not sure this question fits. –  Rebecca Chernoff May 3 '11 at 20:06
1  
What happens when you can't replicate the issue? –  Perze Ababa May 3 '11 at 20:07
    
@Perze a great bug report will have replication steps in it. If you can't replicate it, it's not that you don't have a problem, because you do, but you really don't have the information you need to make a "great" bug report. –  corsiKa May 3 '11 at 20:10
3  
OK, maybe mildly subjective but I do think that a community wiki could seriously have good pieces about what are the foundations of a good bug report. –  terryp May 3 '11 at 22:03
4  
This should be a community wiki vs being closed. –  Dan Snell May 3 '11 at 22:43

4 Answers 4

up vote 8 down vote accepted

I document the following:

  1. What I think the problem is. Sometimes this can be tricky, and if I'm not certain, I'll talk to someone about the functionality before submitting it.
  2. What do I think the expected result should be? Again, tricky. See #1.
  3. Steps to reproduce. The easiest way to a developers heart is to provide detailed easy to follow instructions on how you reproduce the problem.
  4. I attach any log files I have and trim them down to only the relevant information.
  5. Attached database backup or virtual environment ready to go.
share|improve this answer
  1. A clear title - I want to be able to be able to tell at a glance without going into the report itselt what I am looking at.
  2. Description of the bug - this should be as concise as possible.
  3. Reproduction steps. You should be able to reproduce the bug and hopefully have narrowed it down to the simplest possible steps.
  4. Environment considerations (OS, browser, hardware) that are relevent.
  5. Any additional materials that make digging into the problem easier (stack traces, logs, script files, specific data sets, screen shots).
share|improve this answer

A bug report should include as many details as possible. But keep in mind that it should not bog down the tester from creating them if it involves lot of effort from their part.

A good template should contain Title (Short and descriptive), Build No, Requirements Reference (Optional), Problem Description, Expected results, Steps to reproduce, Analysis (Optional).

In addition, the Test manager should update other attributes like, target build (for which this should be resolved), Internal Priority, Customer Severity (if this project is for a client), Project Identifier (If the project has multiple releases).

Be aware, that asking a tester to set the Internal priority or customer severity would require explaining lot of managerial aspects of the project.

share|improve this answer

A great bug report gives the information to the developer that they need to fix the bug, with as little extra as necessary.

Unfortunately, you can't rely on testers to always know what is necessary and what is not, so I would have them err on the side of caution and include as much detail as possible about what they were doing, as long as they keep it cohesive. A good developer will be able to sift through it (assuming the report was written cohesively) to find the information he really needs to fix the issue.

Most bugs are simple fixes, and for the most part are simply a misunderstanding of the requirements. It's finding what simple fix to make that is the headache.

If the tester is able to find specifically which requirement isn't being fulfilled, it should help the developer out a lot.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.