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
基金
中国国家自然科学基金;
关键词
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 条
  • [1] Mosaic: Cross-Platform User-Interaction Record and Replay for the Fragmented Android Ecosystem
    Halpern, Matthew
    Zhu, Yuhao
    Peri, Ramesh
    Reddi, Vijay Janapa
    2015 IEEE International Symposium on Performance Analysis and Software (ISPASS), 2015, : 215 - 224
  • [2] OHT: Open and cross-platform GUI testing
    Mateo Navarro, Pedro Luis
    Sevilla Ruiz, Diego
    Martinez Perez, Gregorio
    JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2017, 32 (05) : 3231 - 3243
  • [3] WxWindows, an intuitive cross-platform GUI framework
    Moreno, C.
    C/C++ Users Journal, 2001, 19 (05):
  • [4] SHADOW: A cross-platform GUI middleware for home devices
    Kwon, Bomjun
    Yoon, Sungho
    Ahn, Youngki
    Jung, Hyung-Won
    Seo, Jangseok
    2007 4TH IEEE CONSUMER COMMUNICATIONS AND NETWORKING CONFERENCE, VOLS 1-3, 2007, : 906 - 910
  • [5] Cross-platform GUI for Educational Microcomputer Designed in Qt
    Mezei, Ivan
    2017 IEEE EAST-WEST DESIGN & TEST SYMPOSIUM (EWDTS), 2017,
  • [6] Automated Cross-Platform GUI Code Generation for Mobile Apps
    Chen, Sen
    Fan, Lingling
    Su, Ting
    Ma, Lei
    Liu, Yang
    Xu, Lihua
    2019 IEEE 1ST INTERNATIONAL WORKSHOP ON ARTIFICIAL INTELLIGENCE FOR MOBILE (AI4MOBILE '19), 2019, : 13 - 16
  • [7] Cross-platform Product Matching Based on Knowledge Graph
    Liu, Wenlong
    Pan, Jiahua
    Zhang, Xingyu
    Gong, Xinxin
    Ye, Yang
    Zhao, Xujin
    Wang, Xin
    Wu, Kent
    Xiang, Hua
    Zhang, Qingpeng
    WEB AND BIG DATA. APWEB-WAIM 2022 INTERNATIONAL WORKSHOPS, KGMA 2022, SEMIBDMA 2022, DEEPLUDA 2022, 2023, 1784 : 45 - 48
  • [8] A Distributed, Cross-Platform Automation Testing Framework for GUI-Driven Applications
    Yao, Yepeng
    Wang, Xuren
    PROCEEDINGS OF 2012 2ND INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND NETWORK TECHNOLOGY (ICCSNT 2012), 2012, : 723 - 726
  • [9] A Rapier Loom HMI System Based on an Easy Cross-platform GUI Software
    Gao, Mingyu
    Wang, Weihuan
    Zeng, Yu
    He, Zhiwei
    Gao, Cong
    PROCEEDINGS OF 2016 SIXTH INTERNATIONAL CONFERENCE ON INSTRUMENTATION & MEASUREMENT, COMPUTER, COMMUNICATION AND CONTROL (IMCCC 2016), 2016, : 874 - 878
  • [10] A Model-Driven Framework for Android Supporting Cross-Platform GUI Development
    Ali, Arsalan
    Rashid, Muhammad
    Azam, Farooque
    Rasheed, Yawar
    Anwar, Muhammad Waseem
    2021 IEEE NATIONAL COMPUTING COLLEGES CONFERENCE (NCCC 2021), 2021, : 1027 - +