How to Write Better Test CasesWord下载.docx

上传人:b****2 文档编号:15152490 上传时间:2022-10-28 格式:DOCX 页数:22 大小:29.55KB
下载 相关 举报
How to Write Better Test CasesWord下载.docx_第1页
第1页 / 共22页
How to Write Better Test CasesWord下载.docx_第2页
第2页 / 共22页
How to Write Better Test CasesWord下载.docx_第3页
第3页 / 共22页
How to Write Better Test CasesWord下载.docx_第4页
第4页 / 共22页
How to Write Better Test CasesWord下载.docx_第5页
第5页 / 共22页
点击查看更多>>
下载资源
资源描述

How to Write Better Test CasesWord下载.docx

《How to Write Better Test CasesWord下载.docx》由会员分享,可在线阅读,更多相关《How to Write Better Test CasesWord下载.docx(22页珍藏版)》请在冰豆网上搜索。

How to Write Better Test CasesWord下载.docx

Whatriskwouldimpelyoutoinvestinbettertestcases?

Aslongastheycoverthesoftwarerequirements,isn'

tthatgoodenough?

Theanswertothesequestionsisthatpoortestcasesdoindeedexposeyoutoconsiderablerisk.Theymaycovertherequirementsintheory,butarehardtotestandhaveambiguousresults.Bettertestshavemorereliableresultsaswellasloweringcostsinthreecategories:

改进测试用例的价值在哪?

什么样的风险鼓舞着你投资更好的测试用例?

只要覆盖了软件需求就足够好了?

这些问题是答案是不好的测试用例的的确确会暴露相当大的风险。

理论上他们可能覆盖了需求,但是他们难以执行而且得出的含糊的结果。

更优秀的测试用例可以得出更可信的结果还节约了以下三种的成本:

1.Productivity-lesstimetowriteandmaintaincases

1,生产效率–用更少的时间去编写和维护用例

2.Testability-lesstimetoexecutethem

2,易测性-更少的执行时间

3.Schedulingreliability-betterreliabilityinestimates

3,可靠的安排-估算起来更可靠

Thispaperdescribeshowtoavoidthelossesthatareinevitablewithpoortestcases.Itwilllookunderthehoodofdifferentkindsoftestcasesandshowwhereandhowtobuildinthequalitythatcontrolsrisk.Itwillgivepracticaladviceonhowtoimproveproductivity,usability,schedulingreliability,andassetmanagement.Onceyouunderstandthewhatsandwhysoftestcases,youcanuseachecklistofstandards,liketheoneattachedasAppendixA,toidentifyareasofriskandimproveyourcurrentanfuturetestcases.

这篇论文描述了如何预防使用不好的测试用例造成的不可避免的损失。

他将探寻使用不同种类的测试用例的情况并且说明何时何地构建控制风险质量。

他将给如何提高生产效率、可用性、可靠的计划、资产管理给出可行的建议

Themostextensiveeffortinpreparingtotestsoftwareiswritingtestcases.Theincentivetobuildrobust

testcasesisspurredbythelikelihoodtheywillbereusedformaintenancereleases.Overhalfofall

softwaredevelopmentismaintenanceprojects.Howcanyouwritequalitytestcasesthatwilldeliver

economicaltestingthefirsttimeplusliveagainasregressiontests?

Let'

sgetstartedwiththeanswerby

liftingthehoodofatestcaseandlookingatwhat'

sinside.

Lookinginsidetestcases

Elementsoftestcases

Forourpurposes,atestcaseisasetofactionswithexpectedresultsbasedonrequirementsforthe

system.Thecaseincludestheseelements:

·

Thepurposeofthetestordescriptionofwhatrequirementisbeingtested

Themethodofhowitwillbetested

Thesetuptotest:

versionofapplicationundertest,hardware,software,operatingsystem,datafiles,

securityaccess,timeofday,logicalorphysicaldate,prerequisitessuchasothertests,andany

anotherothersetupinformationpertinenttotherequirement(s)beingtested

Actionsandexpectedresults,orinputsandoutputs

Anyproofsorattachments(optional)

Thesesameelementsneedtobeintestcasesforeveryleveloftesting--unit,integration,system,or

acceptancetesting.Theyarevalidforfunctional,performance,andusabilitytesting.The"

expected

results"

standarddoesnotapplytodiagnosticorothertestingofanexploratorynature.Evendiagnostic

testingneedstheotherelementsinitscases.However,ifthetestmeasuresperformancethatshouldfall

inarange,thisisanexpectedresult.

Analternatedescriptionoftestcasesisthatthedescription,purpose,andsetupisthecaseor

specification.Thestepstoaccomplishitarecalledascript.Yetanotherviewcallsthepurposeor

descriptionascenarioorusecase.Theseviewsareallcompatiblewiththequalityassessmentsand

improvementssuggestedinthispaper.

Qualityoftestcases

Thereisamisconceptionthatqualityofwritingissubjective,likelookingatapainting,wherebeautyisin

theeyeofthebeholder.Infact,qualityofwritingisobjectiveandmeasurable.Itissimpletosetupan

objectivechecklist,liketheoneinAppendixA,ofthestructuralelementsoftestcases--purpose,

DianneL.RunnelsHowtowritebettertestcasesPage2of12

method,setup,inputsandoutputs.Thenwalkthougheachcase.Istheelementthereornot?

Inaddition

totheirstructure,thecasesmustalsomeetthesestandardsofquality:

Accurate.Theytestwhattheirdescriptionssaytheywilltest.

Economical.Theyhaveonlythestepsorfieldsneededfortheirpurpose.Theydon'

tgiveaguidedtourof

thesoftware.

Repeatable,selfstanding.Atestcaseisacontrolledexperiment.Itshouldgetthesameresultsevery

timenomatterwhotestsit.Ifonlythewritercantestitandgettheresult,orIfthetestgetsdifferent

resultsfordifferenttesters,itneedsmoreworkinthesetuporactions.

Appropriate.Atestcasehastobeappropriateforthetestersandenvironment.Ifitistheoreticallysound

butrequiresskillsthatnoneofthetestershave,itwillsitontheshelf.Evenifyouknowwhoistestingthe

firsttime,youneedtoconsiderdowntheroad--maintenanceandregression.

Traceable.Youhaveto

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 经管营销 > 金融投资

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1