Tochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/20201©Nokia2014Confidential敏捷测试实践刘朋/韩金田51testing&电子科大2014第9期软件测试研讨会OSSTochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/20202©Nokia2014ConfidentialTochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/20203©Nokia2014Confidential“测试”被遗忘了?Tochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/20204©Nokia2014Confidential敏捷测试是。。。Agiletestingfocusesonbusinessvalueanddeliveringthequalitycustomersrequire,…,isdifferentfromtraditionaltesting,whichfocusesonconformancetorequirement.Agiletestingisasoftwaretestingpracticethatfollowstheprinciplesofagilesoftwaredevelopment.Agiletestinginvolvesallmembersofacross-functionagileteam,withspecialexpertisecontributedbytesters,toensuredeliveringofbusinessvaluedesiredbycustomersatfrequentintervals.Tochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/20205©Nokia2014Confidential•敏捷测试是顺应敏捷开发方法,以保证持续的、快速的业务价值交付,贯穿于敏捷开发始终的一组测试实践朱少民,《敏捷测试的方法和实践》,2010客户价值Tochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/20206©Nokia2014Confidential敏捷测试实践@NokiaTochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/20207©Nokia2014-FileName-Version-Creator-DocIDConfidentialATDD+BDD+TDDBDDTochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/20208©Nokia2014-FileName-Version-Creator-DocIDConfidential•目标-充分的理解客户需求和客户价值-充分利用团队成员的不同知识和技能理解需求的不同方面-让所有团队成员都获得对需求的一致理解•希望解决的问题-对客户价值理解不正确,后期验收不通过-开发和测试人员对需求理解不一致•采用的实践-六顶思考帽ATDD实践–需求讨论和澄清Tochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/20209©Nokia2014-FileName-Version-Creator-DocIDConfidential六顶思考帽Tochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/202010©Nokia2014-FileName-Version-Creator-DocIDConfidential•目标-根据团队对需求的充分讨论,提炼出需求(Feature)的验收标准以及相应的测试点-验收标准将成为后续验收测试用例和产品代码开发的出发点•希望解决的问题-验收标准不清晰,不一致,导致后期无法验收并产出用户价值-避免出现传统测试中的“bug海啸”•采用的实践-BDD的“Given,When,Then”行为描述语言ATDD实践–验收标准和测试点BDDTochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/202011©Nokia2014-FileName-Version-Creator-DocIDConfidential•Dan,BDD的提出者,是这么定义BDD的:BDDisa2ndgeneration,outside-in,pull-based,multiple-stakeholder,multiple-scale,high-automation,Agilemethodology.“BDD是第二代由外至内的、基于拉动的、多利益相关者的、多尺度的、高度自动化的敏捷方法。”BDD–TDDDoneWell?Tochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/202012©Nokia2014-FileName-Version-Creator-DocIDConfidentialBDD的一个关键,看似微小,的改变就是在描述测试点的时候,用“should”替代了“test”。也就是说,你可能会听到‘预期的行为是什么?’,而不是‘我应该测什么?’Tochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/202013©Nokia2014-FileName-Version-Creator-DocIDConfidential•从0开始TDD实践•团队中的TDD实践ATDD实践–硝烟中的TDDTochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/202014©Nokia2014-FileName-Version-Creator-DocIDConfidential•目标-根据Scrum团队实现同意的DefinitionofDone(DoD)对本sprint产出的软件进行验收•希望解决的问题-团队对验收标准不清楚-团队对验收标准有不同的理解而产生争执-产出的代码虽然工作,但是没有创造客户价值•采用的实践-Acceptancetestcase作为验收重要指标-设定对于UT覆盖率,测试自动化率的硬性指标ATDD实践–针对验收标准的验收Tochangethedocumentinformationinthefooter,press[Alt+F8]andusethe“FORM“R18G65B145R0G201B255R104G113B122R216G217B218R168G187B192Coreandbackgroundcolors:28/01/202015©Nokia2014-FileName-Version-Creator-DocIDConfidentialATDD实践–DefinitionofDone(DoD)DefinitionofDoneforUserStoryITWORKSAllConditionsofSatisfaction(CoS)aremetincludingfunctional&non-functionalonesNoopenfaultsrelatedtothecommittedUserStorynoritssub-storiesITISTESTEDAllCoSaretestedfortheUserStoryanditssub-storieswithUTcoverage80%AllAcceptanceTestsarepassinginrelevantconfigurationswithcoverage=100%AutomatedtestcasesaddedtoQA/Bring-ups/Functional/RegressionwithTAratio60%ExploratorytestingexecutedwhereapplicableITDIDNOTBREAKANYTHINGPreviouscodeisstillworkingNoothertestsfailbecauseofthisimplementationTochangethedocumentinformationinthefooter,pr