共 41 条
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
相关论文