Вы находитесь на странице: 1из 5

The Bug Life Cycle

Birlasoft Ltd. Classification: CONFIDENTIAL


Table of Contents

What happens to a bug from start to finish. 3

What is a bug? 3

Who can report a bug? 3

When do you report a bug? 3

Bugs are tracked in a database 3

A good bug reports include the following items 4

Things to remember… 4

Rating Bugs 4

Severity 5

Likelihood 5

Severity * Likelihood = Rating 5

Other useful information on a bug report 5

An example of a bug report 6

Examples of poorly written bugs 6

Now we have a bug… 7

The Developer works on the bug… 7

Fixed 7

Duplicate 7

Resolved 7

Need More Information 8

Working as Designed 8

Enhancement 8

Defer 8

Not to be Fixed 9

Tested 9

Pending 9

Can’t Duplicate 9

Birlasoft Ltd. Classification: CONFIDENTIAL


The product has shipped, what happens next? 9

Advanced defect database techniques 9

Reports9

Examples of Reports 10

Customized views of the database 10

The Bug Life Cycle 11

References 12

Birlasoft Ltd. Classification: CONFIDENTIAL


What happens to a bug from start to finish.
While attending testing seminars, I noticed that there was a gap in what was being taught.
There’s a lot of theory presented, a lot of ‘why test’ classes and a lot of classes on specific techniques but
nothing on a couple of practices that will go a long way towards improving the testing process in a
company, specifically setting up a defect tracking system and enforcing policies and procedures to
resolve those defects. Setting up these two things, more than anything else, will put a company on the
road to organizing its testing and QA effort. To fill that gap, I’ve come up with the ‘Bug Life Cycle’
presentation. While I can’t claim it as my own, it is what I’ve learned over the years as a tester; many of
you will find it familiar.

What is a bug?
In computer technology, a bug is a coding error in a computer program. Myers defined it by
saying that “A software error is present when the program does not do what its end user reasonably
expects it to do.” (Myers, 1976.). I tell my testers if you don’t like it, it’s a bug.
Over the years, my colleagues and I have decided that there are as many definitions for the term
“bug” as there are testers. “There can never be an absolute definition for bugs, nor an absolute
determination of their existence. The extent to which a program has bugs is measured by the extent to
which it fails to be useful. This is a fundamentally human measure.” (Beizer, 1984.). For a more definitive
list of many types of bugs refer to Software Testing by Cem Kaner, et. al., pages 363-432.

Who can report a bug?


Anyone who can figure out that the software isn’t working properly can report a bug. The more
people who critique a product, the better it’s going to be. However, here’s a short list of people expected
to report bugs:
Testers / QA personnel
Developers
Technical Support
Beta sites
End users
Sales and marketing staff
(especially when interacting
with customers).

