您好,欢迎访问三七文档
当前位置:首页 > 办公文档 > 其它办公文档 > 软件工程毕业设计(论文)-基于QTP的自动化测试
大连民族学院本科毕业设计(论文)基于QTP的自动化测试学院(系):计算机科学与工程学院专业:软件工程学生姓名:学号:指导教师:评阅教师:大连民族学院基于QTP的自动化测试-I-摘要目前在软件测试行业里,除了大家所熟悉的黑盒测试和白盒测试以外,还分为手工测试和自动化测试。自动化测试相对于手工测试有很多优点,它最主要的优点就是省时,省力,省财务开销。自动化测试工具中具有代表性的是QTP,QTP适用于软件测试中的smoke测试以及回归测试(regressiontest),QTP脚本具有相当高的可移植性和可重用性,“一本万利”,即一本QTP测试脚本经过简单修改后可以应用于多个测试软件以及测试环境。本次毕业设计,以QTP为自动化测试工具,以“美图秀秀”软件为被测软件,通过QTP的描述性编程方法,实现该软件从安装到卸载的功能测试和界面检查测试,以及安装完成后的软件功能性测试和UI测试。最终产生可读性好,易于跟踪的QTP自动化报告,用来分析软件的缺陷。通过使用QTP对“美图秀秀”软件进行测试的实例,展示出了QTP自动化测试在软件测试行业中方便,快捷的优越性。关键词:自动化测试;报告;描述性编程基于QTP的自动化测试-II-AutomatedtestingbasedonQTPAbstractInthesoftwaretestingindustry,withtheexceptionthateveryoneisfamiliardistinguishedwithblackboxtestingandwhiteboxtesting,italsoconsistofmanualtestingandautomatedtesting.Themainadvantageofautomationissavingtime,effort,theprovincialfinancialcost.Inautomatedtestingsoftware,QTPisoutstanding.QTPusedinsmokingtestingandregressiontesting(regressiontest)inthesoftwaretesting.QTPscriptwithaveryhighportabilityandreusability,abigprofit,thatisaQTPtestscriptthroughsimplemodificationscanbeappliedtovarioustestsoftwareandtestenvironment.Inthisgraduationdesign,usingQTPfortheautomatedtestingtoolsandusingbeautiesXiuXiusoftwareforthesoftwareundertest,throughQTPdescriptiveprogramming,implementationofthesoftwarefrominstallationtouninstallwhichincludethefunctionaltestingandinspectioninterfacetesting,andthesoftwarefunctionalitytestingandUItestingafterinstallationUponcompletion.EventuallyproducereadableandeasytofollowtheQTPautomatedreporting,whichusedtoanalyzesoftwaredefects.ByusingQTPonthebeautiesXiuXiusoftwaretestexamples,demonstratingtheconvenient,fastsuperiorityofQTPautomatedtestinginthesoftwaretestingindustry.KeyWords:Automatedtesting;Report;Descriptiveprogramming基于QTP的自动化测试-III-目录摘要.....................................................................................................................................IAbstract.....................................................................................................................................II1软件测试简介.........................................................................................................................11.1软件测试简介.............................................................................................................12自动化测试简介....................................................................................................................22.1自动化测试的目的.....................................................................................................22.3自动化测试流程图.....................................................................................................33QTP自动化测试....................................................................................................................43.1QTP自动化测试简介.................................................................................................43.2QTP的工作模式.........................................................................................................53.4QTP自动化测试流程..............................................................................................73.4.1准备测试用例..................................................................................................73.4.2配置QTP运行环境........................................................................................73.4.3录制或编写自动化测试脚本..........................................................................73.4.4检查修改脚本..................................................................................................73.4.5运行调试测试脚本..........................................................................................73.3.6运行维护脚本..................................................................................................73.4.7QTP自动化测试流程图..................................................................................83.5QTP框架介绍.............................................................................................................94“美图秀秀”的自动化测试..............................................................................................104.1测试规划...................................................................................................................104.2测试用例开发...........................................................................................................104.2.1安装测试用例................................................................................................104.2.2安装完毕自动启动软件测试用例................................................................114.2.3桌面坐标检查测试用例................................................................................114.2.4开始菜单检查测试用例................................................................................114.2.5启动软件测试用例........................................................................................114.2.6打开图片测试用例........................................................................................124.2.7场景编辑测试用例........................................................................................124.2.8场景编辑框检查测试用例...........................
本文标题:软件工程毕业设计(论文)-基于QTP的自动化测试
链接地址:https://www.777doc.com/doc-5838311 .html