软件测试入门中英Word文档下载推荐.docx

上传人:b****3 文档编号:8321974 上传时间:2023-05-11 格式:DOCX 页数:27 大小:34.28KB
下载 相关 举报
软件测试入门中英Word文档下载推荐.docx_第1页
第1页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第2页
第2页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第3页
第3页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第4页
第4页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第5页
第5页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第6页
第6页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第7页
第7页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第8页
第8页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第9页
第9页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第10页
第10页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第11页
第11页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第12页
第12页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第13页
第13页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第14页
第14页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第15页
第15页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第16页
第16页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第17页
第17页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第18页
第18页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第19页
第19页 / 共27页
软件测试入门中英Word文档下载推荐.docx_第20页
第20页 / 共27页
亲,该文档总共27页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

软件测试入门中英Word文档下载推荐.docx

《软件测试入门中英Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《软件测试入门中英Word文档下载推荐.docx(27页珍藏版)》请在冰点文库上搜索。

软件测试入门中英Word文档下载推荐.docx

aremisunderstandingsbetweenthecommunications,ornocommunicationexistsat

all.

2、软件复杂性Thesoftwareistoocomplex.

3、程序设计错误Performthewrongprogramming.

4、需求变化Therequirementsvaried.

5、时间压力Beunderthepressureoftime.

6、代码文档贫乏Beshortofcodedocuments.

7、软件开发工具Wrongdevelopmenttoolsareused.

软件测试定义DefinitionofSoftwareTesting

软件测试是为了发现错误而进行的一系列活动

Softwaretestingcoversaseriesofactivitiesperformedinordertodiscovererrors.

测试是为了证明程序有错,而不是证明程序无错误

Thepurposeoftestingistotestifythatthereexisterrorsintheprogram,nottotestify

thatthereexistsnoerrorintheprogram.

测试并不仅仅是为了要找出错误。

还改进了软件管理过程Notonlytodiscoverthe

errors,alsoimprovetheprocessofsoftwaremanagement.

软件测试的复杂性与经济性ComplexityandEconomyofSoftwareTesting

不论是黑盒测试方法还是白盒测试方法,由于测试情况数量巨大,都不可能进行彻底的

测试。

BothBlackBoxsoftwaretestingandWhiteBoxsoftwaretestingcannotperform

thoroughtestingduetothegreatquantitiesoftestingcases.

软件工程的总目标是充分利用有限的人力和物力资源,高效率、高质量地完成测试。

测试不足意味着让用户承担隐藏错误带来的危险,过度测试则会浪费许多宝贵的资源。

Thegeneralobjectiveofsoftwareengineeringistoaccomplishthehigh-efficiencyand

high-qualitytestingwithlimitedworkforceandmaterialsresources.Insufficienttesting

2

meanstomakethecustomerundertakethehazardresultingfromthehiddenerrors,and

over-testingwillwastemanyvaluableresources.

测试任是艰巨的,不可能做到完成测试,那测试的目的是什么?

何时可结束测试?

Thetestingtaskissoarduous.Itisimpossibletoaccomplishthetesting.Thenwhatis

thepurposeoftesting?

Whencanweclosethetesting?

测试的最终目的是确保最终交给用户的产品的功能符合用户的需求,把尽可能多的问题

在产品交给用户之前发现并改正。

Thefinalpurposeoftestingistoensurethefinalproductsdeliveredtocustomers

meetthedemandsofcustomers.Discovermoreproblemsaspossibleandfixthembefore

youdelivertheproductstocustomers.

结束测试的考量Considerationsonwhentoclosethetesting

发现所有的漏洞时才停止测试是不可能的Itisimpossibletostoptestingwhenwefind

outallthedefects.

关键在于是否经济Thekeyiswhetheritiseconomicornot.

-市场压力Pressurefromthemarket

-质量目标Qualityobjectives

-客户要求Requirementsofcustomers

-费用约束Limitofcost

-所有测试用例都得到执行Alltestingcasesareperformed.

-没有严重问题存在,或是存在的风险不大Nosevereproblemexists,ortheriskisnot

severe.

总之应遵循的原则是:

经济又足够好

Inbrief,theprincipleyoushouldfollowis:

economicandgoodenough.

1、Good-enough原则就是一种权衡投入/产出比的原则:

不充分的测试是不负责任的;

过分的

测试是一种资源的浪费,同样也是一种不负责任的表现。

Good-enoughistomeasurethe

input/outputratio:

Insufficienttestingiscarefree;

overtestingwillwastetheresources,

andisalsocarefree.

