ISSN1000-9825,CODENJournal
RUXUEW
ofSoftware,V01.20,No.10,October2009。PP.2637-2654
E-mail:jos@iscus.ac.cnhttp://www.jos.org.cn
Tel/Fag:+86一10-62562563
doi:10.3724/SP.J.1001.2009.00578
obyInstituteofSoftware.theChineseAcademyofSciences.Alldghtsreserved.
蜕变测试和断言检查的比较与实验研究
张震宇1,陈荣光2+9谢俊谦1,胡佩锋3
’(香港大学计算机科学系,香港)2(香港城市大学电脑科学系,香港)3(招商银行香港分行,香港)
ExperimentalStudy
to
ComparetheUseofMetamorphicTestingandAssertionCheckingWK2+,TSE
THl,HUPei.Fen93
ZHANGZhen.Yul,CHAN
1(DepartmentofComputerScience,TheUniversityofHongKong,HongKong,China)
2(DepartmentofComputerScience,CityUniversityofHongKong,HongKong,China)
3(ChinaMerchantsBank,HongKong,China)
+Corresponding
author:E-mail:wkchan@es.cityu.edu.hk.http://www.cs.cityu.edu.hk/~wkchan/
ZhangZ,Chan
Wl('Tse
TH,HuP.Experimentalstudytocomparethe
use
ofmetamorphictestingand
assertionchecking.JournalofSoftware,2009,20(10):2637—2654.http://www.jos.org.cn/1000—9825/578.htm
a
Abstract:Atestoracleinsoftwaretestingiscorrectly
mechanismforcheckingwhethertheprogramunder
Call
SO
testbehaves
foranyexecution.Insomepracticalsituations,oracles
be
unavailable
Orcan
tOO
expensivetoapply.
Metamorphictesting(MT)wasproposedtOalleviatethisproblemtime-to-marketpressure.However,theeffectivenessofMThas
not
thatsoftwarebedeliveredunderthe
paperconducts
a
beenstudied
adequately.ms
controlledexperimenttoinvestigatethecosteffectivenessofusing0fMT
are
MT.The
faultdetectioncapabilityandtimecost
comparedwith也estandardassertioncheckingmethod.TheresultsshowthatMThaspotentialstOdetect
aa
morefaultsthantheassertioncheckingmethod.Theexperimentalresultsalsoshowtesting
trade.offbetweenthetwocoarserlevelofgranularity
methods:MT
can
beless
efficientbutmoreeffective,and
can
bedefinedat
thantheassertioncheckingmethod.
Keywords:metamorphictesting;assertionchecking;testoracle;controlledexperiment;empiricalevaluation
摘要:在软件测试中,测试预言是一种用于检查程序在测试中是否正常运行的机制.然而在某些实际情况下,还
无法制定测试预言或者难以有效地应用测试预言.针对此类测试预言问题,蜕变测试 …… 此处隐藏:51538字,全部文档内容请下载后查看。喜欢就下载吧 ……
