基于GUI的Android移动软件性能测试
合集下载
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
http:llww w .C—S—a.org.cn
Tel:+86.10—62661041
基于 GUI的 Android移动软件性能测 试①
谷 林 涛 ,徐 立 华
(华东师范大学 计算机科学与软件 工程 学院,上海 200062) 摘 要:移 动应用软件 已经拥有 了数 以千 万计 的用户群体.根据最新 统计,Android手机 以 85.1% 的市场 占有份额, 成为 了最受欢迎 的移动端设备 .Android应用软件 的快速开发,使得如 何保证 程序质量,成 了难题.我们不仅要考 虑 程 序 的正 确性 ,也应 保证 运 行 时 的流 畅性 .现 有 的性 能 研 究工 作都 基 于传 统 的静 态 分析 或 者动 态 执行 .对 于 Android程序 ,静态分析 具有 一定 的局 限性 ,而动态 分析又忽略 了 APP执 行时的遍历方 式.因此,本文提 出了基 于 GUI的 Android自动化 性能测试框架,将着重 关注页面状态和 APP状态 的相 关性.通过对 页面的分析,聚合,尽 可 能 遍历 到 APP的各个 状态 .然 后从 日志 中,找 出 APP性 能 上 的问题 .本框 架使 用 Java作 为开 发语 言,搭 建 了 Android移动软件 自动化性 能测试框架,并在开源社 区 F.Droid上随机抽取 了移动应用软件进行实验.实验表 明,该 技术 能更 多的遍历 APP的状态,发现 APP在运行过程 中出现 的性能 问题,取得 良好的效果. 关键词 :性 能测试 ;And roid应用程序;GUI测试 ;移动应用;自动化
随着智 能手机 的 日益普及 ,以及 移动 设备硬件 性 能的不 断提 升,移动 应用软件 (以下简称 APP)越 来越 多的走进人们 的生 活.根据 IDC2017统计,85.1% 的手
计算 机系 统应 用 ISSN 1003 3254,CODEN CSAOBN Computer Systems& Applications,2018,27(8):126—131【doi:10.15888 ̄.cnki.csa.006492] ◎中 国科 学 院软 件研 究所版 权所 有
E-mail:csa@iscas.ac.cn
GU Lin-Tao.XU Li-Hua (School of Computer Science and Software Engineering,East China Normal University,Shanghai 200062,China) A bstract:M obile applications have becom e increasingly popular over the recent years.A s shown in the latest statistics, over 85.1% of m obile phones is based on Andr oid operation system .Due to the Android’S open—source character.Android application is becom ing increasingly popular.N evertheless,how to ensur e program quality has becom e a severe problem . Previous work focused on doing static or dynam ic analysis on the code to find perform ance problem .Y et they did not focus on the com bination of perform ance testing and oriental testing.Therefore,in this paper we presents a GUI—based software autom ated perform ance testing fram ew ork.By parsing pages,w e try to find the A PP states as m uch as possible, and then analyze the log files to find out the A PP perform ance problem s and recover the problem scenarios.To ensure the operability of our tool,w e use Java to set up this autom ated testing fram ework for Android m obile software.W e download m obile applications from the open source com m unity nam ed F—D roid for experim ents.The result show s that our technology can f ind m ore state of the A PP and reveal perform ance problem s in the running process. K ey words:perfor m ance testing;Android application;GUI testing;m obile application;automation
引用格 式:谷 林涛,徐立华 .基 于 GUI的 Android移动 软件性 能测试 .计算 机系 统应用 ,2018,27(8):126—131.http://www.c—S—a,org.cn/1003—
3254/6492.htm l
Perpplication Based on GUI
Tel:+86.10—62661041
基于 GUI的 Android移动软件性能测 试①
谷 林 涛 ,徐 立 华
(华东师范大学 计算机科学与软件 工程 学院,上海 200062) 摘 要:移 动应用软件 已经拥有 了数 以千 万计 的用户群体.根据最新 统计,Android手机 以 85.1% 的市场 占有份额, 成为 了最受欢迎 的移动端设备 .Android应用软件 的快速开发,使得如 何保证 程序质量,成 了难题.我们不仅要考 虑 程 序 的正 确性 ,也应 保证 运 行 时 的流 畅性 .现 有 的性 能 研 究工 作都 基 于传 统 的静 态 分析 或 者动 态 执行 .对 于 Android程序 ,静态分析 具有 一定 的局 限性 ,而动态 分析又忽略 了 APP执 行时的遍历方 式.因此,本文提 出了基 于 GUI的 Android自动化 性能测试框架,将着重 关注页面状态和 APP状态 的相 关性.通过对 页面的分析,聚合,尽 可 能 遍历 到 APP的各个 状态 .然 后从 日志 中,找 出 APP性 能 上 的问题 .本框 架使 用 Java作 为开 发语 言,搭 建 了 Android移动软件 自动化性 能测试框架,并在开源社 区 F.Droid上随机抽取 了移动应用软件进行实验.实验表 明,该 技术 能更 多的遍历 APP的状态,发现 APP在运行过程 中出现 的性能 问题,取得 良好的效果. 关键词 :性 能测试 ;And roid应用程序;GUI测试 ;移动应用;自动化
随着智 能手机 的 日益普及 ,以及 移动 设备硬件 性 能的不 断提 升,移动 应用软件 (以下简称 APP)越 来越 多的走进人们 的生 活.根据 IDC2017统计,85.1% 的手
计算 机系 统应 用 ISSN 1003 3254,CODEN CSAOBN Computer Systems& Applications,2018,27(8):126—131【doi:10.15888 ̄.cnki.csa.006492] ◎中 国科 学 院软 件研 究所版 权所 有
E-mail:csa@iscas.ac.cn
GU Lin-Tao.XU Li-Hua (School of Computer Science and Software Engineering,East China Normal University,Shanghai 200062,China) A bstract:M obile applications have becom e increasingly popular over the recent years.A s shown in the latest statistics, over 85.1% of m obile phones is based on Andr oid operation system .Due to the Android’S open—source character.Android application is becom ing increasingly popular.N evertheless,how to ensur e program quality has becom e a severe problem . Previous work focused on doing static or dynam ic analysis on the code to find perform ance problem .Y et they did not focus on the com bination of perform ance testing and oriental testing.Therefore,in this paper we presents a GUI—based software autom ated perform ance testing fram ew ork.By parsing pages,w e try to find the A PP states as m uch as possible, and then analyze the log files to find out the A PP perform ance problem s and recover the problem scenarios.To ensure the operability of our tool,w e use Java to set up this autom ated testing fram ework for Android m obile software.W e download m obile applications from the open source com m unity nam ed F—D roid for experim ents.The result show s that our technology can f ind m ore state of the A PP and reveal perform ance problem s in the running process. K ey words:perfor m ance testing;Android application;GUI testing;m obile application;automation
引用格 式:谷 林涛,徐立华 .基 于 GUI的 Android移动 软件性 能测试 .计算 机系 统应用 ,2018,27(8):126—131.http://www.c—S—a,org.cn/1003—
3254/6492.htm l
Perpplication Based on GUI