ISTQB

Loading

How to Write Effective Bug Reports

CTFL (Foundation)
CTFL (Foundation)
Author
Gugapriya
Date
2012-06-29 14:52
Views
46615215

How to Write Effective Bug Reports

How often do we see the developers requiring more information on the bug reports filed by us? How often do we need to spend more time investigating on the issue after the bug report has been filed? How often do we get to hear from the developers that the bug is not reproducible on their end and we need to improvise on the Steps To Reproduce? In a broad sense, we end up spending more time on these issues rather than investing more time testing the system. The problem lies in the quality of bug reports. Here are some areas which can be improved upon to achieve that perfect bug report.

The Purpose Of A Bug Report

When we uncover a defect, we need to inform the developers about it. Bug report is a medium of such communication. The primary aim of a bug report is to let the developers see the failure with their own eyes. If you can't be with them to make it fail in front of them, give them detailed instructions so that they can make it fail for themselves. The bug report is a document that explains the gap between the expected result and the actual result and detailing on how to reproduce the scenario.

After Finding The Defect

  • Draft the bug report just when you are sure that you have found a bug, not after the end of test or end of day. It might be possible that you might miss out on some point. Worse, you might miss the bug itself.
  • Invest some time to diagnose the defect you are reporting. Think of the possible causes. You might land up uncovering some more defects. Mention your discoveries in your bug report. The programmers will only be happy seeing that you have made their job easier.
  • Take some time off before reading your bug report. You might feel like re-writing it.

Defect Summary

The summary of the bug report is the reader.s first interaction with your bug report. The fate of your bug heavily depends on the attraction grabbed by the summary of your bug report. The rule is that every bug should have a one-liner summary. It might sound like writing a good attention-grabbing advertisement campaign. But then, there are no exceptions. A good summary will not be more than 50-60 characters. Also, a good summary should not carry any subjective representations of the defect.

The Language

  • Do not exaggerate the defect through the bug report. Similarly, do not undertone it.
  • However nasty the bug might be, do not forget that it.s the bug that.s nasty, not the programmer. Never offend the efforts of the programmer. Use euphemisms. 'Dirty UI' can be made milder as 'Improper UI'. This will take care that the programmer's efforts are respected.
  • Keep It Simple & Straight. You are not writing an essay or an article, so use simple language.
  • Keep your target audience in mind while writing the bug report. They might be the developers, fellow testers, managers, or in some cases, even the customers. The bug reports should be understandable by all of them.

Steps To Reproduce

  • The flow of the Steps To Reproduce should be logical.
  • Clearly list down the pre-requisites.
  • Write generic steps. For example, if a step requires the user to create file and name it, do not ask the user to name it like "Mihir's file". It can be better named as "Test File".
  • The Steps To Reproduce should be detailed. For example, if you want the user to save a document from Microsoft Word, you can ask the user to go to File Menu and click on the Save menu entry. You can also just say "save the document". But remember, not everyone will not know how to save a document from Microsoft Word. So it is better to stick to the first method.
  • Test your Steps To Reproduce on a fresh system. You might find some steps that are missing, or are extraneous.

Test Data

Strive to write generic bug reports. The developers might not have access to your test data. If the bug is specific to a certain test data, attach it with your bug report.

Screenshots

Screenshots are a quite essential part of the bug report. A picture makes up for a thousand words. But do not make it a habit to unnecessarily attach screen shots with every bug report. Ideally, your bug reports should be effective enough to enable the developers to reproduce the problem. Screen shots should be a medium just for verification.

  • If you attach screen shots to your bug reports, ensure that they are not too heavy in terms of size. Use a format like jpg or gif, but definitely not bmp.
  • Use annotations on screen shots to pin-point at the problems. This will help the developers to locate the problem at a single glance.

Severity / Priority

  • The impact of the defect should be thoroughly analyzed before setting the severity of the bug report. If you think that your bug should be fixed with a high priority, justify it in the bug report. This justification should go in the Description section of the bug report.
  • If the bug is the result of regression from the previous builds/versions, raise the alarm. The severity of such a bug may be low but the priority should be typically high.

Logs

Make it a point to attach logs or excerpts from the logs. This will help the developers to analyze and debug the system easily. Most of the time, if logs are not attached and the issue is not reproducible on the developer's end, they will revert to you asking for logs.

