GUI Ripping: Reverse Engineering of Graphical User Interfaces for Testing

  • Authors:
  • Atif Memon;Ishan Banerjee;Adithya Nagarajan

  • Affiliations:
  • -;-;-

  • Venue:
  • WCRE '03 Proceedings of the 10th Working Conference on Reverse Engineering
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Graphical user interfaces (GUIs) are important parts oftoday's software and their correct execution is required toensure the correctness of the overall software. A populartechnique to detect defects in GUIs is to test them by executingtest cases and checking the execution results. Testcases may either be created manually or generated automaticallyfrom a model of the GUI. While manual testingis unacceptably slow for many applications, our experiencewith GUI testing has shown that creating a model that canbe used for automated test case generation is difficult.We describe a new approach to reverse engineer a modelrepresented as structures called a GUI forest, event-flowgraphs and an integration tree directly from the executableGUI. We describe "GUI Ripping", a dynamic process inwhich the software's GUI is automatically "traversed" byopening all its windows and extracting all their widgets(GUI objects), properties, and values. The extracted informationis then verified by the test designer and used to automaticallygenerate test cases. We present algorithms for theripping process and describe their implementation in a toolsuite that operates on Java and Microsoft Windows' GUIs.We present results of case studies which show that ourapproach requires very little human intervention and is especiallyuseful for regression testing of software that is modifiedfrequently. We have successfully used the "GUI Ripper"in several large experiments and have made it availableas a downloadable tool.