摘要
移动产品软件具有时效性强、高度迭代、快速上线的特性,传统的手工测试已无法满足日益增多的功能测试任务,需要实现移动设备软件的自动化测试来提高测试的效率与质量。本文经过各方面的综合分析后,选择用Appium完成后续研究。用Appium分别实现了在安卓和iOS移动设备(真机)上的自动化测试,能够模拟用户对设备的基本操作,完成自动化测试流程。除了完成基本测试流程,还用Java对其框架进行二次开发,满足了以下需求:测试用例跨平台执行(安卓和iOS);封装Appium的基础操作,减少编写测试脚本的工作量;添加相应方法,增强测试工具的实用性。
Mobile product software has the characteristics of strong timeliness, high iteration and fast online. The traditional manual testing can not meet the increasing functional testing tasks. It is necessary to realize the automatic testing of mobile device software to improve the efficiency and quality of testing. After comprehensive analysis of all aspects, this paper chooses appium to complete the follow-up research: appium is used to realize the automatic test on Android and IOS mobile devices(real machines)respectively, which can simulate the basic operation of users on the device and complete the automatic test process. In addition to completing the basic test process, the framework is also redeveloped in Java to meet the following requirements: cross platform execution of test cases(Android and IOS);Encapsulate the basic operation of appium to reduce the workload of writing test scripts;Add corresponding methods to enhance the practicability of test tools.
作者
张佳慧
ZHANG Jiahui(Kunshan Open University,Suzhou Jiangsu 215300,China)
出处
《信息与电脑》
2022年第2期102-107,共6页
Information & Computer
关键词
自动化测试
移动设备
跨平台
脚本优化
automated testing
mobile device
cross-platform
script optimization