If the logs are not too large, say about 20-25 lines, you can paste it in bug report. But if it is large enough, add it to your bug report as an attachment, else your bug report will look like a log.

Other Considerations

  • If your bug is randomly reproducible, just mention it in your bug report. But don.t forget to file it. You can always add the exact steps to reproduce anytime later you (or anyone else) discover them. This will also come to your rescue when someone else reports this issue, especially if it.s a serious one.
  • Mention the error messages in the bug report, especially if they are numbered. For example, error messages from the database.
  • Mention the version numbers and build numbers in the bug reports.
  • Mention the platforms on which the issue is reproducible. Precisely mention the platforms on which the issue is not reproducible. Also understand that there is difference between the issue being not reproducible on a particular platform and it not being tested on that platform. This might lead to confusion.
  • If you come across several problems having the same cause, write a single bug report. The fix of the problem will be only one. Similarly, if you come across similar problems at different locations requiring the same kind of fix but at different places, write separate bug reports for each of the problems. One bug report for only one fix.
  • If the test environment on which the bug is reproducible is accessible to the developers, mention the details of accessing this setup. This will help them save time to setting up the environment to reproduce your bug.
  • Under no circumstances should you hold on to any information regarding the bug. Unnecessary iterations of the bug report between the developer and the tester before being fixed is just waste of time due to ineffective bug reporting.
Total Reply 2

  • 2011-01-22 03:28

    the comments are full informative.


  • 2012-06-10 20:49

     a perfect and the best article on bug reporting ... all the information at single place. must read for all testers. thanx for such a valued sharing. regards


