18BH1A0516 STM
18BH1A0516 STM
18BH1A0516 STM
ESTING
ETHODoLOGIES
AssigNMEN T
B.ViKAs
J8 l8BH1AOSIG
CSE A
A
OWhat ts the pupose of tesltng ¢ Tplatn
about the model
fo lestipq
Testinq
Testing
Os
thepsocess Of
us cxc>cutstn9
Qulomate d
Coponents by manctal os
otthout buqo.
*Hsto Says that even well wsttten
Pso qa am su bave -3bugs per hundsedl
Stotements.
Mocdel ox Testnqs
Tbeoosld h e Model hlonld
Tbe envtsonment >tnusonment Dexpected
Model
the 0soq sam
P5ogsam
Model Tests utcome
Noture &
Bug
Pycboleg8 Moclel
Amode gor testog
Above Jgure a model of desttng (P*oces
ts
tn osder to tcst
tt.
implftc dDesn't
Lsuaily
usually
unable
unableto test ejfectvely and
tojustfy the dr»ty test most
Pams need.
Optimtstie nations about bu93
tbe
lanqugge
,U 8yntax and 6enantie
eltmtnates most bug.
Cossecttons -brde: be mtstaker beluf
that a corected bug eroain Cossectrd,
that
Srlver bullets Tbe mtstaken beltef
a Sadtstic &tseak low cunoung and tntuilion
Tbey axe
A untt s the
testinqs
O r t Component 80ftuoaxe
that can
S mallest
testable piece of ete
assembled,
toked, loaded
complted,
be wosk and one
untt ts usually the Scveredl hundsel
and consiats of
tcscing u
a
p rm
0 9 sm ee
amm dd
Code. Ontt
oxeoer
ltnes of
do to show that the unit
the
testing we
tnconsstent.
featuvcs
deatuvcs andfuncttonalty Bugs Stucturel
Oata Bugs Codog bugs Itface
Bugs and test
Inteqsatron and system Bugs Test
Desg bugs.
and Functional1ty
Goegutrement s, featuses
Catergories
tn cqutoements,
equtoements,
Vastous.
Bugd
teatures bugs tnclude.
specifteations developed
developPed
and
Requt ements
uts
rom them can be tncomplete ambtqudus
O self contsadtc tovy They can be
idunde 8tood or tmposible to undesatand ,
Tbe &Pectftcatton that don't have
bave
Flaws tn tbem may change cobrle the
tbe
epensive bug3
T h e ange 3foor> a few pecentoges to
mose than 50 dependtng on -the RPlteattop-
and enuttornmentt.
What busts moot about the bugs ts that
they
tbey ase the easliest to tnvade the system
ard the Last to leaue.
eatu Bugs
S p ecificatton psoblems uoually Coeate
1
Cosseonding fectusePsoblems.
A featuse
featuse can be wrong. mts0iox
the 804twase,
Rose bugs.
eadure Interactton Bugs
aod
Pourdrox
testable
coorect, clear, tmplemerntable
feature Spectftcations ts Dot
and
enougb.
Feotures usually Come tn ,qsouPS or
each
eselatedfeatures.
(ated The feaduves of
gsouP and thbe tnteraction offeatures
cottbinthe soup are usually well tcsted.
The Psoblem ts unpsedectable, tntesac tions
betuoeen eature gsoups os even between
todlturdual features. fos cxample, jou
telepboDe ts prourded orth cal holding
Patb pvedteakes
Apredicale asso ctated otth a
poth is
called a path (Pved1cate. tor eple
tS qscater than zeso" Y9090" ' w
etther Degatrue ov equal to to t8tsue" ts
asequence of predicotes obose tutb
volues wtll cause
Cause the out1ne to take a
Pecepatb.
Multt Branches
Tbe
(path takeD thsough a multplay
bsanch such as a
Computedl -G0 TOLS,
case
&taterment O Jump tables canno
be dvectly expsessed tn Taue/False
tes 3.
Athou9b ut tó po36ible to descsibe
such atesnatives by udi mult: valued
Logtc, an ePedient ts to ePess8
object yr.
T b e inputsfor a pasttculax test us
maRp d as a one dtmenatopal asray
called as an Iput Vector.
3uch Cas Ct C
Completenes8
Extsact the psoqsams Contoolflouo
Sucb as
BcDEFGtl
E a c b product tesm denotes a set of
Os tndPendent predtcates.
been achteved usin9
I Covexaqe bas not
about
tsansaction flow testinq techn:9ues
Jo functional eotipg.
xanoaction -flowo and tsansaction
O Reoder
User Request hlatt ccept (Proccs
0cler From
Begt e Ovdler jom
o m CPO
CPU
to teymnol
Tsansactioo tlouo
testtng Techntque 6
G t tbe tapsaction8 tlood:
lot
Complteated oystems tbeut poce3 s a
Toansaction s
diffeven-t, compltcat ecl
.
of
Should have cptctt ePresentatt
ons
of the
0 the equivalent.
tsansacttons flouwS,
Tansactton ftows ave uke Control flow
boundasted.
easy t o 8ensrtrze -
80 - I57 transaction
b
Poth tnotrumentation
a &9geyole tn
umentation (plyd
Inslr than tn
must be flo edtinq
tansaction
un:tpath edting.
The tnfomation Of the patb takrp
jf q
tsanjaclion must be kpt wrth that
gtue
bandion and can be vecoveled by o
Centsal sancction dypatched or by the the
tndividual pvocessinq nod ul as,
I nD Some
Some SystemS, 6uch tao ce s 0se
cvicded by the qpesaling stem 6 os a
oovrdecd
sunning g
What ts data flou
a
testirg Klhat ase the
Stsateqtes tn data flow testing
Data flou Testing*
Dauta flow testing u s the Dame
to
gtvep
afamtly o tesé 8t3ateqies basec on
Selecting paths haough the progsam's Contwl
flo tn osder to explove sequences of events
extent to
So *oph. They dijfer tn the
stsat
Stsod
eg8
Stsategy
dtscussed here
thak
.
It equires
egy
u (Pathfrom evey deftnition
of very
evey
every ome test.
vastable to evey
Vasiables x andY are
Vasiable x and Y:
tor
tor
test that stasts-
link () any
used
onl
only on
Satifies
thts ottesion,
Ctteoion.
a tt
a the entry
vasiable
The
8ttuation for
vasiable z: vasiable
tos beCaese
the
compltcated
t5
more
o r the
(places.
edefned t many exerci3e
execse
ts
(,3) e must
must
on
l:nk a n ,s,s
deftntéron
ine(udes suhpath s 3 , 4
that
paths
aths
on link G. 5) s
olejtnrlion
The
COvesed palb thad tocludas (5.c)
by any
osuhpatb (.3, ,5.c.). The (s.c ) defn
equnes paths hat tnelude subpoth
5,,3.4) and (5, 6,1,3).
D Vasiable Vavtable V:s
V dejtned only
Once on ltok (1,3) Becauwe v has a
.use: u
pedicate
that hot
Coveye d by the above
by
use
v a s i a b l e s
adld computatlonal
ption, then
vescipt
est Cadrs as sequted to Cover eve
evea
dedmttion.
o vavtable Z
Tov POC we can select poths Lhat
os
tos Vaviable zi AcP +P Coverage us acheveoe
Jorzz
Tor by patb 3,4,5,6, 7, 3, 10, u,12,13
Several
lowea), a) but the pedtcat e uses
of
defuotttons ave not coveed. &pect ftcally, the
3 ) deftntto ts not covee d Jor the , 5 )
not Coverro
(Puse, the,3 ) definition ts
that APO+ e
The above examples tmply
than brap ch Coverage but AcF
t& 8taonger
roay be cweaker than, or tnamparable to,
bsanch covedaq e.
se
tnclude. Aco1f
the eQutremen ts
6txotegg doppn
thatte tnelude
Jo the vastable td there a
a
p-use
use
no c-us eSor
the variable .
It ts tntui tiue ly obvious that ACU
should be weaker than
AcOP and tha
APU Should be oeaker
hat PO tC.