paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Model-based GUI Testing For HarmonyOS Apps

面向 HarmonyOS 应用的基于模型的 GUI 测试
ASE Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering2024匹配度 2/10 · 论文在 HarmonyOS 移动应用上做静态分析和模型驱动 GUI 测试,虽然涉及静态分析,但目标场景是移动端 GUI 测试,与用户关注的 ML/Agentic 程序静态分析、LLM 改进静态分析、浮点或贝叶斯程序分析等核心方向没有直接交集。引用 4 inbox
Yige Chen, Sinan Wang, Yida Tao, Yepang Liu
crossref: 2026-09-12

AI 速览

一句话:提出页面迁移图模型并静态构建,实现 HarmonyOS 应用的模型驱动 GUI 测试工具,显著提升覆盖率。

HarmonyOS 生态快速扩张,如何自动测试其应用以保证质量成为重要问题。现有基于模型的测试在 Android GUI 上有效,但尚需适配 HarmonyOS。本文提出页面迁移图模型,用有向图刻画 HarmonyOS 应用各 UI 页面之间的迁移;进而设计静态分析方法,从应用源码中自动构建页面迁移图。基于该模型实现 GUI 测试工具,对应用进行系统化探索。作者用 GitHub 和 Gitee 上 10 个流行开源 HarmonyOS 应用评估,结果表明提取的模型精度很高,且在同一时间预算下,基于模型的测试相比随机基线显著提升测试覆盖率。工具已开源。

问题
如何对 HarmonyOS 应用进行自动化 GUI 测试,以保证快速扩张生态中的应用质量,并克服现有 Android 模型测试方法难以直接适用的问题。
方法
提出页面迁移图模型,设计从 HarmonyOS 源码静态构建该图的静态分析方法,并基于模型实现系统化 GUI 探索测试工具。
评估
在 10 个 GitHub/Gitee 开源 HarmonyOS 应用上评估模型精度,并与随机基线在相同时间预算下比较测试覆盖率。
原文摘要(Abstract)

HarmonyOS is a new all-scenario operating system. As its software ecosystem rapidly expands, how to conduct automated testing of HarmonyOS apps to ensure app quality has become a crucial task. Model-based testing has been shown to be an effective method for automatic Android app GUI testing. Inspired by previous work, we in this work explore how to perform model-based testing for HarmonyOS apps. To characterize app behaviors, we first propose the page transition graph model, which is a directed graph describing transitions between various UI pages in a HarmonyOS app. We then devise a static analysis method to build page transition graphs from the source code of HarmonyOS apps. Leveraging the model, we implement a testing tool which can effectively perform systematic GUI exploration in HarmonyOS apps. We have evaluated our tool using 10 popular open-source HarmonyOS apps from GitHub and Gitee. Experimental results show that the extracted models are highly precise. Moreover, within the same time budget, model-based testing significantly improves the test coverage of HarmonyOS apps over a random baseline method. Our tool is open-sourced at https://github.com/sqlab-sustech/HarmonyOS-App-Test and a video demo is at https://youtu.be/dgZWkHiBYbA.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot8394,
  title = {Model-based GUI Testing For HarmonyOS Apps},
  author = {Yige Chen and Sinan Wang and Yida Tao and Yepang Liu},
  booktitle = {ASE},
  year = {2024},
  doi = {10.1145/3691620.3695364}
}