节点文献
面向移动业务平台的自动化测试平台设计与实现
The Design and Implementation of Automated Test Platform Oriented Towards Mobile Application Platform
【作者】 刘刚;
【导师】 楼培德;
【作者基本信息】 北京邮电大学 , 电子与通信工程, 2012, 硕士
【摘要】 测试在当今的项目工作中占据了越来越重要的地位,尤其自动化测试技术,由于能够很大程度地克服传统的人工测试中工作内容重复性强、效率低、成本高的问题,近些年也发展的愈来愈成熟。然而现有的自动化测试工具却存在着应用面狭窄,需要专业开发的缺点,无法满足移动业务平台这种组网复杂的项目测试需求。为了解决这一难题,本文设计并实现了一个面向移动业务平台的自动化测试平台,该测试平台具备较强的可扩展性,能够满足复杂的测试需求。本文首先对移动业务平台及现有自动化测试平台进行了广泛的研究,随后对平台需求进行了深度的分析,并最终确定了面向移动业务平台的自动化测试平台的总体框架。本文将其分为了两个部分分别进行了设计与实现。第一部分是自动化测试管理工具设计与实现。与传统测试工具的本地管理方式相比,本课题是基于Web前端技术来进行测试用例、测试任务及测试数据等多方面测试信息管理,这种方式能够对分散的测试节点实现远程集中管理,方便测试人员准确把握整体测试进度、制定相应测试规划。第二个部分是可扩展的自动化测试框架设计与实现。本课题中作者通过对JUnit单元测试框架进行扩展,实现了一个内置丰富测试工具、具备事件处理机制、日志生成功能的自动化测试框架。由于在该测试框架的设计中进行了规范的模块划分,并采用了面向对象、控制反转及接口驱动的编程技术,各功能模块间耦合程度低,从而使得其较之现有测试工具具备了强大的可扩展性,能够满足不同测试人员的不同测试需求。在完成该自动化测试平台的设计与实现后,本课题还将该自动化测试平台应用到了移动党建信息管理系统项目中,对党建系统的客户端软件及系统性能进行测试,以验证所设计内容是否合理有效。应用结果表明,该测试平台能够准确实现测试任务,并输出详细的HTML格式日志文件,各功能模块运行正常,具备很高的实用价值。
【Abstract】 Nowadays test plays an increasingly important role in the project. The traditional test task was always accomplished in the manual way. Whereas, compared with the manual way which is high repeatability, low efficiency and high cost, the application of automated test technology can solve these problems effectively. However, there are some disadvantages on the automated test tools, for example, it focus on a certain related field too much, less application of fields, and is unable to meet the testing needs of mobile application platforms with complicated network architecture. To solve this problem, this project designs and implements an automated test platform oriented towards mobile application platform. This test platform is of strong scalability, and can deal with the complex test requirements.In this paper, there is a wide range of research on the mobile application platform and the existing automated test platform, and deeply analysis of the platform’s requirements. Ultimately the author builds the overall framework of automated testing platforms oriented towards mobile application platform, and implements the project which is divided into two parts. The first part is the design and implementation of the automated test management tools. Differently from the traditional test tools which manage test information locally, the management tools designed in this paper take advantage of front-end web technologies to handle the information of test cases, test task and test data. In this way, people can manage the info from different test nodes centralized and remotely. The tools can help testers to grasp the overall progress of test project accurately and draft the test plans comfortably. The second part is the design and implementation of the extensible automated test framework. The issue achieves an automated testing framework with built-rich test tools, event handling mechanism and log generation modules by expansion of JUnit. Since the specification of module division and the using of OO, IoC and interface-driven programming techniques, the coupling degree between modules is very low, and the automated test framework is of a powerful scalability compared with the existing test tools. It makes the test platform designed in this paper can meet different testing requirements. After completion of the design and implementation of the automated test platform, the platform is applied to the information management system of mobile Party-Building. In this application, the automated test platform achieved the test task accurately, outputted detailed log files in HTML format, and every module operated normally. The testing results verify that the platform designed in this paper is reasonable, effective, and of a high practical value.
【Key words】 mobile application platform; automated test; test case design; IoC; JUnit;
- 【网络出版投稿人】 北京邮电大学 【网络出版年期】2012年 08期
- 【分类号】TP311.52
- 【被引频次】1
- 【下载频次】151