aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/pages/bug-writing.html.tmpl
blob: c007b043b41fb511660cd79fa01f8395d91d9b4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
[%# 1.0@bugzilla.org %]
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the Bugzilla Bug Tracking System.
  #
  # The Initial Developer of the Original Code is Netscape Communications
  # Corporation. Portions created by Netscape are
  # Copyright (C) 1998 Netscape Communications Corporation. All
  # Rights Reserved.
  #
  # Contributor(s): Eli Goldberg <eli@prometheus-music.com>
  #                 Gervase Markham <gerv@gerv.net>
  #                 Claudius Gayle
  #                 Peter Mock
  #                 Chris Pratt
  #                 Tom Schutter
  #                 Chris Yeh
  #%]
  
[% PROCESS global/variables.none.tmpl %] 
[% INCLUDE global/header.html.tmpl title = "$terms.Bug Writing Guidelines" %] 

<h3>Why You Should Read This</h3>

<blockquote>
  <p>Simply put, the more effectively you report [% terms.abug %], the more
  likely an
  engineer will actually fix it.</p>

  <p>These guidelines are a general tutorial to teach novice and
  intermediate [% terms.bug %] reporters how to compose effective 
  [% terms.bug %] reports. Not
  every sentence may precisely apply to your software project.</p>
</blockquote>

<h3>How to Write a Useful [% terms.Bug %] Report</h3>

<blockquote>
  <p>Useful [% terms.bug %] reports are ones that get [% terms.bugs %] fixed. 
  A useful [% terms.bug %] report normally has two qualities:</p>

  <ol>
    <li><b>Reproducible.</b> If an engineer can't see the [% terms.bug %]
    herself to prove that it exists, she'll probably stamp your [% terms.bug %]
    report "WORKSFORME" or "INVALID" and move on to the next [% terms.bug %].
    Every detail you can provide helps.<br>
    <br>
    </li>

    <li><b>Specific.</b> The quicker the engineer can isolate the 
    [% terms.bug %] to a specific area, the more likely she'll expediently 
    fix it. (If a programmer or tester has to decipher [% terms.abug %], 
    they may spend more time cursing the submitter than solving the 
    problem.)<br>
    <br>
    [ <a href="#tips" name="Anchor">Tell Me More</a> ]</li>
  </ol>

  <p>Let's say the application you're testing is a web browser. You crash
  at foo.com, and want to write up a [% terms.bug %] report:</p>

  <blockquote>
    <p><b>BAD:</b> "My browser crashed. I think I was on www.foo.com. I
    play golf with Bill Gates, so you better fix this problem, or I'll
    report you to him. By the way, your Back icon looks like a squashed
    rodent. UGGGLY. And my grandmother's home page is all messed up in your
    browser. Thx 4 UR help."</p>

    <p><b>GOOD:</b> "I crashed each time I went to www.foo.com, using the
    2002-02-25 build on a Windows 2000 system. I also rebooted into Linux,
    and reproduced this problem using the 2002-02-24 Linux build.</p>

    <p>It again crashed each time upon drawing the Foo banner at the top of
    the page. I broke apart the page, and discovered that the following
    image link will crash the application reproducibly, unless you remove
    the "border=0" attribute:</p>

    <p><tt>&lt;IMG SRC="http://www.foo.com/images/topics/topicfoos.gif"
    width="34" height="44" border="0" alt="News"&gt;</tt></p>
  </blockquote>
</blockquote>

<h3>How to Enter your Useful [% terms.Bug %] Report 
    into [% terms.Bugzilla %]:</h3>

<blockquote>
  <p>Before you enter your [% terms.bug %], use [% terms.Bugzilla %]'s 
  <a href="query.cgi">search page</a> to determine whether the defect 
  you've discovered is a known, already-reported [% terms.bug %]. If 
  your [% terms.bug %] is the 37th duplicate of a known issue,
  you're more likely to annoy the engineer. (Annoyed engineers fix fewer
  [% terms.bugs %].)</p>

  <p>Next, be sure to reproduce your [% terms.bug %] using a recent build. 
  Engineers tend to be most interested in problems affecting the code base 
  that they're actively working on. After all, the [% terms.bug %] you're 
  reporting may already be fixed.</p>

  <p>If you've discovered a new [% terms.bug %] using a current build, report 
  it in [% terms.Bugzilla %]:</p>

  <ol>
    <li>From your [% terms.Bugzilla %] main page, choose 
    "<a href="enter_bug.cgi">Enter a new [% terms.bug %]</a>".</li>

    <li>Select the product that you've found a [% terms.bug %] in.</li>

    <li>Enter your e-mail address, password, and press the "Login" button.
    (If you don't yet have a password, leave the password field empty, and
    press the "E-mail me a password" button instead. You'll quickly receive
    an e-mail message with your password.)</li>
  </ol>

  <p>Now, fill out the form. Here's what it all means:</p>

  <p><b>Where did you find the [% terms.bug %]?</b></p>

  <blockquote>
    <p><b>Product: In which product did you find the [% terms.bug %]?</b><br>
     You just specified this on the last page, so you can't edit it
    here.</p>

    <p><b>Version: In which product version did you find 
          the [% terms.bug %]?</b><br>
     (If applicable)</p>

    <p><b>Component: In which component does the [% terms.bug %] 
          exist?</b><br>
    [% terms.Bugzilla %] requires that you select a component to enter 
    a [% terms.bug %]. (Not sure which to choose? Click on the Component link. 
    You'll see a description of each component, to help you make the best 
    choice.)</p>

    <p><b>OS: On which Operating System (OS) did you find 
          this [% terms.bug %]?</b>
    (e.g. Linux, Windows 2000, Mac OS 9.)<br>
    If you know the [% terms.bug %] happens on all OSs, choose 'All'. 
    Otherwise, select the OS that you found the [% terms.bug %] on, or 
    "Other" if your OS isn't listed.</p>
  </blockquote>

  <p><b>How important is the [% terms.bug %]?</b></p>

  <blockquote>
    <p><b>Severity: How damaging is the [% terms.bug %]?</b><br>
     This item defaults to 'normal'. If you're not sure what severity your
    [% terms.bug %] deserves, click on the Severity link. You'll see a
    description of each severity rating.<br>
    </p>
  </blockquote>

  <p><b>Who will be following up on the [% terms.bug %]?</b></p>

  <blockquote>
    <p><b>Assigned To: Which engineer should be responsible for fixing
    this [% terms.bug %]?</b><br>
    [% terms.Bugzilla %] will automatically assign the [% terms.bug %] to a
    default engineer upon submitting [% terms.abug %] report. If you'd prefer
    to directly assign the [% terms.bug %] to someone else, enter their e-mail
    address into this field. (To see the list of default engineers for each
    component, click on the Component link.)</p>

    <p><b>Cc: Who else should receive e-mail updates on changes to this
    [% terms.bug %]?</b><br>
     List the full e-mail addresses of other individuals who should receive
    an e-mail update upon every change to the [% terms.bug %] report. You can
    enter as many e-mail addresses as you'd like, separated by spaces or 
    commas, as long as those people have [% terms.Bugzilla %] accounts.</p>
  </blockquote>

  <p><b>What else can you tell the engineer about the [% terms.bug %]?</b></p>

  <blockquote>
    <p><b>Summary:</b> <b>How would you describe the [% terms.bug %], in 
    approximately 60 or fewer characters?</b><br>
     A good summary should <b>quickly and uniquely identify [% terms.abug %]
    report</b>. Otherwise, an engineer cannot meaningfully identify your
    [% terms.bug %] by its summary, and will often fail to pay attention to 
    your [% terms.bug %] report when skimming through a 10 
    page [% terms.bug %] list.<br>
    <br>
     A useful summary might be "<tt>PCMCIA install fails on Tosh Tecra
    780DVD w/ 3c589C</tt>". "<tt>Software fails</tt>" or "<tt>install
    problem</tt>" would be examples of a bad summary.<br>
    <br>
     [ <a href="#summary">Tell Me More</a> ]<br>
    <br>
     <b>Description:</b><br>
     Please provide a detailed problem report in this field. Your 
     [% terms.bug %]'s recipients will most likely expect the following 
     information:</p>

    <blockquote>
      <p><b>Overview Description:</b> More detailed expansion of
      summary.</p>

      <blockquote>
