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

效率至关重要:利用GUI渲染推理加速自动化测试

Efficiency Matters: Speeding Up Automated Testing with GUI Rendering Inference

Sidong Feng, Mulong Xie, Chunyang Chen

摘要:

由于Android应用程序质量保证的重要性,许多自动化GUI测试工具已经开发出来。虽然测试算法得到了改进,但GUI渲染的影响却被忽略了。一方面,在完全呈现的GUI上设置一个很长的等待时间来执行事件会减慢测试过程。另一方面,设置较短的等待时间将导致事件在部分渲染的GUI上执行,这会对测试有效性产生负面影响。一个最佳的轮候时间,应该在效益和效率之间取得平衡。我们提出了AdaT,一个轻量级的基于图像的方法来动态调整事件间的时间基于GUI渲染状态。考虑到GUI上的实时流,AdaT提出了一个深度学习模型来推断渲染状态,并使用测试工具来调度GUI完全渲染时的下一个事件。评估表明,我们的方法的准确性,效率和有效性。我们还将我们的方法与现有的自动化测试工具相结合,以证明AdaT在覆盖更多活动和在完全呈现的GUI上执行更多事件方面的有用性。

英文摘要:

Due to the importance of Android app quality assurance, many automated GUI testing tools have been developed. Although the test algorithms have been improved, the impact of GUI rendering has been overlooked. On the one hand, setting a long waiting time to execute events on fully rendered GUIs slows down the testing process. On the other hand, setting a short waiting time will cause the events to execute on partially rendered GUIs, which negatively affects the testing effectiveness. An optimal waiting time should strike a balance between effectiveness and efficiency. We propose AdaT, a lightweight image-based approach to dynamically adjust the inter-event time based on GUI rendering state. Given the real-time streaming on the GUI, AdaT presents a deep learning model to infer the rendering state, and synchronizes with the testing tool to schedule the next event when the GUI is fully rendered. The evaluations demonstrate the accuracy, efficiency, and effectiveness of our approach. We also integrate our approach with the existing automated testing tool to demonstrate the usefulness of AdaT in covering more activities and executing more events on fully rendered GUIs.

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

↑