基于robot framework appium的手机自动化测试的设计与实现

 2022-02-15 10:02

论文总字数:24715字

摘 要

“微贷助手”app是江苏金农股份有限公司针对小微贷系统业务,为江苏省小贷公司开发的一款手机软件。随着软件功能与性能的不断提升,其软件系统也变得越来越复杂,在人员、成本、时间有限的情况下,仅仅依靠传统的手工测试,已经远远不能满足如今快节奏的软件开发需求,完成并实现自动化测试就成了我们所关注的重点。

论文主要针对“微贷助手”app,设计并实现了基于robot framework appium的手机自动化测试框架。本文首先详细介绍了本次课题的研究背景与研究意义,并提出了本次课题所要达成的研究目标。然后介绍了本次课题所使用的主要技术,为设计的手机自动化测试框架提供了理论依据。在自动化测试框架设计中,详细给出了自动化测试框架的结构设计和流程设计方案。在自动化测试框架的实现中,针对框架中主要的关键字进行详细的分析说明。同时,论文对自动化测试的执行结果给出了简明扼要的分析,以达成降低人工成本、提高测试效率、缩短软件研发周期并保证软件质量的目的。

关键词:移动应用、微贷助手、自动化测试、robot framework、appium

The design and implementation of mobile phone automatic test based on robot framework and appium

Abstract

‘Micro loan assistant’ app is a mobile phone software developed by Jiangsu JinNong Limited Company for the Jiangsu Province small loan companies, which pointed at the small and micro credit system business. With the continuous improvement of the software function and performance, the software system has become more and more complex. In the case of limited personnel, cost and time, relying solely on traditional manual testing, has been far from meeting the needs of today's fast-paced software development, so finishing and realizing automatic test has become the focus of our concern.

This paper mainly aimed at the ‘micro loan assistant’ app, designs and realizes the mobile phone automatic testing framework which based on robot framework and appium. At first, the background and significance of this project are introduced in detail, and the research goal of this project is put forward. Then the paper introduces the main technology used in this topic, which provides a theoretical basis for the design of the mobile phone automation testing framework. In the design of automated testing framework, the structure design and process design of automation testing framework are presented in detail. And in the realization of the automation test framework, the main key words in the framework are analyzed in detail. At the same time, the automated testing implementation results are given the brief analysis in this paper, in order to achieve the purposes of reducing labor cost, improving test efficiency, shortening the software development cycle and ensuring software quality.

Keywords:mobile applications; micro loan assistant; automated testing; robot framework; appium

目 录

摘 要 I

Abstract II

第一章 绪论 1

1.1课题研究背景和意义 1

1.1.1研究背景 1

1.1.2研究意义 2

1.2课题的研究目标 3

1.3课题的内容及难点 3

1.4论文的组织结构 4

第二章 相关技术的介绍 5

2.1 appium的介绍 5

2.1.1 appium的概念 5

2.1.2 appium的设计哲学 5

2.1.3 appium的相关概念 6

2.2 robot framework的介绍 7

第三章 自动化测试框架的设计 8

3.1自动化测试框架的需求分析 8

3.2自动化测试框架的总体设计 9

3.2.1 自动化测试框架的结构设计 9

3.2.2 自动化测试框架的流程设计 10

3.2.3 测试数据的准备与清洗的设计 11

3.2.4 Monkey测试的设计 11

3.2.5 AppUI自动化测试设计 12

3.2.6 Apphttp接口自动化测试设计 13

3.2.7 自动化测试用例的设计 15

3.3自动化测试框架的目录结构 16

第四章 自动化测试框架的实现 18

4.1编辑通用业务关键字 18

4.2 实现通用业务关键字 19

4.2.1 创建driver 19

4.2.2 登录函数 20

4.2.3 手势密码的设置 21

4.2.4 根据元素id获取某个元素 22

4.2.5 根据元素id去输入值 22

4.3 编辑非通用业务关键字 23

4.4 编辑测试用例 24

第五章 自动化测试的执行与分析 25

5.1测试用例的执行 25

5.2 测试用例的结果分析 25

第六章 总结和展望 27

6.1 总结 27

6.2 展望 27

致谢 29

参考文献(reference) 30

第一章 绪论

1.1课题研究背景和意义

剩余内容已隐藏,请支付后下载全文,论文总字数:24715字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;