2、软件开发过程中应在早期就开展各种质量保证活动。

Variousqualityassuranceactivities

shouldbeperformedintheearlyofsoftwaredevelopmentprocedures.

3、在改错之后一定要马上重新测试,以免引入新的错误Redothetestingimmediatelyafterthe

fix,toavoidnewerror.

4、在文档和代码的修改过程中,防止因为修改而带来新的错误(修改验证与回归测试)During

thecourseofdocandcodemodifications,youshouldpreventnewerrorfromthe

modification(modification,checkandregressiontest).

5、对每一个测试结果分析并进行记录,防止以后发生类似的错误Analyzeandrecordeachof

thetestingresultstoavoidsimilarerrorlater.

需要纠正的偏见Prejudicesneededtobecorrected

软件测试等于程序测试?

Issoftwaretestingequaltoprogramtesting?

什么人都可以做测试吗?

Cananyonedothetestwork?

人们常常以为,开发一个程序是困难的,测试一个程序则比较容易。

这其实是误解。

设计测试是一项

细致并需要高度技巧的工作,稍有不慎就会顾此失彼,发生不应有的疏漏。

Itisconsideredthatitisdifficult

todevelopaprogram,buteasytotestaprogram.Actuallyitisnot.Designtest?

?

isameticulousjob

3

andneedsprofessionalskills.Oritwillbeoutofcontrol,andcarelessomissionwouldhappen.

好的测试工程师应具备的素质是?

Accomplishmentsthatagoodtestingengineershouldpossess:

1、沟通能力。

Goodcommunicationskills

2、移情能力。

Empathyability

3、技术能力。

Professionalskills

4、自信心。

Self-confidence

5、幽默感。

Senseofhumor

8、很强的记忆力。

Bettermemory

7、耐心和怀疑精神。

Patienceandsuspicion

9、洞察力。

Insight

一个好的测试工程师具有“测试是为了破坏”的观点,捕获用户观点的能力,强烈的质量追求,对细

节的关注能力。

应用的高风险区的判断能力以便将有限的测试针对重点环节。

Agoodtestingengineer

shouldhavethepointof"

testistodestroy"

theabilityofcapturingcustomer'

spoints,strongpursuiton

thequalityandtheabilityoffocusingonthedetails.Hecanjudgethehighriskofanapplication,toput

thelimitedtestingontheimportantthings.

没有发现错误的测试是否有价值?

Isitvaluableifatestdidnotdiscoveranyerror?

结论:

技术含量很高的工作Conclusion:

itisaworkwithprofessionalskills

测试的是重要的,测试任是艰巨的,不可能做到完成测试。

Testingisimportant,andthetestingtaskis

arduous.Itisimpossibletoperformacompletetesting.

不论采用什么技术和什么方法,软件中仍然会有错。

采用新的语言、先进的开发方式、完善的开发过

程,可以减少错误的引入,但是不可能完全杜绝软件中的错误,这些引入的错误需要测试来找出。

要使测

试工作更加有效,更有针对性,花最少的代价满足用户要求,也是有规律可循的。

Therewillbeerror

regardlessofanytechnologyandmethodareused.Itcandecreasetheerrorwhennewlanguage,

advanceddevelopmentmanner,improveddevelopmentproceduresareused,butitcannotputanendto

theerror.Theerrorsneedstobefoundbytesting.Tomakethetestinghavemoreefficiencyand

pertinency,tomeetthedemandsofcustomerswithleastexpense,wemustfindouttherulestobe

followed.

做好测试工作的第一步是什么?

Whatisthefirststeptomakegoodtestingwork?

做何何事情都要讲究方法,测试也不例外!

?

Weshouldfindagoodmethodtodoanywork.So

doesthetesting.

2、软件测试方法及分析MethodsofTestingandAnalysis

主要方法有针对功能的黑盒测试和针对软件内部活动的白盒测试。

Mainmethods:

blackboxtesting

forfunctionsandwhiteboxtestingforinternalactivitiesofsoftware.

黑盒测试Blackboxtesting

白盒测试Whiteboxtesting

另外,如果细分的话,测试分为静态和动态。

静态测试指检查和审阅文档等;

动态测试指真正运行和

使用软件本身。

Inaddition,itcanbebrokentostaticanddynamictesting.Statictestingreferstocheck

andreviewthedocuments,etc.Dynamictestingreferstorunandusethesoftwareitself.

动态测试方法要解决的问题?

Whataretheproblemstoberesolvedfordynamictesting

一个成熟的动态测试方法必须回答如下问题:

Tofindoutamaturemethodforthedynamictesting,we

