面向Web Service的自动化测试系统的设计与实现
发布时间:2018-06-27 17:13
本文选题:Play框架 + Scala语言 ; 参考:《南京大学》2014年硕士论文
【摘要】:随着软件产品开发速度的不断提高,测试人员的压力也在相应增加。为了提高测试的效率,越来越多的大型公司在开发自己的自动化测试系统。ebay的Stubhub子公司适应软件发展趋势,同样提出了开发面向Web Service的自动化测试系统的需求。而这种本公司开发的自动化测试系统既能适合本公司的产品和环境,又能为今后类似自动化测试系统的开发积累了技术和经验。面向Web Service的自动化测试系统就是由测试框架和测试工具两个部分组成。测试框架是通过maven依赖来提供API的自动化测试方案。而测试工具是一个Web工程,提供API的信息管理和请求功能。对于自动化测试框架,采用基础的java技术即可实现。对于自动化测试工具,由于Play 2框架提供了web开发的所有基本功能,所以决定选择Play 2框架来实现web开发。在此基础上,使用具备函数式编程特性的Scala语言完成开发。数据库是MongoDB,选择的理由是它是NoSQL数据库,适合存储结构不确定的数据存储,且操作简便。本文首先阐明了自动化测试系统的项目背景和意义。接着本文介绍了项目开发过程中使用的各项技术,包括AngularJS、Scala、MongoDB、Play框架等技术。然后本文明确了项目的需求并根据需求完成项目的设计,需求的内容包括功能性需求、非功能需求以及用例分析,设计内容包括MongdoDB数据库设计和模块的详细设计等。之后,本文详细介绍了系统各个模块的具体实现,以及Play 2框架的配置和实现,同时还以举例的形式详细介绍了AKKA和WebSocket等技术的核心代码。最后,总结了整个项目的不足和进一步的展望。在后续的工作中,我们将美化部分的界面,并优化系统的一些操作,使本系统的使用体验更为人性化。同时增加组合测试和界面测试等新的模块,添加数据统计、邮件通知等新的功能,使产品功能更加丰富。而在代码结构这一方面,依然需要优化,如降低类之间的耦合程度,优化调用关系。
[Abstract]:With the rapid development of software products, the pressure of testers is also increasing. In order to improve the efficiency of testing, more and more large companies are developing their own automated testing system. EBay's Stubhub subsidiary company adapts to the trend of software development. The automatic test system developed by this company can not only adapt to the products and environment of our company, but also accumulate technology and experience for the development of similar automatic test system in the future. Web Service-oriented automated test system is composed of two parts: testing framework and testing tools. The test framework is an automated test scheme that provides APIs through maven dependencies. The testing tool is a Web project that provides API information management and request capabilities. For the automated testing framework, the basic java technology can be implemented. For automated testing tools, because the play 2 framework provides all the basic functions of web development, it is decided to choose the play 2 framework to implement web development. On this basis, the use of functional programming features of Scala language development. The database is MongoDB, the reason is that it is NoSQL database, suitable for storage structure of uncertain data storage, and easy to operate. In this paper, the project background and significance of automated test system are first expounded. Then this paper introduces the technologies used in the development of the project, including Angular JS Scala / MongoDB play framework and so on. Then this paper defines the requirements of the project and completes the project design according to the requirements. The requirements include functional requirements, non-functional requirements and use case analysis. The design content includes the MongdoDB database design and the detailed design of modules. After that, this paper introduces the implementation of each module of the system, the configuration and implementation of the play 2 framework, and introduces the core codes of AKKA and WebSocket in detail with an example. At last, the deficiency of the whole project and further prospect are summarized. In the following work, we will beautify the part of the interface, and optimize some of the system operation, so that the system experience more humanized. At the same time, new modules such as combination test and interface test are added, data statistics, email notification and other new functions are added to enrich the function of the product. However, in the aspect of code structure, we still need optimization, such as reducing the coupling between classes and optimizing the call relation.
【学位授予单位】:南京大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP311.53;TP393.09
【相似文献】
相关期刊论文 前10条
1 ;自动化测试系统[J];电子质量;2002年11期
2 何洪波;新一代通用自动化测试系统的开发与应用[J];中国计量;2004年06期
3 李忠明,张威;短信自动化测试系统的开发与应用[J];移动通信;2004年06期
4 王丽英;基于以太网技术的自动化测试系统[J];今日电子;2005年10期
5 李华;;综合仪器和新一代自动化测试系统[J];国外电子测量技术;2005年12期
6 张舜尧;;手机自动化测试系统设计浅析[J];电脑知识与技术(学术交流);2007年20期
7 ;构建以软件为中心的下一代自动化测试系统[J];电子技术应用;2008年08期
8 徐,
本文编号:2074636
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/2074636.html