arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2308.06657cs.SE
收藏

迈向高效录制重放:微信案例研究

Towards Efficient Record and Replay: A Case Study in WeChat

Sidong Feng, Haochuan Lu, Ting Xiong, Yuetang Deng, Chunyang Chen

AI总结:

针对微信重放工具等待时间难以平衡效率与有效性的问题,提出基于图像的轻量工具WeReplay,通过深度学习模型动态判断GUI渲染状态以调整事件间隔,在23个场景中实现跨设备高效重放,识别精度达92.1%。

摘要:

微信(WeChat)是一款拥有超10亿月活跃用户的主流即时通讯应用,其功能复杂,需要有效的应用质量保障机制。录制重放(record-and-replay)工具是实现该目标的关键。尽管这类工具已得到广泛开发,但重放事件间等待时间的影响在很大程度上被忽视了。一方面,为在完全渲染的GUI上执行重放事件设置较长等待时间会拖慢流程;另一方面,过短的等待时间会导致事件在部分渲染的GUI上执行,降低重放有效性。最优等待时间需在有效性和效率间取得平衡。我们提出WeReplay,这是一种轻量级的基于图像的方法,可根据GUI渲染状态动态调整事件间隔时间。基于GUI的实时流数据,WeReplay采用深度学习模型推断渲染状态,并与重放工具同步,在GUI完全渲染时调度下一个事件。我们的评估显示,该模型在微信应用中识别GUI渲染状态的精度达92.1%,召回率达93.3%。通过在23个常见微信使用场景中评估重放性能,WeReplay在同设备和跨设备上均成功重放所有场景,且效率优于当前业界最优基线。

英文摘要:

WeChat, a widely-used messenger app boasting over 1 billion monthly active users, requires effective app quality assurance for its complex features. Record-and-replay tools are crucial in achieving this goal. Despite the extensive development of these tools, the impact of waiting time between replay events has been largely overlooked. On one hand, a long waiting time for executing replay events on fully-rendered GUIs slows down the process. On the other hand, a short waiting time can lead to events executing on partially-rendered GUIs, negatively affecting replay effectiveness. An optimal waiting time should strike a balance between effectiveness and efficiency. We introduce WeReplay, a lightweight image-based approach that dynamically adjusts inter-event time based on the GUI rendering state. Given the real-time streaming on the GUI, WeReplay employs a deep learning model to infer the rendering state and synchronize with the replaying tool, scheduling the next event when the GUI is fully rendered. Our evaluation shows that our model achieves 92.1% precision and 93.3% recall in discerning GUI rendering states in the WeChat app. Through assessing the performance in replaying 23 common WeChat usage scenarios, WeReplay successfully replays all scenarios on the same and different devices more efficiently than the state-of-the-practice baselines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