How to write a good bug report? Tips and Tricks

Why good Bug report?
If your bug report is effective, chances are higher that it will get fixed. So fixing a bug depends on how effectively you report it. Reporting a bug is nothing but a skill and I will tell you how to achieve this skill.

“The point of writing problem report(bug report) is to get bugs fixed” - By Cem Kaner. If tester is not reporting bug correctly, programmer will most likely reject this bug stating as irreproducible. This can hurt testers moral and some time ego also. (I suggest do not keep any type of ego. Ego’s like “I have reported bug correctly”, “I can reproduce it”, “Why he/she has rejected the bug?”, “It’s not my fault” etc etc..)

What are the qualities of a good software bug report?
Anyone can write a bug report. But not everyone can write a effective bug report. You should be able to distinguish between average bug report and a good bug report. How to distinguish a good or bad bug report? It’s simple, apply following characteristics and techniques to report a bug.

1) Having clearly specified bug number:
Always assign a unique number to each bug report. This will help to identify the bug record. If you are using any automated bug-reporting tool then this unique number will be generated automatically each time you report the bug. Note the number and brief description of each bug you reported.

2) Reproducible:
If your bug is not reproducible it will never get fixed. You should clearly mention the steps to reproduce the bug. Do not assume or skip any reproducing step. Step by step described bug problem is easy to reproduce and fix.

3) Be Specific:
Do not write a essay about the problem. Be Specific and to the point. Try to summarize the problem in minimum words yet in effective way. Do not combine multiple problems even they seem to be similar. Write different reports for each problem.

How to Report a Bug?

Use following simple Bug report template:
This is a simple bug report format. It may vary on the bug report tool you are using. If you are writing bug report manually then some fields need to specifically mention like Bug number which should be assigned manually.

Reporter: Your name and email address.

Product: In which product you found this bug.

Version: The product version if any.

Component: These are the major sub modules of the product.

Platform: Mention the hardware platform where you found this bug. The various platforms like ‘PC’, ‘MAC’, ‘HP’, ‘Sun’ etc.

Operating system: Mention all operating systems where you found the bug. Operating systems like Windows, Linux, Unix, SunOS, Mac OS. Mention the different OS versions also if applicable like Windows NT, Windows 2000, Windows XP etc.

Priority:
When bug should be fixed? Priority is generally set from P1 to P5. P1 as “fix the bug with highest priority” and P5 as ” Fix when time permits”.

Severity:
This describes the impact of the bug.
Types of Severity:

  • Blocker: No further testing work can be done.
  • Critical: Application crash, Loss of data.
  • Major: Major loss of function.
  • Minor: minor loss of function.
  • Trivial: Some UI enhancements.
  • Enhancement: Request for new feature or some enhancement in existing one.

Status:
When you are logging the bug in any bug tracking system then by default the bug status is ‘New’.
Later on bug goes through various stages like Fixed, Verified, Reopen, Won’t Fix etc.
Click here to read more about detail bug life cycle.

Assign To:
If you know which developer is responsible for that particular module in which bug occurred, then you can specify email address of that developer. Else keep it blank this will assign bug to module owner or Manger will assign bug to developer. Possibly add the manager email address in CC list.

URL:
The page url on which bug occurred.

Summary:
A brief summary of the bug mostly in 60 or below words. Make sure your summary is reflecting what the problem is and where it is.

Description:
A detailed description of bug. Use following fields for description field:

  • Reproduce steps: Clearly mention the steps to reproduce the bug.
  • Expected result: How application should behave on above mentioned steps.
  • Actual result: What is the actual result on running above steps i.e. the bug behavior.

These are the important steps in bug report. You can also add the “Report type” as one more field which will describe the bug type.

The report types are typically:
1) Coding error
2) Design error
3) New suggestion
4) Documentation issue
5) Hardware problem

Some Bonus tips to write a good bug report:

1) Report the problem immediately:If you found any bug while testing, do not wait to write detail bug report later. Instead write the bug report immediately. This will ensure a good and reproducible bug report. If you decide to write the bug report later on then chances are high to miss the important steps in your report.

2) Reproduce the bug three times before writing bug report:Your bug should be reproducible. Make sure your steps are robust enough to reproduce the bug without any ambiguity. If your bug is not reproducible every time you can still file a bug mentioning the periodic nature of the bug.