mustanswerthequestionsbelow:

如何选择或产生测试数据?

Howtoselectorgeneratetestingdata?

如何组织软件的测试运行?

Howtoorganizethetestingrunofthesoftware?

4

如何考察和记录软件动态运行的行为?

Howtocheckandrecordthedynamicrunningbehaviorsofthe

software?

如何判断软件动态行为的正确性?

Howtojudgethevalidityofthedynamicrunningbehaviors?

测试过程何时结束?

Whentostopthetestingprocess?

如何通过软件测试结果分析软件性质?

Howtoanalysisthesoftwarenaturethroughthetestingresults?

哪些测试是动态测试?

Whichtestsaredynamictests?

动态测试按测试的针对性又分为Dynamictestscanbeclassifiedasbelowaccordingtothetesting

purpose:

1、功能测试Functiontest

2、回归测试Regressiontest

执行同样的测试,检查程序变更后是否存在问题,BUG是否修复,修复是带来付面影响。

Perform

asametesting.Checkifthereexistsanyproblem,ifthebugisfixedandifthereisanynegative

affectaftertheprogramischanged.

3、压力测试Pressuretest

4、性能测试Performancetest

5、容错测试ErrorAcceptancetest

6、稳定性测试Stabilitytest

7、可用性测试Availabilitytest

8、全球化测试Globalizationtest

9、配置测试Configurationtest,etc.

按软件生命周期的阶段,测试又可分为以下三类Thetestingcanbeclassifiedinto3categories

accordingtothelifecycleofsoftware:

1、单元测试Unittest

2、集成测试Integrationtest

3、系统测试Systemtest

单元测试,集成测试,系统测试的区别?

Whatisthedifferencebetweenunittest,integrationtest,and

systemtest?

单元测试UnitTest

单元测试的对象是软件设计的最小单位——模块。

对模块内所有重要的控制路径设计测试用例The

objectofunittestisthesmallestunitinthesoftwaredesign-module.Forthistest,youshoulddesigntest

caseforallimportantcontrolpathsinamodule.

单元测试的任务包括:

1模块接口测试;

2模块局部数据结构测试;

3模块边界条件测试;

4模

块中所有独立执行通路测试;

5模块的各条错误处理通路测试。

Thetasksofunittestinclude:

1Testthemoduleports;

2Testthepartialdatastructureofthe

module;

3Testthemoduleboundarycondition;

4Testallseparateexecutionpathsinamodule;

5Test

everyerrorprocesspathinamodule

单元测试的作用:

Functionsofunittest:

可以发现并修改掉修改代码带来的负面影响,如果这问题留到测试人到测试时发现?

,成本成倍增

长。

Discoverandfixthenegativeaffectresultedfromthecodechange.Ifsuchproblemisdiscoveredtill

atesterfindit?

thecostwouldincreasedoubly.

单元测试的原则:

Principleofunittest:

1先写测试代码,然后编写符合测试的代码?

.至少要做到完成部分代码后,完成对应的测试代码?

5

2测试代码不需要覆盖所有的细节,但应该对所有主要的功能和可能出错的地方有相应的测试用例

3发现BUG,首先要编写对应的测试用例,然后进行调试

4不断总结出现BUG的原因,对其他代码编写相应的测试用例

5每次编写完成代码,运行所有以前的测试用例,验证对以前代码的影响,把这种影响尽早消除

6不断维护测试代码,保证代码变动后通过所有测试

1.Writethetestingcodefirst,thenwritethecodethatcoincideswiththetest.Finishthe

correspondingtestingcodetillfinishatleastpartialcode.?

2.Testingcodeneednottooverridealldetails.Butyoushouldhavethecorrespondingtest

casesforallkeyfunctionsandmattersthatwouldbepossiblywrong.

3.Whenabugisdiscovered,youwritecorrespondingtestcasefirst,thenperformthedebug

operation.

4.Keeptomakeconclusionsforthereasonsthatbugexist.Andwritethecorrespondingtest

caseforothercodes.

5.Everytimeyoufinishthecode,youshouldrunalltheformertestcasestoverifytheaffectto

theformercodes,inordertoeliminatesuchaffectasearlyaspossible.

6.Keeptomaintainthetestcode.Ensurealltestspassafterthecodeischanged.

集成测试IntegrationTest

每个模块都能单独工作,但这些模块集成在一起之后可能不能正常工作。

主要原因是,模块相互

调用时接口会引入许多新问题。

Eachmodulecanworkseparately.Buttheymayn

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

当前位置:首页 > 小学教育 > 语文

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2