When
notes
don’t
everyone
with doas
or important
on
have
every you
toyou
that run
telling report
details
the do more
around
bug
of the aexists.
about bug?thebuilding
the
story. bug willtelling
investigation
Additionally,be
and forgotten.
work
theeveryone on Writing
theabout
information bug. itthe
aboutnow bug;
thealso a gives
bugsimple
doesn’t you
phone a ‘scratch
change orpad’
call or get
email towillmake
forgotten alert
Bugs
defect
backed
own.
The
have
more
the to
rest
defects
bugfile
database are
reports
than
overlooked up
decision
It’s ofup
run
isget tracked
onthe
them.
one
fixed,
or
acalled
slang on in
but
aforgotten
tothen regular
you. was
defect
Also,
they
term a database
pieces
basis.
I’veisdefects
numbers that
always
for
put
will
is
from
DataPerfect; ofwas
itthe
your
into
greater.
be paper
built
aare
tested
old
file can
cheaper
my
asituation
report,
not own
alwaysget
the
individually
WordPerfect
of bugs, lost
tohence
whenwith
build
human
fixed or
youatdestroyed;
something
andmakemaintain
tendency
instead the ofsame
Corporation.
the word small
that
in isa database
ittoon
like
decision.
time.
a“Bugs”
group
“bugfile”. site
Microsoft
deal
With than
with
where
were isthe
one
first more
the firstreliable
itlogged
Access
was
defect
chance to
problem
perthat
into aand
purchase
orreport,
SQL
a and can
Server.
as
defect
flat file be
it.forget
You’ll
the
is
A good
report.
build
this is
produce
bug. done
developer the
landscape.”
Start with
duplicating
that aFor
new bug
the case,
how reports
in-house
assigned
ais
bug.
example,
bug bug. the
athe
good
has include
for
version
to
Sometimes
computer
using
been testing
that
description;
the
created athe
and and
number
part minor
keyboard following
anddevelopment?
isdetail
ofsoftware
the
short aversus
crucial
product.
and
needs iscan items:
to
setup. Some
piece
the
make
tousing
be of
point.
List
the bugs
alleach
verified the
mouse and may
information.
difference
and may only
every
assigned. occur
in
step
product in the
duplicating
(don’t
very shipping
leaveor not
different any version;to if a
duplicating
out)
results when
Things
those
company
careful
professional.
into
you
is that
thinking
are. to
outside
with remember…
they
state.
Please
along the
work
humorous
Don’tdepartment
don’t
the for
make
sameor the
remarks;
make state
and
assumptions
lines
people one
as even
they
you
guess the
live
person’s
that
are. company.
wherein
the orreader
humor make
you is Please
are any
another
oforthe other
howdon’t
bug impulsive
insult
person’s
youwillgot people’s
orthat
insult.
beinto
in the insensitive
Keep
same ancestors
the
situation. comment.
ormind
writing
frame of
Not the as
everyone Be
Rating
many
in
or
bugassessing
rate Bugs
ofbugs
reporter
ratings. those the
is
whenbugs
tostate are
assign
the of
bugsevere,
theisproduct
each ship
created.
bug and
stopping
Thetobug’s
a severity prioritize
bugs
rating compared
bug
rating
and is
aa fixes, tobugs
likelihood
combinationtherating.
number
areofranked.
theofseverity
This inconvenient
The easiest
assignment isbugs.
way
donetoTo
and likelihood rank
by aid
the
Severity
results of the bug
disagreement about are. howHere’s
bad a commonbug is. This list list
for takes
judging thethe severity
guess workofout bugs. There is sometimes
of assigning a severity to bugs.
Rating Value
Blue screen 1
Loss without a work around 2
Loss with a work around 3
Inconvenient 4
Enhancement 5

Likelihood
tester
bug may encounter this
be?
Rating bug every day with every build, if the user isn’t likely to see it, how bad can the
Value
Always 1
Usually 2
Sometimes 3
Rarely 4
Never 5

Severity
likelihood
rating
with
of is
thea then
ready
bugs, list
to *to
25ashipLikelihood
status’.
25
rating
be
bugor X Do
(5dealt
may
not.
fixing the
never= Rating
5),Ifwith
the
the
must math
lowest byishand
1 (1
get Sorting
first.
number fixed.
continue. of Xor1).
severe
bugs letthis
your
The
(1) waydefect
bug
bugs with
also
is tracker
a 1the
zero,
lets do
rating itshould
managementfor you.
product beship.
can
knowfixedIffirst
whether
therewhile
the the
anybug
areproduct
severe
is
Other
bug?
does
way toituseful
companies
marketing occur
trackand information
on
those
either allas
sales. platforms?
products.
anIt’sOEM or as
a useful customer
way to trackthis is a goodabout
information way to track that and
companies information.
clients.

Birlasoft Ltd. Classification: CONFIDENTIAL


An example of a bug report:

Figure 1 The status tells us the state of the bug. The severity tells us how bad the bug is. The likelihood
tells us how often the average user will see the bug. The Assigned To field tells us who is responsible for
resolving the bug. The Feature tells us what part of the product the bug is in. The Problem Description
gives a brief (very brief) summation of the problem. This description is used when compiling reports or
lists of bugs. The details tell us the current setup or situation, the steps to duplicate the problem and any
other essential information that will allow someone else to duplicate the bug. Once the bug is submitted,
this field cannot be changed. Any additional information will go in the notes field. The notes field contains
any discussions about the bug. For example, when and why the status was changed and by whom;
additional information about how to duplicate the bug that will aid in resolving the bug; and opinions about
the bug. This is a “free-forum” area where people should feel free to express their opinions without
censure or criticism. Once comments are placed on a bug, they cannot be changed or deleted by anyone
else or even the author. The comments, like the details, stand. Anyone reading the bug after the fact
should be able to understand not only what the bug was and how bad a bug it was but also how it was
resolved and why it was resolved that way.

