当前位置:主页 > 管理论文 > 项目管理论文 >

企业项目管理系统的Web自动化测试研究与实现

发布时间:2019-06-20 20:29
【摘要】:科技发展日新月异,Web系统的规模和复杂度也随之不断增加,怎样确保Web系统的正确性和可靠性也日渐成为人们关注的焦点。Web测试也越来越重要,已然成为Web开发过程的一个重要环节。测试效率低和测试覆盖率不能保证是手工测试的两大缺点,由此手工测试越来越不能满足规模不断变大,复杂度不断变高的Web系统的测试的要求。因而每个开发团队都面临着开展自动测试,提高工作效率的挑战。然而自动化测试并不是万能药,也不能随意使用,只有经过严格测试之后的自动化测试,才能真正提高Web测试的测试覆盖率,减少测试时间,提高工作效率。企业项目管理系统是一个以软件系统的开发为使用场景,实现需求分析、概要设计、详细设计、编程实现和软件测试的生命周期管理的系统,是为了实现企业内部项目参与人之间沟通、协作和管理而研发的一个Web系统,也是一个复杂度高规模大的Web系统。它主要包括资源管理、团队管理、任务管理、里程碑管理等功能模块,支持Firefox、IE和Chrome等浏览器。在分析了企业项目管理系统的特点和自动化测试相关知识,并了解了现有的自动化测试工具之后,Selenium以其可以像真实用户一样直接在浏览器中运行以及开源的优点被选作企业项目管理系统自动化测试的测试工具。首先文章介绍了题目来源、论文研究的背景、国内外研究现状及研究意义。接着论文主要阐述了Web测试和自动化测试的相关知识,以及Selenium WebDriver的工作原理。除此之外,本项目根据软件测试的流程规范,制定了测试计划,明确测试范围,确定测试方法。并在分析待测的企业项目管理系统特点之后,根据系统的详细设计说明说以及开发人员的培训,明确了测试需求。根据系统的测试需求和测试计划,结合Python和Selenium2.0的WebDriver设计、搭建了测试平台,并通过Python脚本控制批处理过程,实现测试用例的逐个次序运行,并记录测试结果生成测试报告。引入Page Object设计模式,采用分层架构的方法,把测试脚本分为五层,通过调用UI层定义的界面元素,实现常用动作和一些辅助功能的封装,进而实现测试用例甚而测试集合的测试,提高了代码的复用性,使测试脚本的实现更加简便。同时使用Firefox的插件Selenium IDE录制和编辑测试脚本,运行测试脚本,实现企业项目管理系统的Web自动化测试,查看测试报告,分析测试结果。企业项目管理系统的Web自动化测试的测试结果表明,自动化测试平台能够满足系统的测试需求,提高了企业项目管理系统的测试效率。最后论文总结了论文的主要工作内容,并对后续工作进行了展望。
[Abstract]:With the rapid development of science and technology, the scale and complexity of Web system are also increasing, how to ensure the correctness and reliability of Web system has become the focus of attention. Web testing is becoming more and more important, which has become an important link in the Web development process. Low test efficiency and unguaranteed test coverage are two major shortcomings of manual testing, so manual testing can not meet the requirements of Web system with larger scale and higher complexity. Therefore, each development team is faced with the challenge of carrying out automatic testing and improving work efficiency. However, automated testing is not a universal medicine, and can not be used at will. Only after strict testing, can the test coverage of Web test be really improved, the test time can be reduced, and the work efficiency can be improved. Enterprise project management system is a Web system which takes the development of software system as the use scene, realizes the life cycle management of requirement analysis, outline design, detailed design, programming implementation and software testing. It is also a Web system with high complexity and large scale in order to realize the communication, cooperation and management among project participants in the enterprise. It mainly includes resource management, team management, task management, milestone management and other functional modules, supporting Firefox,IE and Chrome browsers. After analyzing the characteristics of enterprise project management system and the related knowledge of automation testing, and understanding the existing automation test tools, Selenium has been selected as the test tool for enterprise project management system automation testing because of its advantages that it can run directly in browser like real users and open source. First of all, the paper introduces the source of the topic, the background of the paper research, the research status at home and abroad and the significance of the research. Then the paper mainly describes the knowledge of Web testing and automatic testing, as well as the working principle of Selenium WebDriver. In addition, according to the process specification of software testing, this project formulates the test plan, clarifies the test scope, determines the test method. After analyzing the characteristics of the enterprise project management system to be tested, according to the detailed design instructions of the system and the training of developers, the test requirements are defined. According to the test requirements and test plan of the system, combined with the WebDriver design of Python and Selenium2.0, the test platform is built, and the batch process is controlled by Python script to realize the running of test cases one by one, and the test results are recorded to generate the test report. By introducing Page Object design pattern and adopting the method of hierarchical architecture, the test script is divided into five layers. By calling the interface elements defined by UI layer, the encapsulation of common actions and some auxiliary functions is realized, and then the test case and even the test set are tested, which improves the reusability of the code and makes the realization of the test script easier. At the same time, Selenium IDE, a plug-in of Firefox, is used to record and edit the test script, run the test script, realize the Web automation test of the enterprise project management system, view the test report and analyze the test results. The test results of Web automation test of enterprise project management system show that the automatic test platform can meet the test requirements of the system and improve the test efficiency of enterprise project management system. Finally, the paper summarizes the main work of the paper, and looks forward to the follow-up work.
【学位授予单位】:西安电子科技大学
【学位级别】:硕士
【学位授予年份】:2015
【分类号】:TP311.52

【相似文献】

相关期刊论文 前10条

1 张晓敏;;构建整体化的自动化测试平台[J];中国高新技术企业;2010年22期

2 杭汉庆;;关于软件自动化测试工具的研究[J];无线互联科技;2012年01期

3 王益芝;吴言润;李艳;李特;;浅析智能手机的自动化测试[J];现代电信科技;2012年12期

4 季淑引;;软件自动化测试工具的应用研究[J];科技致富向导;2012年20期

5 张佳s,

本文编号:2503510


资料下载
论文发表

本文链接:https://www.wllwen.com/guanlilunwen/xiangmuguanli/2503510.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户5c9dd***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com