资源描述:
《android应用自动化测试工具的设计与实现》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、盐城师范学院毕业设计Android应用自动化测试工具的设计与实现摘要近几年,Android系统发展迅速,Android应用更是如雨后春笋,层出不穷,这些应用在带给人们方便的同时,却给软件质量保证带来了挑战。由于Android市场的开放性和人们对应用程序的需求,许多应用未经充分测试就投放市场,它们在功能和安全性上可能存在一些问题。同时Android设备种类繁多、硬件复杂,这无疑增加了应用测试的工作量。现有的Android测试大多是人工测试,测试速度相对较慢;而已有测试工具大部分只能针对某一方面进行自动化测试,功能体系还不够完善。本文提出了自动化性能
2、测试方法,设计并实现了Android自动化测试工具DAT。该工具可实现Android平台应用测试需要的多设备管理、测试任务分配、自动测试执行、测试过程管理、测试结果报告等功能。本文详细描述了DAT所使用到的Monkey工具、MonkeyRunner工具、Robotium工具以及UIAutomator工具的测试技术及测试框架;重点阐述了DAT工具的体系结构设计、各功能模块设计、工具使用方法。文章最后总结了DAT工具的优点和不足并提出了未来改进的方向。DAT工具可广泛的用于Android手机及平板电脑的应用程序测试中,可以有效地减轻测试人员的负担,有
3、良好的应用和发展前景。【关键词】Android测试;自动化测试;多设备管理盐城师范学院毕业设计DesignandImplementationofAndroidAutomatedTestingToolAbstractInrecentyears,AndroidhasasharpdevelopmentandmoreandmoreAndroidapplicationsspringup.Ontheonehand,itbringsconveniencetopeople'slife,ontheotherhand,itisabigchallengeforthes
4、oftwarequalityassurancework.BecauseoftheopennessofAndroidmarketandtheneedforapplicationdeveloping,alotofapplicationshavebeenputonthemarketwithoutadequatetesting,thiskindofapplicationshaveahighpossibilityofcarryingfunctionalandsecurityproblems.Besides,Androiddevicehasmanycateg
5、oriesanditsconstructionisverycomplicated,thisisnodoubtmakestestingworkmoretough.ExistedAndroidtestismostlyenginedbylabourpower,testspeedisveryslow;Andtestingtoolisonlyautomatedtestingforacertainaspect,functionsystemisnotsoundtosomeextent.Inthisthesis,wetriedanautomatedfunctio
6、nalmethodtotestdevices,designedandrealizedtheAndroidautomatedtesttool-DAT.Itcanmanagemorethanonedevice,distributetestingtasks,runthetasksautomatically,controlthetestingprogressandreporttestresultsautomatically.NextwewillintroducetheDATindetail,includeMonkeytesttool,MonkeyRunn
7、ertesttool,RobotiumtesttoolandUIAutomatortesttoolusedtoassistbuildingDAT.Anditmakemainpointthatdescribingtheconstruction,eachfunctionmoduleandusageofDAT.Intheendofthethesis,wewillresearchtheapplicationprospects,strengthsandweaknessesofDAT.Sowecanfigureoutthefuturedirectiontoi
8、mproveit.DATtoolcanappliedinapplicationprogramtestingofAndroidmobile