欢迎来到天天文库
浏览记录
ID:33921554
大小:188.24 KB
页数:10页
时间:2019-02-28
《writing_maintainable_automated_acceptance_tests.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、WritingMaintainableAutomatedAcceptanceTestsDaleH.Emerydale@dhemery.comhttp://dhemery.comThisarticlewasoriginallypresented,underaslightlydifferentname,aspartoftheAgileTestingWorkshopatAgileDevelopmentPractices2009.I’vemadeafewminorchanges.TestAutomati
2、onisSoftwareDevelopmentTestautomationissoftwaredevelopment1.Thisprincipleimpliesthatmuchofwhatweknowaboutwritingsoftwarealsoappliestotestautomation.Andsomeofthethingsweknowmaynotbeapparenttopeoplewithlittleornoexperiencewritingsoftware.Muchofthecosto
3、fsoftwaredevelopmentismaintenance—changingthesoftwareafteritiswritten.Thissinglefactaccountsformuchofthedifferencebetweensuccessfulandunsuccessfultestautomationefforts.I’vetalkedtopeopleinmanyorganizationsthatattemptedtestautomationonlytoabandontheef
4、fortwithinafewmonths.WhenIaskwhatledthemtoabandontestautomation,themostcommonansweristhatthetestsquicklybecamebrittleandtoocostlytomaintain.Theslightestchangeintheimplementationofthesystem—forexample,renamingabutton—breaksswarmsoftests,andfixingthete
5、stsistootimeconsuming.Butsomeorganizationssucceedwithtestautomation.Don’ttheyexperiencemaintenancecosts,too?Ofcoursetheydo.Animportantdifferenceisthatwhereunsuccessfulorganizationsaresurprisedbythemaintenancecosts,successfulorganizationsexpectthem.Th
6、edifferencebetweensuccessandfailureisnotthemaintenancecostsperse,butwhethertheorganizationexpectsthem.Successfulorganizationsunderstandthattestautomationissoftwaredevelopment,thatitinvolvessignificantmaintenancecosts,andthattheycanandmustmakedelibera
7、te,vigilantefforttokeepmaintenancecostslow.Theneedtochangetestscomesfromtwodirections:changesinrequirementsandchangesinthesystem’simplementation.Eitherkindofchangecanbreakanynumberofautomatedtests.Ifthetestsbecomeoutofsyncwitheithertherequirementsort
8、heimplementation,peoplestoprunningthetestsorstoptrustingtheresults.Togetthetestsbackinsync,wemustchangetheteststoadapttothenewrequirementsorthenewimplementation.Ifwecan’tstoprequirementsandimplementationsfromchanging,theonlywaytokeepthemaintenancecos
此文档下载收益归作者所有
点击更多查看相关文章~~