ReSPlay: Improving Cross-Platform Record-and-Replay with GUI Sequence Matching

被引:0
|
作者
Zhang, Shaokun [1 ]
Wu, Linna [2 ,3 ]
Li, Yuanchan [4 ]
Zhang, Ziqi [1 ]
Lei, Hanwen [1 ]
Li, Ding [1 ]
Guo, Yao [1 ]
Chen, Xiangqun [1 ]
机构
[1] Peking Univ, Sch Comp Sci, Key Lab High Confidence Software Tech MOE, Beijing, Peoples R China
[2] Key Lab Mobile Applicat Innovat & Governance Tech, Beijing, Peoples R China
[3] China Acad Informat & Commun Technol, CTTL Terminals Labs, Beijing, Peoples R China
[4] Tsinghua Univ, Inst AI Ind Res, Beijing, Peoples R China
来源
2023 IEEE 34TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, ISSRE | 2023年
基金
中国国家自然科学基金;
关键词
D O I
10.1109/ISSRE59848.2023.00056
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Record-and-replay is an important testing technique to ensure the quality of mobile applications (apps in short). State-of-the-art record-and-replay approaches are typically based on widget matching, which has shown limited effectiveness, especially on devices with different platforms and resolutions, due to the difficulty in matching widgets with subtle visual differences. Our key observation is that, even if two widgets look similar, the resulting screenshot sequences can still be very different during execution. Thus, instead of matching GUI widgets directly, we are able to find the correct replay actions by comparing the resulting GUI screenshot sequences, which can be better distinguished across different platforms, thus potentially improving the record-and-replay efficiency through GUI exploration and comparison. This paper proposes a general record-and-replay framework called ReSPlay, which leverages a more robust visual feature, GUI sequences, to guide replaying more accurately. ReSPlay pre-trains a deep reinforcement learning model, SDP-Net, offline from random app traces. Specifically, SDP-Net is trained to search a particular path from GUI transition graphs to learn an optimal policy to locate the target operation positions by maximizing the possibilities to reach the target GUI sequence. Finally, the trained SDP-Net is used to search for potential event traces with high rewards and replicate them on the target device for replay. We evaluate our proposed framework on multiple real devices. Experimental results show that the overall average replay accuracy of ReSPlay on devices across different OSes, GUI styles, and resolutions is 28.12% higher than the state-of-the-art baselines.
引用
收藏
页码:439 / 450
页数:12
相关论文
共 41 条
  • [11] OpenHMI-tester: an open and cross-platform architecture for GUI testing and certification
    Mateo Navarro, Pedro Luis
    Martinez Perez, Gregorio
    Sevilla Ruiz, Diego
    COMPUTER SYSTEMS SCIENCE AND ENGINEERING, 2010, 25 (04): : 283 - 296
  • [12] A cross-platform solution for bibliographic record manipulation in digital libraries
    Osborn, Wendy
    Kaur, Daljit
    Crewdson, Kathy
    Dew, Ian
    PROCEEDINGS OF THE SIXTH IASTED INTERNATIONAL CONFERENCE ON COMMUNICATIONS, INTERNET, AND INFORMATION TECHNOLOGY, 2007, : 193 - +
  • [13] Deep cross-platform product matching in e-commerce
    Juan Li
    Zhicheng Dou
    Yutao Zhu
    Xiaochen Zuo
    Ji-Rong Wen
    Information Retrieval Journal, 2020, 23 : 136 - 158
  • [14] A cross-platform model for secure electronic health record communication
    Ruotsalainen, P
    INTERNATIONAL JOURNAL OF MEDICAL INFORMATICS, 2004, 73 (03) : 291 - 295
  • [15] Deep cross-platform product matching in e-commerce
    Li, Juan
    Dou, Zhicheng
    Zhu, Yutao
    Zuo, Xiaochen
    Wen, Ji-Rong
    INFORMATION RETRIEVAL JOURNAL, 2020, 23 (02): : 136 - 158
  • [16] Cross-platform Qt-based implementation of low level GUI layer of ROOT
    Fine, VE
    NUCLEAR INSTRUMENTS & METHODS IN PHYSICS RESEARCH SECTION A-ACCELERATORS SPECTROMETERS DETECTORS AND ASSOCIATED EQUIPMENT, 2003, 502 (2-3): : 681 - 683
  • [17] Cross-platform approach to create the interactive applications based on ROOT and Qt GUI libraries
    Brun, R
    Fine, V
    Lauret, J
    Rademakers, F
    NUCLEAR INSTRUMENTS & METHODS IN PHYSICS RESEARCH SECTION A-ACCELERATORS SPECTROMETERS DETECTORS AND ASSOCIATED EQUIPMENT, 2004, 534 (1-2): : 94 - 97
  • [18] Chouette: An Automated Cross-Platform UI Crawler for Improving App Quality
    Wong, Terrence
    2023 38TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING WORKSHOPS, ASEW, 2023, : 175 - 178
  • [19] Cross-platform product matching based on entity alignment of knowledge graph with raea model
    Liu, Wenlong
    Pan, Jiahua
    Zhang, Xingyu
    Gong, Xinxin
    Ye, Yang
    Zhao, Xujin
    Wang, Xin
    Wu, Kent
    Xiang, Hua
    Yan, Houmin
    Zhang, Qingpeng
    WORLD WIDE WEB-INTERNET AND WEB INFORMATION SYSTEMS, 2023, 26 (04): : 2215 - 2235
  • [20] Cross-platform product matching based on entity alignment of knowledge graph with raea model
    Wenlong Liu
    Jiahua Pan
    Xingyu Zhang
    Xinxin Gong
    Yang Ye
    Xujin Zhao
    Xin Wang
    Kent Wu
    Hua Xiang
    Houmin Yan
    Qingpeng Zhang
    World Wide Web, 2023, 26 : 2215 - 2235