Hybrid monkey testing: enhancing automated GUI tests with random test generation
Authors:
Open Access
- 4 September 2017
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 5-10
Abstract
Many software projects maintain automated GUI tests that are repeatedly executed for regression testing. Every test run executes exactly the same fixed sequence of steps confirming that the currently tested version shows precisely the same behavior as the last version. The confirmatory approach implemented by these tests limits their ability to find new defects. We therefore propose to combine existing automated regression tests with random test generation. Random test generation creates a rich variety of test steps that interact with the system under test in new, unexpected ways. Enhancing existing test cases with random test steps allows revealing new, hidden defects with little extra effort. In this paper we describe our implementation of a hybrid approach that enhances existing GUI test cases with additional, randomly generated interactions. We conducted an experiment using a mature, widely-used open source application. On average the added random interactions increased the number of visited application windows per test by 23.6% and code coverage by 12.9%. Running the enhanced tests revealed three new defects.Keywords
This publication has 6 references indexed in Scilit:
- A Framework for Monkey GUI Testing2016
- Automated Test Input Generation for Android: Are We There Yet? (E)2015
- TESTARInternational Journal of Information System Modeling and Design, 2015
- An orchestrated survey of methodologies for automated software test case generationJournal of Systems and Software, 2013
- Adaptive Random Testing: The ART of test case diversityJournal of Systems and Software, 2010
- GUI savvy end-to-end testing with smart monkeys2009