Grey-box GUI Testing: Efficient Generation of Event Sequences

TitleGrey-box GUI Testing: Efficient Generation of Event Sequences
Publication TypeJournal Articles
Year of Publication2012
AuthorsArlt S, Banerjee I, Bertolini C, Memon AM, Schäf M
JournalarXiv:1205.4928
Date Published2012/05/22/
Keywords68N30, Computer Science - Software Engineering
Abstract

Graphical user interfaces (GUIs), due to their event driven nature, present a potentially unbounded space of all possible ways to interact with software. During testing it becomes necessary to effectively sample this space. In this paper we develop algorithms that sample the GUI's input space by only generating sequences that (1) are allowed by the GUI's structure, and (2) chain together only those events that have data dependencies between their event handlers. We create a new abstraction, called an event-dependency graph (EDG) of the GUI, that captures data dependencies between event handler code. We develop a mapping between EDGs and an existing black-box user-level model of the GUI's workflow, called an event-flow graph (EFG). We have implemented automated EDG construction in a tool that analyzes the bytecode of each event handler. We evaluate our "grey-box" approach using four open-source applications and compare it with the current state-of-the-art EFG approach. Our results show that using the EDG reduces the number of test cases while still achieving at least the same coverage. Furthermore, we were able to detect 2 new bugs in the subject applications.

URLhttp://arxiv.org/abs/1205.4928