欢迎来到天天文库
浏览记录
ID:46884221
大小:3.99 MB
页数:134页
时间:2019-11-28
《软件测试 Software Tes》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、SoftwareTestingChapter1SoftwareTestingIntroductionContents1.1WhySoftwareTestingisNeeded1.2BasicConceptsofSoftwareTesting1.3ReasonofSoftwareDefect1.4RelationshipbetweenSoftwareDevelopmentandTesting1.5SoftwareTestingRules1.6CapabilityforSoftwareTester1.1WhySoftwareTestingisNeeded1.1WhySoft
2、wareTestingisNeeded1.1WhySoftwareTestingisNeededInfamoussoftwareerrorcasestudiesWorldWarIII…Almost(1983)PatriotMissileBug(1991)Killing28soldiersandinjuringaround100otherpeopleMultidataSystems(2000)Atleast8patientsdie,whileanother20receiveoverdoses1.1WhySoftwareTestingisNeededQualifiedrat
3、eofproductsQualifiedrateofairplanemanufacturingindustry“Aerobus747-400”aremadeupof1000,000partsQualifiedrateofeverypart:99.9999%Doyouknowthequalifiedrate?(99.9999%)1000000=36.79%1.1WhySoftwareTestingisNeededQualifiedrateofproductsQualifiedrateofsoftwareCodingline:99%Write10,000linescodeD
4、oyouknowthequalifiedrate?(99%)10000=2.25×10-441.2BasicConceptsofSoftwareTestingConceptsrelatedtosoftwaretestingError(错误):occursintheprocessofwritingaprogram.Fault(故障):isthemanifestation(表现)ofoneormoreerrors.Failure(失效):occurswhenfaultypieceofcodeisexecutedleadingtoanincorrectstatethatpro
5、pagates(传播)totheprogram’soutput.Incident(事故):nomessageisdisplayedwhenfailureoccurs.Defect1.2BasicConceptsofSoftwareTestingSoftwaredefect(缺陷)definitionOutofaccordwithuserexpectancy(期望)SoftwarefunctioncanbeexecutedincorrectlyDefectofSoftware=BugAllkindsofsoftwareproblemsInconsistency,useri
6、nterfacefault1.2BasicConceptsofSoftwareTestingDefectexample:Shortcoming:runningslowly.Inconsistency:Ctrl+Scan’tsaveallapplications.Userinterfacedesigndefect:anbuttonshouldshow5wordsonit,butonly3wordscouldbeseen.1.2BasicConceptsofSoftwareTestingConceptsrelatedtosoftwaretestingCorrectprogr
7、amNosyntaxerrorNoobviouserrorsduringrunningNoimproperstatementsValidinput-correctoutputInvalidinput-correctoutputAnypossibleinput-correctoutput1.2BasicConceptsofSoftwareTestingConceptsrelatedtosoftwaretestingTest&debugAutomatedtestvs.manualoperateDon’tknowdetailsareOKvs.m
此文档下载收益归作者所有