资源描述:
《Androd论文:Android 关键字驱动 自动化 软件测试 GUI测试.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、【关键词】Android关键字驱动自动化软件测试GUI测试【英文关键词】AndroidKeyword-drivenAutomationSoftwareTestGUITestAndroid论文:基于Android的关键字驱动自动化测试框架研究【中文摘要】Android作为一款主流的智能手机的操作系统,凭借其开源、拓展性及可移植性强等特点迅速走红全球。然而,与Android应用开发的飞速发展相比,其相对滞后的测试技术却更让人担忧。目前,大部分软件企业对Android项测试都采用传统的手工测试方法,而手工测试受到诸多方面
2、因素的限制,不利于版本迭代时大规模的回归测试。尽管目前国内外已经出现了多款成熟的软件自动化测试框架,可针对Android的自动化测试框架相对较少。目前,针对Android的开源测试框架主要有AndroidSDK自带的ActivityInstrumentation、Robotium、Robolectric及TMTS。该类自动化测试框架均需要测试人员通过编写测试代码来实现测试用例,测试效率低下。针对上述问题,本文综合分析现有Android开源测试框架的优缺点后,提出基于Android的关键字驱动自动化测试框架。该框架对
3、Robotium进行了再次封装,并把基于关键字驱动的软件测试技术移植到Android测试中。实现了从数据文件中直接导入测试用例进行测试,使测试数据与测试代码分离,降低测试数据与测试代码的耦合性。同时根据Android的GUI测试,设计出可重用性高的关键字库。能自动生成并导出测试报告与代码覆盖率报告,使测试人员能更直观的分析测试结果。实践经验表明,本框架增强了自动化测试的可开发性和可维护性,把测试用例的设计与测试数据相结合,通过设计测试数据和关键字来实现测试用例的开发。本文的自动化测试框架和关键字驱动测试代码己经应用
4、于实际的项目开发上,有效提高了测试效率,获得了较高的投资收益比。【英文摘要】Withthedevelopmentofscienceandtechnology,smartphonesbecomeincreasinglypopularandgraduallybecomethemainstreamofmobilephonemarket.Mobilephoneisnolongerlimitedtoasimplecommunicationtool,butterminalequipmentwithvarietyoffeatur
5、es.SuchasSymbian,Android,WidowsMobileandMaxOSXarethemajorsmartphoneoperatingsystemsatthemoment,whileAndroidquicklybecamepopulararoundtheworldwithitsopen-source,expandingandportability.InFebruary2012,Androidaccountedfor52.5%oftheglobalsmartphoneoperatingsystemm
6、arketshare.ThenumberofAppinAndroidMarkethasmorethan450,000andmonthlydownloadshavereachonebillion.However,comparedwiththerapiddevelopmentoftheAndroiddevelopment,thetestingtechniqueshavelaggedfarbehind.MostsoftwarecompaniesontheAndroidtestusingthetraditionalmanu
7、altestingmethods.Manualtestingwillbelimitedbymanyfactors,andnotconducivetolarge-scaleregressiontesting.Althoughtherehavebeenavarietyofsophisticatedsoftwareautomationtestingframework,mostofthemareforJavaorC++,C#butlessforAndroid.ActivityInstrumentation,Robotium
8、,RobolectricandTMTSarethemajorautomatedtestingframeworksortoolsforAndroidapplications.Theseautomatedtestingframeworkneedtobetestedbywritingtestcodetoexecutetestcases,whichmakethete