Android手机自动化测试系统的设计与实现
发布时间:2019-05-18 04:53
【摘要】:近年来,移动通信行业快速发展,为了满足用户对移动终端设备的强烈需求,缩短产品的开发周期对移动终端制造商极其重要。如何又快、又好地对产品进行测试成了各大厂商亟待解决的重中之重。但是,,现有的手工测试方法不仅无法满足日益增长的测试需求,并且由于手工测试的特点,导致测试人员效率低下,错误不断。 本文针对现有的Android手机测试方法所存在的严重问题,设计并实现了基于Robot Framwork框架的Android手机自动化测试系统。论文在阐述了自动化测试的基本概念、优缺点的基础上,介绍了本文研究的自动化测试方案所需要的相关技术;以某公司的某款手机为例,分析了手机的功能测试需求;以RobotFramwork框架为基础,设计了一个手机自动化测试系统,并以测试需求为基准设计了覆盖需求的测试用例;搭建了Windows系统上的自动化测试环境,并通过封装用Python语言编写关键字,调用monkeyrunner工具中提供的安卓接口,实现了模拟手动操作手机的功能;在框架中编写了与测试用例相对应的可执行脚本;使用本文设计的自动化测试系统对某公司手机进行了测试,并使用统计后的结果进行分析。 基于Robot Framwork框架的Android手机自动化测试的结果表明,此方案能够解决上文提到的测试难题,提高测试效率和可靠性,降低测试成本和人力,有效地提高了效益,达到了本课题的预期目标。
[Abstract]:In recent years, with the rapid development of mobile communication industry, in order to meet the strong demand of users for mobile terminal equipment, shortening the product development cycle is very important for mobile terminal manufacturers. How to test the products quickly and well has become the most important problem to be solved by the major manufacturers. However, the existing manual testing methods can not only not meet the increasing testing requirements, but also lead to the low efficiency of testers and continuous errors because of the characteristics of manual testing. Aiming at the serious problems existing in the existing Android mobile phone testing methods, this paper designs and implements a Android mobile phone automatic test system based on Robot Framwork framework. On the basis of expounding the basic concept, advantages and disadvantages of automatic testing, this paper introduces the related technologies needed by the automatic testing scheme studied in this paper, and takes a mobile phone of a company as an example to analyze the functional testing requirements of mobile phones. Based on RobotFramwork framework, an automatic test system for mobile phone is designed, and a test case covering requirements is designed based on the test requirements. The automatic test environment on Windows system is built, and the function of simulating manual operation of mobile phone is realized by encapsulating the keyword written in Python language and calling the Android interface provided in monkeyrunner tool. The executable script corresponding to the test case is written in the framework, and the mobile phone of a company is tested by using the automatic test system designed in this paper, and the statistical results are used to analyze it. The results of Android mobile phone automation test based on Robot Framwork framework show that this scheme can solve the test problems mentioned above, improve the test efficiency and reliability, reduce the test cost and manpower, and effectively improve the efficiency. The expected goal of this subject has been achieved.
【学位授予单位】:西安电子科技大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP311.53
本文编号:2479690
[Abstract]:In recent years, with the rapid development of mobile communication industry, in order to meet the strong demand of users for mobile terminal equipment, shortening the product development cycle is very important for mobile terminal manufacturers. How to test the products quickly and well has become the most important problem to be solved by the major manufacturers. However, the existing manual testing methods can not only not meet the increasing testing requirements, but also lead to the low efficiency of testers and continuous errors because of the characteristics of manual testing. Aiming at the serious problems existing in the existing Android mobile phone testing methods, this paper designs and implements a Android mobile phone automatic test system based on Robot Framwork framework. On the basis of expounding the basic concept, advantages and disadvantages of automatic testing, this paper introduces the related technologies needed by the automatic testing scheme studied in this paper, and takes a mobile phone of a company as an example to analyze the functional testing requirements of mobile phones. Based on RobotFramwork framework, an automatic test system for mobile phone is designed, and a test case covering requirements is designed based on the test requirements. The automatic test environment on Windows system is built, and the function of simulating manual operation of mobile phone is realized by encapsulating the keyword written in Python language and calling the Android interface provided in monkeyrunner tool. The executable script corresponding to the test case is written in the framework, and the mobile phone of a company is tested by using the automatic test system designed in this paper, and the statistical results are used to analyze it. The results of Android mobile phone automation test based on Robot Framwork framework show that this scheme can solve the test problems mentioned above, improve the test efficiency and reliability, reduce the test cost and manpower, and effectively improve the efficiency. The expected goal of this subject has been achieved.
【学位授予单位】:西安电子科技大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP311.53
【参考文献】
相关期刊论文 前9条
1 张舜尧;;手机自动化测试系统设计浅析[J];电脑知识与技术(学术交流);2007年20期
2 许静,陈宏刚,王庆人;软件测试方法简述与展望[J];计算机工程与应用;2003年13期
3 谢红霞;吴红梅;;基于Android的自动化测试的设计与实现[J];计算机时代;2012年02期
4 接卉;兰雨晴;骆沛;;一种关键字驱动的自动化测试框架[J];计算机应用研究;2009年03期
5 王继成,高珍;软件需求分析的研究[J];计算机工程与设计;2002年08期
6 董晓霞;;软件测试工程化的研究和实践[J];计算机工程与设计;2006年11期
7 叶振宇;智能手机软件开发中的质量控制策略[J];绍兴文理学院学报;2005年01期
8 邹明;郑军红;;Android中JavaScript API的分析与应用[J];软件导刊;2012年10期
9 吴显光;;软件自动化测试[J];中国新通信;2012年14期
本文编号:2479690
本文链接:https://www.wllwen.com/kejilunwen/ruanjiangongchenglunwen/2479690.html