Skip to main content
QUICK REVIEW

[Paper Review] Grey-box GUI Testing: Efficient Generation of Event Sequences

Stephan Arlt, Ishan Banerjee|arXiv (Cornell University)|May 22, 2012
Software Testing and Debugging TechniquesComputer Science29 references13 citations
TL;DR

This paper proposes a grey-box GUI testing approach that combines a black-box event-flow graph (EFG) with a white-box event-dependency graph (EDG) to generate efficient, data-dependent event sequences. By analyzing bytecode to model data dependencies between event handlers and mapping them to the EFG, the method reduces test suite size while maintaining coverage and detecting two new bugs in open-source applications.

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.

Motivation & Objective

  • To address the challenge of combinatorial explosion in GUI test case generation by reducing the number of irrelevant or infeasible event sequences.
  • To improve test efficiency and effectiveness by incorporating data dependencies between event handlers into the test generation process.
  • To detect previously unknown bugs by generating more targeted and semantically meaningful test sequences.
  • To bridge the gap between black-box GUI modeling and white-box code analysis for more precise test case generation.

Proposed method

  • Construct an event-flow graph (EFG) using runtime observation to model the structural constraints of GUI workflows.
  • Analyze the application’s bytecode to automatically build an event-dependency graph (EDG) that captures data flows between event handlers.
  • Model data dependencies as weighted edges in the EDG, where weights represent the number of fields transferred between handlers.
  • Generate abstract event sequences via minimax search on the EDG to prioritize sequences with data dependencies.
  • Map abstract sequences from the EDG to executable sequences using the EFG to ensure structural feasibility.
  • Integrate the resulting executable sequences into test cases, ensuring both structural validity and data dependency chaining.

Experimental results

Research questions

  • RQ1Can a grey-box approach that models data dependencies between event handlers reduce the number of generated test sequences while maintaining coverage?
  • RQ2How does the integration of an event-dependency graph (EDG) with an event-flow graph (EFG) improve test suite efficiency?
  • RQ3To what extent can the EDG-based method detect new or previously missed bugs in GUI applications?
  • RQ4Can the method identify and prioritize 'hot spot' events with high inter-procedural data dependency?

Key findings

  • The EDG-based approach reduced the number of generated event sequences compared to the EFG-only black-box approach, improving efficiency.
  • The method achieved at least the same test coverage as the EFG approach while generating fewer test cases.
  • Two new bugs were detected in the subject applications—one in Rachota and one in JabRef—demonstrating improved fault detection.
  • The approach effectively chains only data-dependent events, avoiding infeasible or semantically irrelevant sequences.
  • The use of minimax search on the EDG enabled focused exploration of high-impact, data-dependent paths in the GUI.
  • The combination of EFG and EDG modeling allows for scalable, precise, and effective GUI test case generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.