Total 1,272
Number Title Author Date Votes Views
Notice
ISTQB_CTAL-TM_Syllabus v3.0
admin | 2025.06.16 | Votes 0 | Views 24961131
admin 2025.06.16 0 24961131
Notice
CTFL (Certified Tester Foundation Level) Syllabus 4.0
admin | 2024.09.15 | Votes 0 | Views 36390794
admin 2024.09.15 0 36390794
Notice
ISTQB Foundation - Certified Tester (2018) : Official Sample Exam Set 2 with Answer (4)
Testersbest | 2019.06.21 | Votes 0 | Views 45206995
Testersbest 2019.06.21 0 45206995
Notice
ISTQB Foundation - Certified Tester (2018) : Official Sample Exam Set 1 with Answer (3)
Testersbest | 2019.06.21 | Votes 0 | Views 45647137
Testersbest 2019.06.21 0 45647137
Notice
ISTQB Foundation Certified Tester (2018) : New Exam Rule (1)
Testersbest | 2019.06.21 | Votes 0 | Views 46214420
Testersbest 2019.06.21 0 46214420
Notice
ISTQB Foundation - Certified Tester Syllabus (2018)
VTB | 2018.11.14 | Votes 0 | Views 46493468
VTB 2018.11.14 0 46493468
Notice
ISTQB Advanced Level Syllabus (2016) Security Tester
VTB | 2018.10.26 | Votes 0 | Views 45867420
VTB 2018.10.26 0 45867420
Notice
ISTQB Advanced Level Syllabus (2012) Technical Test Analyst
VTB | 2016.05.06 | Votes 0 | Views 45197590
VTB 2016.05.06 0 45197590
Notice
ISTQB Advanced Level Syllabus (2012) Test Manager
VTB | 2016.05.06 | Votes 0 | Views 45187777
VTB 2016.05.06 0 45187777
Notice
ISTQB Advanced Level Syllabus (2012) Test Analyst
VTB | 2016.05.06 | Votes 0 | Views 45703930
VTB 2016.05.06 0 45703930
Notice
ISTQB Glossary of Testing Terms Version:2.2
VTB | 2016.05.06 | Votes 0 | Views 45726453
VTB 2016.05.06 0 45726453
Notice
ISTQB Expert Level (CTEL) Syllabus -Test Management (3)
VTB | 2015.09.13 | Votes 0 | Views 45214173
VTB 2015.09.13 0 45214173
Notice
ISTQB Expert Level (CTEL) Syllabus - Improving the Testing Process (1)
VTB | 2015.09.13 | Votes 0 | Views 46147748
VTB 2015.09.13 0 46147748
Notice
ISTQB Foundation Level (CTFL) Syllabus 2011 (12)
VTB | 2014.10.11 | Votes 0 | Views 45405740
VTB 2014.10.11 0 45405740
1258
ISTQB CTAL TAE Syllabus v2.0
admin | 2025.06.16 | Votes 1 | Views 24233257
admin 2025.06.16 1 24233257
1257
ISTQB Question and Answers (Advanced Level)
Steveskok | 2021.02.07 | Votes 0 | Views 46091819
Steveskok 2021.02.07 0 46091819
1256
ISTQB Certified Tester Foundation Level Syllabus Version 2018 V3.1
(TestExpert) | 2020.02.03 | Votes 0 | Views 45551549
(TestExpert) 2020.02.03 0 45551549
1255
ISTQB Advanced - Technical Test Analyst Sample Exam
ItSeTsQtB | 2019.08.08 | Votes 1 | Views 45464730
ItSeTsQtB 2019.08.08 1 45464730
1254
ISTQB Certification and Training Value
^Software^ | 2019.07.22 | Votes 0 | Views 46603449
^Software^ 2019.07.22 0 46603449
1253
ISTQB Foundation - Agile Tester (Sample Exam)
IT-Tester | 2019.07.08 | Votes 0 | Views 44811329
IT-Tester 2019.07.08 0 44811329
1252
ISTQB Advanced - Technical Test Analyst (Sample Exam)
IT-Tester | 2019.07.08 | Votes 0 | Views 45676186
IT-Tester 2019.07.08 0 45676186
1251
ISTQB Advanced - Test Analyst (Sample Exam) (1)
IT-Tester | 2019.07.08 | Votes 0 | Views 45962530
IT-Tester 2019.07.08 0 45962530
1250
Premium Question Paper 4 (3)
iknev | 2019.02.22 | Votes 0 | Views 47032697
iknev 2019.02.22 0 47032697
1249
Premium Question Paper 3 (6)
iknev | 2019.02.22 | Votes 0 | Views 44963394
iknev 2019.02.22 0 44963394
1248
Premium Question Paper 1 (2)
iknev | 2019.02.22 | Votes 0 | Views 45856156
iknev 2019.02.22 0 45856156
1247
ISTQB Question Bank_ Test Manager Sample Question Set 1
iknev | 2019.02.22 | Votes 1 | Views 45779616
iknev 2019.02.22 1 45779616
1246
ISTQB Certified Tester List (FULL)
VTB | 2018.10.31 | Votes 0 | Views 46111813
VTB 2018.10.31 0 46111813
1245
ISTQB Agile Exam (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 46884993
VTB 2018.10.28 0 46884993
1244
ISTQB Foundation Exam (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 46232449
VTB 2018.10.28 0 46232449
1243
ISTQB Foundation Course (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 45258830
VTB 2018.10.28 0 45258830
1242
ISTQB Foundation Agile Course (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 45069872
VTB 2018.10.28 0 45069872
1241
ISTQB Course + Internship (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 45994293
VTB 2018.10.28 0 45994293
1240
ISTQB Expert - Improving the Test Process [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 46063502
VTB 2018.10.26 0 46063502
1239
ISTQB Expert - Test Manager [Sample Exam & Answer] - ISTQB Official (1)
VTB | 2018.10.26 | Votes 0 | Views 45299893
VTB 2018.10.26 0 45299893
1238
ISTQB Advanced - Technical Test Analyst [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 46187180
VTB 2018.10.26 0 46187180
1237
ISTQB Advanced - Test Analyst [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 46045745
VTB 2018.10.26 0 46045745
1236
ISTQB Advanced - Test Manager [Sample Exam & Answer] - ISTQB Official (1)
VTB | 2018.10.26 | Votes 0 | Views 45841535
VTB 2018.10.26 0 45841535
1235
ISTQB Foundation - Model Based Tester [Sample Exam & Answers] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 46603196
VTB 2018.10.26 0 46603196
1234
ISTQB Foundation - Agile Tester [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 45371722
VTB 2018.10.26 0 45371722
1233
ISTQB Foundation - Certified Tester [Sample Exam & Answer] - ISTQB Official (1)
VTB | 2018.10.26 | Votes 0 | Views 45403118
VTB 2018.10.26 0 45403118
1232
ISTQB Exam Tips and Tricks
VTB | 2018.10.16 | Votes 0 | Views 46210949
VTB 2018.10.16 0 46210949
1231
ISTQB Foundation Level Quiz 20 Questions (1)
aiitistqb | 2018.10.16 | Votes 0 | Views 47131434
aiitistqb 2018.10.16 0 47131434
1230
ISTQB Free Sample Exam and Answers
aiitistqb | 2018.10.16 | Votes 0 | Views 46293018
aiitistqb 2018.10.16 0 46293018
1229
ISTQB Foundation - Agile Extension Online Courses is live!!
VTB | 2018.10.16 | Votes 0 | Views 45584042
VTB 2018.10.16 0 45584042
1228
ISTQB Foundation Online Courses are Live!!
VTB | 2018.10.12 | Votes 0 | Views 46880939
VTB 2018.10.12 0 46880939
1227
ISTQB Foundation (Practice Exam)
VTB | 2018.10.12 | Votes 0 | Views 45859246
VTB 2018.10.12 0 45859246
1226
CTAL TM Questions (23)
ulissesmafra | 2018.10.09 | Votes 1 | Views 46070407
ulissesmafra 2018.10.09 1 46070407
1225
Syllabus 2012 (2)
ulissesmafra | 2018.10.09 | Votes 0 | Views 46435944
ulissesmafra 2018.10.09 0 46435944
1224
ISEB & ISTQB EXAM TIPS (3)
Sky Driver | 2018.09.24 | Votes 0 | Views 45455918
Sky Driver 2018.09.24 0 45455918
1223
Tips for clearing ISTQB Foundation Level Exam (1)
Sky Driver | 2018.09.24 | Votes 0 | Views 46306201
Sky Driver 2018.09.24 0 46306201
1222
Tips for passing the ISTQB Foundation Level exam – Do’s and Don’t’s
Sky Driver | 2018.09.24 | Votes 0 | Views 45886977
Sky Driver 2018.09.24 0 45886977
1221
Why do people fail the ISTQB Foundation Certificate? (1)
Sky Driver | 2018.09.24 | Votes 0 | Views 45854273
Sky Driver 2018.09.24 0 45854273
1220
ISTQB Foundation Mock Exam 2 (3)
peter_hey | 2018.09.19 | Votes 3 | Views 45931579
peter_hey 2018.09.19 3 45931579
1219
ISTQB Foundation Mock Exam 1 (3)
peter_hey | 2018.09.19 | Votes 0 | Views 45046565
peter_hey 2018.09.19 0 45046565
1218
What is ISTQB? (1)
master15 | 2018.09.19 | Votes 0 | Views 46286392
master15 2018.09.19 0 46286392
1217
Syllabus (2)
richp | 2018.09.18 | Votes 0 | Views 46103427
richp 2018.09.18 0 46103427
1216
Learning Objectives for ISTQB Advanced Level Technical Test Analyst Exam (1)
master15 | 2018.09.16 | Votes 0 | Views 45375443
master15 2018.09.16 0 45375443
1215
Software Testing Tools used by ISTQB certified Experts like Test Analysts and Technical Test Analysts (2)
master15 | 2018.09.16 | Votes 0 | Views 46238671
master15 2018.09.16 0 46238671
1214
What are the Advantages of ISTQB Certifications? (1)
master15 | 2018.09.13 | Votes 0 | Views 46399935
master15 2018.09.13 0 46399935
1213
How many Levels of Certification are provided by ISTQB? (1)
master15 | 2018.09.13 | Votes 0 | Views 45867887
master15 2018.09.13 0 45867887
1212
Syllabus CTAL-TTA - [BR] (1)
tcorteletti | 2018.09.09 | Votes 0 | Views 45409318
tcorteletti 2018.09.09 0 45409318
1211
Syllabus CTFL - [BR] (1)
tcorteletti | 2018.09.09 | Votes 0 | Views 45370429
tcorteletti 2018.09.09 0 45370429
1210
ISTQB Certification – Foundation Level syllabus
Sky Driver | 2018.09.05 | Votes 0 | Views 45648542
Sky Driver 2018.09.05 0 45648542
1209
Documents to be submitted at the time of registration of ISTQB Advanced Level (2)
Sky Driver | 2018.09.05 | Votes 0 | Views 45674159
Sky Driver 2018.09.05 0 45674159