3) Test the same bug occurrence on other similar module:
Sometimes developer use same code for different similar modules. So chances are high that bug in one module can occur in other similar modules as well. Even you can try to find more severe version of the bug you found.

4) Write a good bug summary:
Bug summary will help developers to quickly analyze the bug nature. Poor quality report will unnecessarily increase the development and testing time. Communicate well through your bug report summary. Keep in mind bug summary is used as a reference to search the bug in bug inventory.

5) Read bug report before hitting Submit button:
Read all sentences, wording, steps used in bug report. See if any sentence is creating ambiguity that can lead to misinterpretation. Misleading words or sentences should be avoided in order to have a clear bug report.

6) Do not use Abusive language:
It’s nice that you did a good work and found a bug but do not use this credit for criticizing developer or to attack any individual.

Conclusion:
No doubt that your bug report should be a high quality document. Focus on writing good bug reports, spend some time on this task because this is main communication point between tester, developer and manager. Mangers should make aware to their team that writing a good bug report is primary responsibility of any tester. Your efforts towards writing good bug report will not only save company resources but also create a good relationship between you and developers.

For better productivity write a better bug report.




Related Posts:

  • Sample bug report
  • How to write software Testing Weekly Status Report
  • Sample bug reports for web and product applications
  • Living life as a Software Tester!
  • How to get your all bugs resolved without any ‘Invalid bug’ label?
  • 90 comments ↓

    #1 srianand on 09.18.07 at 8:51 am

    HI, this article is very useful one.It helps me understand effective bug report.

    #2 Debasis Pradhan on 09.18.07 at 11:39 am

    Hi Vijay,

    I had written a similar post a couple of months back that was found interesting by many testers. In case someone is interested, (s)he may take a look at it here - How to Sell a Bug!

    –Debasis

    #3 Tips to write good bug report - SURESHKUMAR.NET FORUMS on 09.18.07 at 11:48 am

    […] to write good bug report Good web article on writing effective bug report….. Writing good bug report Why tester should write good bug report? Bug report is important QA document that is used to […]

    #4 Thulasi Suresh on 09.18.07 at 12:24 pm

    Hi
    Really nice to read this article. I personally feel if you could interrelate this with testcase and execution report that it would give more info. Ie. Whatever we log as status fail in the test excution is record as bug.What I mean is what we record in the actual is now turned as issue and the test codition is the steps to reproduce the same.

    #5 Sameer S. Mandve on 09.19.07 at 4:32 am

    Nice One…………

    #6 Mani on 09.19.07 at 5:25 am

    hi,
    thanx for your valuable information. I’m doing my testing course. So if u know any oppurtunities please inform me.

    #7 Poonam on 09.19.07 at 6:13 am

    Hi
    Its really helpful!!

    #8 Vijay on 09.19.07 at 7:08 am

    @Thulasi - It could have created some complications by relating it with test cases and execution. I wanted to focus mainly on effective bug report.

    BTW,
    Thanks all for the kind words.

    #9 resna on 09.19.07 at 7:33 am

    awesome report…i got a job as a TESTER bt i’ve no idea how the bug report looks like?could u pls give an original report? pls help me…i’m goin to join on comin monday…

    #10 Gimmy on 09.21.07 at 11:11 am

    very Informative

    #11 sdpanong on 09.21.07 at 1:57 pm

    Hi,
    I find this article very helpful and will consider it as a guideline for my report as a Tester.

    Thanks,

    #12 prabhunair on 09.23.07 at 4:44 am

    hi, really it’s a great article.. i’m doing my software testing course right now.. this may help me a lot and i got an overview about bug report..

    #13 softwareQA on 09.26.07 at 11:21 pm

    Thank you so much for your great posts. I read your articles before my interview for a QA position with one of the top software companies in the Silicon Valley. I got the job thanks to your excellent articles!

    #14 Vijay on 09.28.07 at 7:25 am

    @ resna - I have mailed you the bug report format. One simple report can also be viewed in comment section of post http://www.softwaretestinghelp.com/bug-life-cycle/

    @ softwareQA - Its great to hear such news. Congrats for your dream job. I am glad that my articles are practically helping to readers.

    #15 Chandra Shekar on 09.28.07 at 10:49 am

    Hi

    This article is usefule to every SQA. as my point of view i am new to this, after reading this meself confidence level incresed, thanx

    #16 Rajesh on 10.09.07 at 3:16 am

    Hi Vijay
    Its very good
    Can u mail me the bug report ?
    grajeshkumar7@yahoo.co.in

    Thanks

    #17 varalakshmi prasanna on 10.10.07 at 10:55 am

    hi,
    thanks. the information is very useful do u have information on how to write test cases with examples .as i feel difficult for writing test cases please inform me about testing oppurtunities to my emailid

    #18 Yasoda on 10.14.07 at 9:17 am

    Hi,
    Thanks you all who are maintainnig this site by providing valuable informations to us with better sequence.

    Thank you

    #19 kavitha on 10.14.07 at 2:29 pm

    the article is great,and is very informative for the begineers.

    #20 Karthik on 10.23.07 at 3:32 pm

    I find this article very helpful and will consider it as a guideline for my report as a Tester.

    #21 vishala on 11.16.07 at 4:26 am

    Hi, this is vishala i got a job as a software test eng. and would like to know about the differenct between the Agile Model and Waterfall Model

    I read Bug Report Article it is very good. I hope u can give me answer to any question.
    Thank U.

    #22 mohini k on 11.16.07 at 4:31 am

    hi this is mohini , which is the best model in SDLC to follow for the small projects.

    In Waterfall model and Spiral models
    thak u

    #23 Suresh on 11.19.07 at 12:46 pm

    Totally I Agree
    Useful site for Every one so very nice…….

    Thanks
    Suresh B

    #24 zakir on 11.23.07 at 12:05 pm

    @mohini

    Firstly, Small projects need not follow any Models friend and the best among the listed two is Spiral model

    #25 Pravin on 12.14.07 at 7:12 am

    HI, this article is very useful one.Only terms used while reporting can be changed depend on Bug tracking tool used.

    #26 savithri on 12.18.07 at 8:31 am

    Hi
    this is so nice to read. can u mail me bug report
    savithri_gudikoti@yahoo.co.in

    #27 savithri on 12.18.07 at 8:33 am

    can u mail me details on energy domain and what are the elements i need to cover
    savithri_gudikoti@yahoo.co.in

    #28 Gatari Mishra on 12.19.07 at 6:50 am

    Hi Vijay,

    This is Gayatri . I am having 2 yrs exp as a corporate trainer in testing. Currently joined as a test eng. I ahve to work in QTP and QC..

    Please Can you give me Testing Process Flow , What we have to do in real time step by step…

    Regards.

    Gayatri

    #29 Software Testing Help: Best software testing articles of 2007 on 01.07.08 at 12:24 pm

    […] How to write a good bug report? Tips and Tricks […]

    #30 How to get your all bugs resolved without any 'Invalid bug' label? on 01.23.08 at 9:26 am

    […] get his/her 100% bugs resolved. This requires bug reporting skill. See my previous post on “How to write a good bug report? Tips and Tricks” to report bugs professionally and without any […]

    #31 Kiran on 01.24.08 at 11:56 am

    Really a very good site for testers at all levels.
    You can provide some information on free tools.

    #32 rajjonnada on 01.29.08 at 6:49 am

    Hi,

    Vijay, the tips for good bug report is really cool……
    I would like to know if you have any domain i.e., Banking/corebanking/lending relating with testing by telling business flow for Retail Assets/corporate assets/retail liability ?

    #33 rajjonnada on 01.29.08 at 6:54 am

    @mohini

    If you are working in client place then as per the latest trend all follows V-model where developers, business users and Testers will work together. Which will lead to be productive with best results with time saving and better sharring of thoughts and knowledge with all. There will be very less of misscommunication. Other then that you sprial model is the best one, If you are not working in client side.

    #34 rajjonnada on 01.29.08 at 6:55 am

    @ vijay

    can you mail me personally to the rajjonnada@gmail.com/raj_jonnada@yahoo.co.in.
    thank you

    #35 rajjonnada on 01.29.08 at 7:33 am

    @vishala

    can u give the mail id, i do have some stuff regarding agile and waterfall model if you needed.

    #36 raja on 01.30.08 at 6:55 am

    This article is fantastic vijay…

    #37 raja on 01.31.08 at 11:41 am

    @vishala

    Principles of Test Automation
    In considering how to approach a systematic and productive test automation effort, it may help to keep the following principles in mind. They are culled from the experience of many test automation engineers and managers, over the last 15 years. Some of them I have explained in detail in my article Test Automation Snake Oil, and in my book Lessons Learned in Software Testing.
    Transitioning to Agile Test Automation
    1) Establish and announce the role of the test automation team to developers and testers.
    2) Establish a reporting system and a dispatching system for the automation team.
    3) Make an inventory of known testware within the company.
    4) Make a quick survey of testware available outside the company.
    5) Have toolsmiths sit with testers, understand how they test, and identify test automation opportunities
    6) Create the experience for the testers of making a request and seeing it rapidly granted.
    7) Review the progress of the automation effort no less frequently than every two weeks.
    8 ) Continue to improve the training of the testers, so that they are better able to conceive of sophisticated test strategies.

    see more guide on agile automation here

    #38 raja on 01.31.08 at 11:42 am

    This is by Mr. James Bach.

    #39 suganya on 02.06.08 at 12:51 pm

    Hi,
    Its reall nice,i can understand how to write a effective bug Report,but please can u send me Original Bug Report Template with some examples.. i am working as a Manual tester.. so please Help me

    #40 suganya on 02.06.08 at 12:53 pm

    hi,
    u mail me in suganya.thirunavukkarasu@3i-infotech.com

    #41 Gaurav Garg on 02.12.08 at 12:05 pm

    Hi
    It is really good.Through this i understand how to write effective bug report.What are the steps we should follow to reproduce a bug.

    #42 Devendra sonpure on 02.26.08 at 8:56 am

    hi
    i am devendra working as a software test engineer. your report is really good and i am impress to see it

    #43 salman on 02.28.08 at 11:20 am

    hi all
    is Software engineer term can be used for qa

    #44 salman on 02.28.08 at 11:27 am

    i am new to qa, can any body tell me detail of reproduce

    #45 Pravin on 02.29.08 at 5:26 am

    please mail me any bug report for sql based project.as next month i will be working on same,please.
    pravin.mahajan1@gmail.com

    #46 kathyayani on 02.29.08 at 5:55 am

    please can you mail me the bug report

    #47 kathyayani on 02.29.08 at 5:56 am

    please can you mail me the bug report p.kathyayani@yahoo.com

    #48 selvam on 03.05.08 at 1:20 pm

    @vijay
    Vijay you are doing simply the worthful job.really great

    #49 selvam on 03.05.08 at 1:32 pm

    Please can anyone send me the original bug report..
    selvam.ba@rediffmail.com

    #50 vijay on 03.06.08 at 10:14 am

    >>hi this is mohini , which is the best model in SDLC to follow for the small projects.

    In Waterfall model and Spiral models

    @mohini k

    r u working? how many SDLC models you know apart from these two which you have mentioned?

    vijaysavalagi@gmail.com

    #51 vijay on 03.06.08 at 10:20 am

    >>Its reall nice,i can understand how to write a effective bug Report,but please can u send me Original Bug Report Template with some examples.. i am working as a Manual tester..

    @suganya,

    till now which template you were using? you were not able to communicate properly with developers with your template? because many organizations use many template formats.

    #52 How to get your all bugs resolved without any ‘Invalid bug’ label? « Thiyagarajan Veluchamy’s Blog on 03.14.08 at 3:45 pm

    […] to get his/her 100% bugs resolved. This requires bug reporting skill. See my previous post on “How to write a good bug report? Tips and Tricks” to report bugs professionally and without any […]

    #53 Min on 03.19.08 at 2:57 pm

    1 .do we have any standard test template for testing component/ classes?
    2.do we have any standard test template for testing internal window application?

    #54 Praveena on 03.20.08 at 12:19 pm

    Hi,

    Really ur material is good … excellent

    #55 susan on 04.10.08 at 6:09 am

    How to write the bug report?
    I could see lot of times the testers starts with the objects first then subject, like “if user enter something page crash ” is it right? or subject first then object, like Page crash on ‘event’ when user enter something” which approach is right? please comment me…
    cheers
    susan

    #56 Nikhil on 04.13.08 at 9:14 am

    To Priya K,
    U can get project easily for ur MBA. Contact me. Thanks,
    Nikhil

    #57 S R on 04.13.08 at 9:17 am

    Hi,

    can anyone pls suggest me for which tool to start with.
    I m having 2 yrs exp in manual, now i want to learn tools.

    Sumit

    #58 George on 04.16.08 at 5:22 am

    @SR
    VSTS is the best tool for performance testing and QTP for functional testing.
    cheers

    #59 phalguna on 04.16.08 at 10:33 am

    Hi,
    Its reall nice,i can understand how to write a effective bug Report,but please can u send me Original Bug Report Template with some examples.. i am working as a Manual tester..we have no particular template in our company so please Help me this is my mailid

    thanks for Advance
    s_phalguna@yahoo.com
    Regards
    PHALGUNA

    #60 Kavita on 04.23.08 at 8:47 am

    Hi,

    this article is really helpful. Can anyone please explain how to write bug report by some examples. like above asked for sql based project example. it would be better if u post it in this knowledgable and helpful site. if not comfortable my email id is kv.testing22@gmail.com

    thanks
    Kavita

    #61 mani on 04.23.08 at 9:00 am

    i need lot of help in testing can any one guide and share their respective knowledge with me

    my id is saini.msmani@gmail.com

    #62 mani on 04.23.08 at 9:02 am

    hi kavita can we chat in gmail to know more about testing and share knowledge

    #63 VijayD on 04.29.08 at 5:28 am

    I feel attaching screenshots of the BUG is very important in Bug reporting.

    #64 AJAY on 04.30.08 at 10:21 am

    Hi, i came to know alot of things about bug reporting.
    thank q and the importace of screenshots.

    #65 VIJAYD on 05.02.08 at 9:47 am

    Hi All,

    On seeing many requests, I feel that the below one would be helpful to you all.

    Lets assume in your application you want to create a new user with his/her information, for that you need to logon into the applicataion and navigate to USERS menu > New User, then enter all the details in the User form like, First Name, Last Name, Age, Address, Phone etc. Once you enter all these need to click on SAVE button in order to save the user and you can see a success message saying “New User has been created successfully”.

    Now you entered into your application by logging in and navigete to USERS menu > New user, entered all the information and clicked on SAVE button and now the application creashed and you can see one error page
    on the screen, now you would like to report this BUG.

    BUG REPORT:

    Bug Name: Application crash on clicking the SAVE button while creating a new user.
    Bug ID : It will be automatically created by the BUG Tracking tool once you save this.
    Area Path: USERS menu > New Users
    Build Number:/Version Number 5.0.1
    Severity: HIGH (High/Medium/Low)
    Priority: HIGH (High/Medium/Low)
    Assigned to: Developer-X
    Created By: Your Name
    Cerated On: Date
    Reason: Defect
    status: New/Open/Active - Depends on the Tool you are using
    Environment: Windows 2003/SQL Server 2005

    Description:
    Application crash on clicking the SAVE button while creating a new
    user, hence unable to create a new user in the application.

    Steps To Reproduce:
    1) Logon into the application
    2) Navigate to the USers Menu > New User
    3) Filled all the fields
    4) Clicked on Save button
    5) Seen an error page “ORA1090 Exception: Insert values Error…”
    6) See the attached logs for more information
    7) And also see the attached screenshot of the error page.

    Expected: On clicking SAVE button should be prompted to a success message “New User has been created successfully”.

    Save the defect/bug in the BUG TRACKING TOOL.

    Regards,
    VijayD

    #66 Sample bug report. How to write ideal bug report on 05.04.08 at 2:40 am

    […] If you need more information about writing a good bug report read our previous post “How to write a good bug report“.

    #67 Sangeetha on 05.23.08 at 12:20 pm

    Hi,

    Thanks for the worderfull document, which could help all the freshers(tester) to give a very good report. and this could help to increase there Confidence level.

    #68 hareesha on 05.26.08 at 10:05 am

    hiiiiiiiiiiiiiiiiiiiii
    its very nice article and very usefullllllll.
    thank u very much.

    #69 Storm on 06.02.08 at 7:31 am

    Hello……..

    i read all the bonus points to write the effective bug report and i totally agreed with u except one……….

    here u say before writing the bug report we reproduce it three time but in some case we found the error in single time and in future it will not generate…….then what we will do with these type of bugs……….

    e.g. in some case while testing we found the scripting error but if we try to reproduce it then we may or may not get it again.
    then I want to know in this case what we will do.

    Thanks

    #70 senthilkumar on 06.11.08 at 7:28 am

    Hi I am a beginner in testing. This article very very useful for me.
    Thanks

    #71 Thanigam on 06.11.08 at 10:24 am

    hi,

    I like your explanation for testing concepts, could you mail me the current updates in testing concetps.

    regards,
    Thanigam

    #72 selvam on 06.11.08 at 2:02 pm

    Hi Friends,

    Currently i am working in Non-IT field and planned to switch my career to testing.I had learned the basics of testing,and now i am very eager to learn testing practically with real time projects.
    If any one interested to teach testing personally with real time projects , i will be more grateful, or else show me the right place in chennai.
    Thanks & regards
    selvam.ba@rediffmail.com

    #73 prasad on 07.03.08 at 7:27 pm

    bug reporting processes is very nice given by you.

    thanQ very much

    #74 upender reddy on 07.10.08 at 12:28 pm

    hi,

    i like your concepts,
    thak you very much.

    #75 sarang shinde on 07.11.08 at 5:21 am

    how to write a good bug report

    #76 viji on 07.11.08 at 9:29 am

    hello,

    I am testing the Web Applications. I am manually preparing the Bug Report. can anyone suggest me which is best Bug Tracking Tool. (Open source Bug Tracking Tool).

    with regards,
    viji

    #77 Abhishek Kumar on 07.11.08 at 2:20 pm

    In a day how many test cases you write in your company.
    or
    In a day how many test cases you have to write.

    #78 Abhishek Kumar on 07.11.08 at 2:22 pm

    In a day how many test cases you can write in your company
    or
    In a day how many test cases you have to write.

    #79 ashwani sharma on 07.12.08 at 7:08 am

    writing of test cases depends upon the type of task if the task is typical then u have too think too much about the various conditions.

    remember one thing better the test cases and the planning best is ur testing and for both of it u have too think deeply.

    #80 abhaya on 07.19.08 at 11:39 pm

    how do we deal with the bugs which are reproducible but end user has no control on reproducing them, for example there is some test requested and a test number is generated ….. 1 request opens one test # and is shown to end user …. but actually some times 2 test numbers are generated and the other one is hidden.

    #81 Abhishek Kumar on 07.27.08 at 2:50 pm

    Thanks ashwani

    #82 Abhishek Kumar on 07.27.08 at 2:58 pm

    Hi friends plz share ur experience.

    How can I write a Test Scenario for the particular module. Plz understand me with the example?

    abhishek.kur1@gmail.com

    #83 Abhishek Kumar on 07.27.08 at 3:01 pm

    Hi friends plz share ur experience.

    What is the diference between Test Scenerio & Test Case. Plz understand me with example.

    abhishek.kur1@gmail.com

    #84 I feel very good on 07.30.08 at 10:43 am

    I usually test by manual and write bug on program write mantis. I feel very worderful.
    I want to learn to every body.

    #85 Abhishek Kumar on 08.03.08 at 2:20 pm

    Hi Vijay
    & friends plz share ur experience.

    How can I write a Test Scenario for the particular module. Plz understand me with the example?

    abhishek.kur1@gmail.com

    #86 Abhishek Kumar on 08.03.08 at 2:21 pm

    Hi Vijay
    & friends plz share ur experience.

    What is the diference between Test Scenerio & Test Case. Plz understand me with example.

    abhishek.kur1@gmail.com

    #87 Praveen kumar on 08.05.08 at 10:04 am

    Its reall nice,i can understand how to write a effective bug Report,but please can u send me Original Bug Report Template with some examples.. i am working as a Manual tester..plz…

    #88 Praveen kumar on 08.05.08 at 10:07 am

    plz.. send me the Bug Report
    mailme.praveen@gmail.com

    #89 Praveen kumar on 08.05.08 at 11:35 am

    sorry for writing wrong email Id My mailID:mailmee.praveen@gmail.com

    #90 Hi Vijay on 09.04.08 at 6:50 am

    Its really good,
    Pls mailme bug report.

    Leave a Comment