<pre>
Drag-selecting any page crashes Mac builds in NSGetFactory
</pre>
      </blockquote>

      <p><b>Steps to Reproduce:</b> Minimized, easy-to-follow steps that
      will trigger the [% terms.bug %]. Include any special setup steps.</p>

      <blockquote>
<pre>
1) View any web page. (I used the default sample page,
resource:/res/samples/test0.html)

2) Drag-select the page. (Specifically, while holding down 
the mouse button, drag the mouse pointer downwards from any 
point in the browser's content region to the bottom of the 
browser's content region.)                   
</pre>
      </blockquote>

      <p><b>Actual Results:</b> What the application did after performing
      the above steps.</p>

      <blockquote>
<pre>
The application crashed. Stack crawl appended below from MacsBug.
</pre>
      </blockquote>

      <p><b>Expected Results:</b> What the application should have done,
      were the [% terms.bug %] not present.</p>

      <blockquote>
<pre>
The window should scroll downwards. Scrolled content should be selected. 
(Or, at least, the application should not crash.)
</pre>
      </blockquote>

      <p><b>Build Date &amp; Platform:</b> Date and platform of the build
      that you first encountered the [% terms.bug %] in.</p>

      <blockquote>
<pre>
Build 2002-03-15 on Mac OS 9.0
</pre>
      </blockquote>

      <p><b>Additional Builds and Platforms:</b> Whether or not 
      the [% terms.bug %] takes place on other platforms (or browsers, 
      if applicable).</p>

      <blockquote>
<pre>
- Also Occurs On        
Mozilla (2002-03-15 build on Windows NT 4.0) 

- Doesn't Occur On        
Mozilla (2002-03-15 build on Red Hat Linux; feature not supported)        
Internet Explorer 5.0 (shipping build on Windows NT 4.0)        
Netscape Communicator 4.5 (shipping build on Mac OS 9.0)
</pre>
      </blockquote>

      <p><b>Additional Information:</b> Any other debugging information.
      For crashing [% terms.bugs %]:</p>

      <ul>
        <li><b>Win32:</b> if you receive a Dr. Watson error, please note
        the type of the crash, and the module that the application crashed
        in. (e.g. access violation in apprunner.exe)</li>

        <li><b>Mac OS:</b> if you're running MacsBug, please provide the
        results of a <b>how</b> and an <b>sc</b>:</li>
      </ul>

      <blockquote>
<pre>
*** MACSBUG STACK CRAWL OF CRASH (Mac OS)
Calling chain using A6/R1 links 
Back chain  ISA  Caller 
00000000    PPC  0BA85E74   
03AEFD80    PPC  0B742248   
03AEFD30    PPC  0B50FDDC  NSGetFactory+027FC
PowerPC unmapped memory exception at 0B512BD0 NSGetFactory+055F0
</pre>
      </blockquote>
    </blockquote>
  </blockquote>

  <p>You're done!<br>
  <br>
   After double-checking your entries for any possible errors, press the
  "Commit" button, and your [% terms.bug %] report will now be in 
  the [% terms.Bugzilla %] database.<br>
  </p>
</blockquote>
<hr>

<h3>More Information on Writing Good [% terms.Bugs %]</h3>

<blockquote>
  <p><b><a name="tips"></a> 1. General Tips for a Useful [% terms.Bug %] 
     Report</b></p>

  <blockquote>
    <p><b>Use an explicit structure, so your [% terms.bug %] reports are easy
    to skim.</b> [% terms.Bug %] report users often need immediate access to 
    specific sections of your [% terms.bug %]. If your [% terms.Bugzilla %] 
    installation supports the [% terms.Bugzilla %] Helper, use it.</p>

    <p><b>Avoid cuteness if it costs clarity.</b> Nobody will be laughing
    at your funny [% terms.bug %] title at 3:00 AM when they can't remember how 
    to find your [% terms.bug %].</p>

    <p><b>One [% terms.bug %] per report.</b> Completely different people 
    typically fix, verify, and prioritize different [% terms.bugs %]. If you 
    mix a handful of [% terms.bugs %] into a single report, the right people 
    probably won't discover your [% terms.bugs %] in a timely fashion, or at 
    all. Certain [% terms.bugs %] are also more important than others. It's 
    impossible to prioritize [% terms.abug %] report when
    it contains four different issues, all of differing importance.</p>

    <p><b>No [% terms.bug %] is too trivial to report.</b> Unless you're 
    reading the source code, you can't see actual software [% terms.bugs %], 
    like a dangling pointer -- you'll see their visible manifestations, such 
    as the segfault when the application finally crashes. Severe software 
    problems can manifest themselves in superficially trivial ways. File them
    anyway.<br>
    </p>
  </blockquote>

  <p><b><a name="summary"></a>2. How and Why to Write Good [% terms.Bug %]
  Summaries</b></p>

  <blockquote>
    <p><b>You want to make a good first impression on the [% terms.bug %]
    recipient.</b> Just like a New York Times headline guides readers
    towards a relevant article from dozens of choices, will 
    your [% terms.bug %] summary suggest that your [% terms.bug %] report is 
    worth reading from dozens or hundreds of choices?</p>

    <p>Conversely, a vague [% terms.bug %] summary like <tt>install 
    problem</tt> forces anyone reviewing installation [% terms.bugs %] to waste 
    time opening up your [% terms.bug %] to determine whether it matters.</p>

    <p><b>Your [% terms.bug %] will often be searched by its summary.</b> Just 
    as you'd find web pages with Google by searching by keywords through 
    intuition, so will other people locate your [% terms.bugs %]. 
    Descriptive [% terms.bug %] summaries are
    naturally keyword-rich, and easier to find.</p>

    <p>For example, you'll find a [% terms.bug %] titled "<tt>Dragging icons 
    from List View to gnome-terminal doesn't paste path</tt>" if you search on
    "List", "terminal", or "path". Those search keywords wouldn't have
    found a [% terms.bug %] titled "<tt>Dragging icons doesn't paste</tt>".</p>

    <p>Ask yourself, "Would someone understand my [% terms.bug %] from just 
    this summary?" If so, you've written a fine summary.</p>

    <p><b>Don't write titles like these:</b></p>

    <ol>
      <li>"Can't install" - Why can't you install? What happens when you
      try to install?</li>

      <li>"Severe Performance Problems" - ...and they occur when you do
      what?</li>

      <li>"back button does not work" - Ever? At all?</li>
    </ol>

    <p><b>Good [% terms.bug %] titles:</b></p>

    <ol>
      <li>"1.0 upgrade installation fails if Mozilla M18 package present" -
      Explains problem and the context.</li>

      <li>"RPM 4 installer crashes if launched on Red Hat 6.2 (RPM 3)
      system" - Explains what happens, and the context.</li>
    </ol>
  </blockquote>
</blockquote>

[% INCLUDE global/footer.html.tmpl %]