Harnessing automated test case generators for GUI testing in industry

C. Klammer, R. Ramler, H. Stummer. Harnessing automated test case generators for GUI testing in industry. pages 227-234, DOI 10.1109/SEAA.2016.60, 8, 2016.

Autoren
  • Claus Klammer
  • Rudolf Ramler
  • Heinz Stummer
BuchProceedings of the 42nd Euromicro Conference on Software Engineering and Advanced Applications (SEAA 2016)
TypIn Konferenzband
VerlagIEEE
DOI10.1109/SEAA.2016.60
ISBN978-1-5090-2819-1
Monat8
Jahr2016
Seiten227-234
Abstract

Modern graphical user interfaces (GUIs) are highly dynamic and support multi-touch interactions and screen gestures besides conventional inputs via mouse and keyboard. Hence, the flexibility of modern GUIs enables countless usage scenarios and combinations including all kind of interactions. From the viewpoint of testing, this flexibility results in a combinatorial explosion of possible interaction sequences. It dramatically raises the required time and effort involved in GUI testing, which brings manual exploration as well as conventional regression testing approaches to its limits. Automated test generation (ATG) has been proposed as a solution to reduce the effort for manually designing test cases and to speed-up test execution cycles. In this paper we describe how we successfully harnessed a state-of-the-art ATG tool (Randoop) developed for code-based API testing to generate GUI test cases. The key is an adapter that transforms API calls to GUI events. The approach is the result of a research transfer project with the goal to apply ATG for testing of human machine interfaces used to control industrial machinery. In this project the ATG tool was used to generate unit test cases for custom GUI controls and system tests for exploring navigation scenarios. It helped to increase the test coverage and was able reveal new defects in the implementation of the GUI controls as well as in the GUI application.