Examples
good
define taste. Please
“My
“sucky.”.
“It
“Product ofcomputer
don’t.” poorly
keep Thisin
Better
needs written
mind
crashed.”
yet,
bug don’t
a “speel” that
bugs:
doesn’t We
useI didn’tare
the work
checker.”
provide make
sorry enough any
for
“sucky”
It goes yourof these
without loss,
it’s
information. not up!
can
in the
saying you
What that give
dictionary
don’t? us more
“spelling and
Don’t information?
most
what?certainly not in
counts”!
Now
assigned
If thetester
appropriate
can’t
code.
There
Developers
features
change
work,
developer’s
The we
bug
beItare is have
to
what
to
developers is
reproduced,him.
person
important
usually
look
test.
name
simply a Testers
reproduced
features bug…
He
at more
sort
on
changesthen
who
to
bugsitthewill
note
they
bugs andduplicates
will
look
bugbe
developers
from arebe
by
the has
that
atsent
athe
also allAssigned
fixing
from
stand
assigned
bugs
status the
backthe
than
makes the
this proper
point
from
field bug
tobug.
there
to athe
point
itto of by
test.
easier
To If information,
bug
“what
standare
Verifiedfollowing
the
onward,
field reporter
bug
testers.
Because
point
to is
and
send
and the
assigned
of the
istesters
the not
forsteps
Developers
itof
“what
thethe assigned
written
additional
developer’s
bug to
sort
automatically listed
me?”.
different
needs
back have
bugs toin
to
clearly,
towork.
name the
field
Testers
way
be
by
the
goes is details
isStatus
atested?”;
set
testers
the ofchanged
missing
stays have
developer
back on section
features
and
to some
the
multiple
testers
the to
bug.to
developers
field.
for more of
the
steps
may the
Why?
work
sets
Leaving
developer. bug.
or
of
also
work. on.
the
Theifhis
seen
on
so
fall Developer
the
between
the bugfollowing
conclusions
bug
The and
the
has works
toisassigns
cracks.goaware on
isbacka listthe
that ofbug…
atostatus itstatus’
him, hisittoresponsibility
the
willthat bug
make back
a developer to onto
indicating resolve. what
can The
hisassigntheThis
list. developer
next step
bug.should
to aprocedure works on the that
be.
ensures bug bugs and based don’t
Fixed
build.
is fixedTesters
reporter
confirm
Notice
process andor
fortester
the
here itthat
fix.
the search
is now
assigned
Iftester
the
since the
working
bug
tothe database
to properly,
passes
send bug’s the both
theAssigned
bug on back
feature aanother
daily
tests, retests
To by basis
test
it field
gets
simplythehas looking
awith
bug
Tested slightly
changing
retained for
duplicating all
status.the Fixed
different the status
developer’s
status original bugs.
circumstances
to Submitted. Then
circumstances.
name, theeasy
is performed
it’s an bug
If theto bug
Duplicate
developer
placed
the
previous
status.
longer
safe”
under surface.
duplicate
“airhead”. onbug
has
built
the or
the Aduplicate
apays
carpet
Itinto person
bugnote
isoriginal
the will
fixed,
or
tobugindicating
looking
bebug
the
falling
set tested
status.
life
time at
duplicate
between
cycle. the
Itthe
indicating
aside also.
getsprevious
It’s code
bug
the
dailyathat
aIfcheck
the can
willa read
Submitted
cracks.
to bug tell
duplicate
also
and number
that
really
be
all the
bug
isnew
fixed.
status
balance
the aisand
bug
Ifplaced
exists.
duplicate
thatthis athe
isprevents
bugs sent duplicate.
onof
When the
case
written back duplicate
previous
the then It’s
tooriginal not
bug
theboth
legitimate
the previous bug.
always
bug
then
bugs
developer.
bugs day. A
is note
the
get
from obvious
fixedwhen is
abeing
This andalso
Tested
is the
a from
tested,
“fail-
swept
Resolved
example,
tested
longer
developer to make
occurs, bugs
with the can
asure bethat
Submitted
bug resolved
gets thestatus.
aproblem by getting
Tested reallynew
status. hasIf thedevice
been Resolved resolved
driversbug orwiththird
stillthe party
newsoftware.
occurs, situation.
it is sentResolved If the to
back problem
thebugs no are
Need
enough
or
comments
information
status
not
person
give
be
reporter
giventheMore
incomplete.
duplicate information
a to
istesting
put
bug
needs Information
or back
second the The
ait).
reporter
an bug,
to
The developer
to
demonstration
reporter aitduplicate
Verified
opportunity
chance. is of
developer
chance giventhe
Thesochanges
ofor
bug.
the
toto fix
the
aclarify
canCan’t
work the
This
developer
developer NOT the
problem.
on
or bug;status
status
Duplicate
use
the
addshould for
can
this
bug. isto
After example,
‘Need
astatus,
statusupdating
flaggive
continue
information
never More
toto
along
hethe the
working
amust
the steps
Information’
bug
with
bug bugbugput onto
aareporter
ornote duplicate
information
the
Need
‘Can’t
to and
to
indicating
bug.
retire More Ifincludes
supply
Duplicate’
it. the
(in
the bug
thethe
bug
Information may
a question
Notes
necessary be
field),
circumstances.
status. reporter
Theon itunclear
bug toor
can the
Working
determined
intentional
exactly
status,
in help
putting
include
bug
status.
managers may awhat
then
files as
inalso
It’s as
Submitted
themay
up andDesigned
that
thetheper
notes
bealso
to thestatus
code
status
the
sent bug
a design.
manual.said
reason
back
review is
stands not
to
on
reporter Or
do.
lists athe
toIfwhy,
itand
the bug,
toas
ofto thesomeone
tester
send itbug
although
design
bugs
make isthe Working
disagrees
isbug
committee
recently
sure more
itfinished.
istheback as
Working aptly
with
assigned
bug so Designed.
The
throughthe
that pointed
as
doesn’t bug
status may
Designed,
the the
Working What
outthen
process
design
get beit’s
forgotten
as the
can“working
sent
itthe product
Designed. bug
should
beto
again. asor coded”!
documentation
can
be
The
inimproved.
this becode
changed
manner. isshould
appealed
tester It’s
doing
now.fordoing
Product by is
inclusion
The
Enhancement
reasons,
itthe product.
should time
be fixed constraints
now. or other factors, it won’t be incorporated into the code until the next version of
Defer
bugproduct,
influence
files
the
status,
why is too
itwhich
should
send other
great
wouldthen
itbe files,
back given
force itfix
thethrough
fixed the
might
the
now. benefits
would bebe
re-testing
the ok that
to of fixitthe
unacceptable
process the
would
again bug.
product byproduce.
On
and and
putting the there’s
the other
Ifa the
bug hand,
fix
would
Submitted noistime aifone
get the
aleft
status liner
fix
Defertoon will
to
testitforce
one
status.
the fix
and file
thebefore
To
add that
rebuild
appeal
a note doesn’t of many
shipping
the
saying
Not
for
time
To
a note
watch to
use.
appeal be
constraints,
There
saying
for Fixed
thisthe one. may
why
status,a itSometimes
risk
beshould extenuating
sendof destabilizing
itbeback fixed circumstances
through
developers now. the code the process
call thisor where
other
status againfactors.
a“Youbug will
bycan’tA better
not
putting make be a status
fixed
me”. because
Submitted to use is of
status Not technology,
on toit beand Fixed.
add
Tested
“end of the road” status indicating that the bug has reached the end of its life cycle.
Pending
tested.
to
and test then The
the itbug.istester
tested.
When may Make be necessary
the waiting
sure the ontesting
hardware,
items have
part isn’t device
beenskipped. drivers, athe
obtained, build bug orstatus
additional information
is changed backnecessary
to Fixed
Can’t
bug
or add
peculiar
are.
getting Duplicate
isn’t to
Limiting reproducible
to
fixed.the only bug.
this this There
status bytomay
computer thebugassigned
be
or a hardware
reporters
bug developer
reporteronly setup andor
prevents heor bug situation
needs
bugs verifier a
from orthe
chance particular
bug
slipping to reporter way of
explain
between needs
what producing
thethe a chance
cracks aandbug
circumstances tonot that
clarifyis
The
Pending
all
of
bugs their
either
database.
(‘What
bugfile. product
these will life
removed
didTheor
bugs
make Need
cycle.
Never
we has
statushave
the
and
ship shipped,
More
Proper been
database
delete placed
when?’
of these Information
database
any taken
in
or whatancare
easier
bug
‘Why
bugs ishappens
status
maintenance
records;
archive toof.use
did
then we itmust
This and
database next?
may
ship
changed means betakes
read.
be
with zero.
or the place
necessary
back thisflagged
to We’ll
bugfile
bug?’). assume
atto
Verified.tothis
isbe
dofull
point.ofthat
hidden
some bugs thethat
Archiving product
historical
from thehaveor
currenthas
hiding
researchreachedshipped
all
view these
in the the
of the and
end
bugfile
Advanced
developers
information
to do with the defect
and
that data database
testers.
is useful
is to create The
in the techniques
bugfile
Reports
decision is basically
andmaking Customizedraw
process data,views. sorting
done by and filtering it makes
management. A couple the of datathese things
Reports
fashion,
do’
progress;
for
useful
reports list
aa
developers.
did
Software sorted
particular
when
you
developerthen
i.e.
Testing ithow
more
will
One by becomes
rating.
feature?
ofmany
destroy
fix”.than
bythese
Neither
Cem Sorting
one
theinformation.
What
bugs product
reports by
feature
are
credibility
Kaner,
one ofisstatus
currently
et. isof
“how
these For
needs
being
al. lets
example,
your
many
has beingthe
more
worked
bug
any bugsreader
file sorting
worked
work
usefulondidand
and know
aiton?bywhat
simultaneously.
tester
will
purpose developer,
how
By bereport” manyand
feature
feature
reduced
except the
tobugs
–is how
to information
a are
stable?
the
beat many submitted
Sorting
open
“laundry-list”
other
up becomes
is “how
people by
bugsor
for inare
product
many
uselessly. a bugs
‘to
there
is
See
Examples
rating
so that
shipping,
Development
adjustments
Technical
can
by
and knowing toan
adequately
what
information. sortedof
determine
appropriate
Support
bugs what Reports
inLead work
are by how
has
tester
likes
prepare
has load
still schedule
been inaready
list
tosupport
tocan
the make
of
fixed bethe can
bugs
product.made
in product
sure
a
the be
to
that set.
all
to
productbewere is
the
ensure
product. The
for
resolved bugs shipping.
Test
fixed
release that
Technical get Lead
before
and tested
everything
(the He
not
newneedsneeds
shipping,
in
fixed
support isacan
the
release list
to
intakenthe know
ofproduct
allotted
sorted bugs
care
resolve
or upgradewhat
by
amounttobefore
be
work
developer
of by
customerwill tested
of
the is
fixtime.leftbefore
so
deadline.
shipping
problems
that to be
that
The
problem) done
sofasterthey
Customized
person
Each
displayed
and
Duplicate
based
assigned
‘Fixed’
active
managers
so Inperson
managers on
bugslogging
Progress
status was
bugs
to
to,
their
are him,
are views
was
just
so
want in
then
needs is.
regardless
bugs
all
what
assigned
the
concerned of
For
assigned
tothe
newly
bugsand
see the
theweb
assigned database
example,
of
the athem;
status
to
can
that
all page
job
who
reported betois.
work
bugs
bugs the
category
designed
is
him
that
Testers
tested
developers
with
don’t database
assigned
bugs, while
has
that and
with
get suchfor
Testers
want
to to
newly
thebe that
that
as
aren’t
particular
‘swept the
to
latest
References Istatus.
bug.built
‘Tester’,
jobwould
updated
accomplished.
see category.
concerned
under allThe
build. with
see
the
the bugs.SQL
‘Developer’
Product
all
bugs, The
Fixed,
Testers
Developers
about
carpet’ Server
Developer
not
any
withorjust
Manager
don’t
only 7bugs
other was
‘Manager’.
NMI, care
care
Enhancement web
would
Pending,
view The
sees
written
person’swho
about browser
see
the web
by
whatSubmitted
Resolved,
all
bugs.
or bugbugs
them,
Defer based.
page and
isstatus’
current
Product that
with a
and

Birlasoft Ltd. Classification: CONFIDENTIAL

Вам также может понравиться