首页> 外文期刊>Software Testing, Verification and Reliability >Functional test generation from UI test scenarios using reinforcement learning for android applications
【24h】

Functional test generation from UI test scenarios using reinforcement learning for android applications

机译:使用加强学习的UI测试场景功能测试生成Android应用程序

获取原文
获取原文并翻译 | 示例
       

摘要

With the ever-growing Android graphical user interface (GUI) application market, there have been many studies on automated test generation for Android GUI applications. These studies successfully demonstrate how to detect fatal exceptions and achieve high coverage with fully automated test generation engines. However, it is unclear how many GUI functions these engines manage to test. The current best practice for the functional testing of Android GUI applications is to design user interface (UI) test scenarios with a non-technical and human-readable language such as Gherkin and implement Java/Kotlin methods for every statement of all the UI test scenarios. Writing tests for UI test scenarios is hard, especially when some scenario statements are high-level and declarative, so it is not clear what actions should the generated test perform. We propose the Fully Automated Reinforcement LEArning-Driven specification-based test generator for Android (FARLEAD-Android). FARLEAD-Android first translates the UI test scenario to a GUI-level formal specification as a linear-time temporal logic (LTL) formula. The LTL formula guides the test generation and acts as a specified test oracle. By dynamically executing the application under test (AUT), and monitoring the LTL formula, FARLEAD-Android learns how to produce a witness for the UI test scenario, using reinforcement learning (RL). Our evaluation shows that FARLEAD-Android is more effective and achieves higher performance in generating tests for UI test scenarios than three known engines: Random, Monkey and QBEa. To the best of our knowledge, FARLEAD-Android is the first fully automated mobile GUI testing engine that uses formal specifications.
机译:随着Android图形用户界面(GUI)的不断增长的应用市场,有很多关于Android GUI应用程序自动测试生成的研究。这些研究成功展示了如何检测致命的例外,并通过全自动测试发电引擎实现高覆盖率。但是,目前尚不清楚这些发动机可以测试多少GUI函数。 Android GUI应用程序功能测试的最佳做法是设计用户界面(UI)测试场景,其具有非技术和人类可读语言,例如Gherkin,并为所有UI测试方案的每个语句实现Java / Kotlin方法。 ui测试方案的写入测试很难,尤其是当某些方案语句是高级别和声明性时,因此不清楚生成的测试表现应该是什么操作。我们提出了用于Android(Farlead-Android)的全自动加固学习驱动的规范基于的测试发生器。 Farlead-Android首先将UI测试方案转换为GUI级正式规范作为线性时间时间逻辑(LTL)公式。 LTL公式指导测试生成,并充当指定的测试Oracle。通过动态执行Dest(AUT)的应用程序,并监视LTL公式,Farlead-Android使用强化学习(RL)来生成UI测试方案的见证人。我们的评估表明,Farlead-Android更有效,并且在为UI测试场景的测试中获得比三个已知的发动机的测试更高,以及随机,猴子和QBEA。据我们所知,Farlead-Android是第一个使用正式规格的全自动移动GUI测试引擎。

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号