Learning user interface element interactions
Open Access
- 10 July 2019
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 296-306
Abstract
When generating tests for graphical user interfaces, one central problem is to identify how individual UI elements can be interacted with—clicking, long- or right-clicking, swiping, dragging, typing, or more. We present an approach based on reinforcement learning that automatically learns which interactions can be used for which elements, and uses this information to guide test generation. We model the problem as an instance of the multi-armed bandit problem (MAB problem) from probability theory, and show how its traditional solutions work on test generation, with and without relying on previous knowledge. The resulting guidance yields higher coverage. In our evaluation, our approach shows improvements in statement coverage between 18% (when not using any previous knowledge) and 20% (when reusing previously generated models).Keywords
Funding Information
- Deutsche Forschungsgemeinschaft (D514111409)
- European Research Council (G514111401)
This publication has 21 references indexed in Scilit:
- Covert Communication in Mobile Applications (T)2015
- Automated Test Input Generation for Android: Are We There Yet? (E)2015
- Code coverage for suite evaluation by developers2014
- Guided GUI testing of android apps with minimal restart and approximate learningACM SIGPLAN Notices, 2013
- Targeted and depth-first exploration for systematic testing of android appsACM SIGPLAN Notices, 2013
- Multi-armed Bandit Algorithms and Empirical Evaluation2005
- The Multi-Armed Bandit Problem: Decomposition and ComputationMathematics of Operations Research, 1987
- On the k-Armed Bernoulli Bandit: Monotonicity of the Total Reward under an Arbitrary Prior DistributionMathematische Operationsforschung und Statistik. Series Optimization, 1984
- Some aspects of the sequential design of experimentsBulletin of the American Mathematical Society, 1952
- ON THE LIKELIHOOD THAT ONE UNKNOWN PROBABILITY EXCEEDS ANOTHER IN VIEW OF THE EVIDENCE OF TWO SAMPLESBiometrika, 1933