arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.08164cs.SE
收藏

基于布局和可视化GUI测试框架的脆弱性--基于混合移动应用的评估研究

Fragility of Layout-Based and Visual GUI Test Scripts: An Assessment Study on a Hybrid Mobile Application

Riccardo Coppola, Luca Ardito, Marco Torchiano

摘要:

内容:尽管混合移动应用程序的自动GUI测试存在不同的方法,但开发人员似乎并不普遍采用这种做法。这种低扩散的一个可能原因是技术的脆弱性,即当应用程序的GUI发生变化时,经常需要维护测试用例。目标:在本文中,我们对混合移动应用程序的测试用例所需的维护以及相关的脆弱性原因进行了评估。研究方法:我们评估了一个小的测试套件与布局为基础的测试工具(Appium)和一个视觉(EyeAutomate),并观察测试过程中所需的变化与GUI的app. Results:我们发现,20%的布局为基础的测试方法和30%的视觉测试方法至少要修改一次,并在3-4%的测试方法,每个版本引起的脆弱性。结论:GUI测试的脆弱性会导致大型应用程序测试套件的相关维护工作。脆弱性的几个主要原因已被确定为测试的混合应用程序,并从中推导出开发人员的指导方针。

英文摘要:

Context: Albeit different approaches exist for automated GUI testing of hybrid mobile applications, the practice appears to be not so commonly adopted by developers. A possible reason for such a low diffusion can be the fragility of the techniques, i.e. the frequent need for maintaining test cases when the GUI of the app is changed. Goal: In this paper, we perform an assessment of the maintenance needed by test cases for a hybrid mobile app, and the related fragility causes. Methods: We evaluated a small test suite with a Layout-based testing tool (Appium) and a Visual one (EyeAutomate) and observed the changes needed by tests during the co-evolution with the GUI of the app. Results: We found that 20% Layout-based test methods and 30% Visual test methods had to be modified at least once, and that each release induced fragilities in 3-4% of the test methods. Conclusion: Fragility of GUI tests can induce relevant maintenance efforts in test suites of large applications. Several principal causes for fragilities have been identified for the tested hybrid application, and guidelines for developers are deduced from them.

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

↑