- 无标题文档
查看论文信息

论文中文题名:

 基于Watir框架的Web功能自动化测试研究与应用    

姓名:

 张媛媛    

学号:

 201308439    

学科代码:

 0835    

学科名称:

 软件工程    

学生类型:

 硕士    

学位年度:

 2016    

院系:

 计算机科学与技术学院    

专业:

 软件工程    

第一导师姓名:

 张小艳    

论文外文题名:

 The Research and Application of Web Function Automation Test Based on Watir Framework    

论文中文关键词:

 Web测试 ; 自动化测试 ; 功能测试 ; Watir ; 测试框架    

论文外文关键词:

 Web testing ; Automated testing ; Functional testing ; Watir ; test framework    

论文中文摘要:
近年来,随着互联网技术的发展,市场需求的深化和频繁变更,Web应用规模和复杂度不断增加,这些都对软件测试提出了更高的要求。为保证软件质量,同时在更短的时间内完成测试任务,软件自动化测试已成为测试人员普遍关注的问题。 本文在深入研究目前自动化测试领域存在的多种类型测试框架的基础上,结合本课题的测试目标定位及需求分析,设计并实现了基于Watir的自动化测试框架。该框架融入了数据驱动和关键字驱动的设计思想,将测试数据从测试逻辑中抽离出来,并将测试中执行操作的业务对象构建关键字库,使测试脚本逻辑更加清晰,复用性更强,提高了脚本的可维护性。框架包括测试驱动、测试脚本、配置文件、支持库、测试用例集、关键字库、测试日志报告集,建立了业务功能需求、测试脚本代码、测试用例之间的联系,分别从数据、控制、业务逻辑、用户界面四个层面详细阐述了框架的设计与实现,并介绍了该框架在具体应用过程中的脚本工作流程。 最后,文章以某集团煤质管理信息系统为测试对象,运用基于Watir的自动化测试框架对各待测模块进行功能自动化测试。本文搭建了基于Watir+Ruby+Myeclipse框架的自动化测试环境。根据待测系统特点,重点介绍了待测功能模块底层数据表、中层数据表和高层数据表的设计,并对其测试模块脚本流程进行分析。通过应用框架,利用Watir对页面元素的识别机制,实现对各待测功能模块的自动化测试,并在测试结束后生成相应的测试日志报告,详细记录测试过程。通过对测试结果的分析,可以证明采用该测试框架进行自动化测试具有良好的效果。
论文外文摘要:
In recent years, with the development of Internet technology, the deepening and frequent changes of market demand, Web applications has been expanded constantly both on its scale and complexity. It puts forward higher requirement on software testing. In order to ensure the software quality, and to complete test tasks in a shorter period of time, automation of software testing has become an issue of common concern to the testers. Based on the in-depth study on various types of automation testing framework and combination of test target and demand analysis , this thesis designed and implemented automation testing framework based on Watir. Integrated with the design idea of data-driven and keyword-driven the framework elicited test data from test logic and transformed business objects into key words, which improved the maintainability of scripts and make logic clearer, better reusability. The framework includes test drive, test scripts, configuration files, support for libraries, test cases, key words, test log and report sets, which established the connection between business functional requirements, test script code and test cases. This thesis described the design and implementation of framework from four aspects that include data, control, business logic, user interface and introduced the script working process of the framework in practical application. This thesis selects the coal quality management information system of a group as the tested object, The automated testing of every functional modules to be tested is realized through using Watir’s automated testing framework. This thesis sets up an automated testing environment for this system based on the Watir + Ruby + Myeclipse framework. According to the characteristic of system, the thesis mainly introduced the design of low-data table, middle-data table, high-data table of function modules and analyzed test script process. By using Watir mechanism for identifying the page elements, the automated testing framework can realize the automation of each function module and generate test log that record test process in detail after testing. Through the analysis of test results, the testing framework can be proved has a good effect on automated test.
中图分类号:

 TP311.55    

开放日期:

 2016-06-21    

无标题文档

   建议浏览器: 谷歌 火狐 360请用极速模式,双核浏览器请用极速模式