期刊
SYMMETRY-BASEL
卷 13, 期 2, 页码 -出版社
MDPI
DOI: 10.3390/sym13020310
关键词
android; GUI Testing; test case generation; reinforcement learning; Q-learning
资金
- University of Malaya [RP061E-18SBS, IF024-2018]
- European Commission under the Erasmus plus [586297-EPP-1-2017-1-EL-EPPKA2-CBHE-JP]
Android applications provide benefits in terms of functionalities and user interfaces, but crashes can negatively impact user experience and ratings. Testing is crucial in avoiding crashes, with existing tools often limited in finding the right action combinations. The Q-Learning-based test coverage approach in DroidbotX outperforms other tools in generating GUI test cases for Android applications.
Android applications provide benefits to mobile phone users by offering operative functionalities and interactive user interfaces. However, application crashes give users an unsatisfactory experience, and negatively impact the application's overall rating. Android application crashes can be avoided through intensive and extensive testing. In the related literature, the graphical user interface (GUI) test generation tools focus on generating tests and exploring application functions using different approaches. Such tools must choose not only which user interface element to interact with, but also which type of action to be performed, in order to increase the percentage of code coverage and to detect faults with a limited time budget. However, a common limitation in the tools is the low code coverage because of their inability to find the right combination of actions that can drive the application into new and important states. A Q-Learning-based test coverage approach developed in DroidbotX was proposed to generate GUI test cases for Android applications to maximize instruction coverage, method coverage, and activity coverage. The overall performance of the proposed solution was compared to five state-of-the-art test generation tools on 30 Android applications. The DroidbotX test coverage approach achieved 51.5% accuracy for instruction coverage, 57% for method coverage, and 86.5% for activity coverage. It triggered 18 crashes within the time limit and shortest event sequence length compared to the other tools. The results demonstrated that the adaptation of Q-Learning with upper confidence bound (UCB) exploration outperforms other existing state-of-the-art solutions.
作者
我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。
推荐
暂无数据