Previous [ 1] [ 2] [ 3] [ 4] [ 5] [ 6] [ 7] [ 8] [ 9] [ 10] [ 11] [ 12] [ 13] [ 14] [ 15] [ 16] [ 17] [ 18] [ 19]

@

Journal of Information Science and Engineering, Vol. 24 No. 5, pp. 1293-1307 (September 2008)

Integration of Specification-based and CR-based Approaches for GUI Testing*

Woei-Kae Chen, Zheng-Wen Shen and Tung-Hung Tsai
Department of Computer Science and Information Engineering
National Taipei University of Technology
Taipei, 106 Taiwan

CR (capture and replay) has been a widely accepted methodology for GUI testing. However, a deficiency of a CR-based approach is that test scripts can not be produced before an application under test (AUT) is correctly implemented, which excludes the possibility of doing test-driven development (TDD). An alternative is the specification- based approach, which defines GUI behaviors by using a GUI specification language. A specification-based approach is suitable for doing TDD. However, after the AUT is partially or fully implemented, the specification-based approach becomes less convenient than the CR-based approach, since capturing can be very useful in maintaining test scripts. In this paper, we propose the integration of the specification-based and CR- based approaches so as to incorporate both of their advantages. We define an event model which servers as the core of both the specification language and the capture/ replay mechanism. Based on this event model, we implement a GUI testing tool, called GTT, for Java applications. We show how to apply GTT in a TDD style for GUI testing and quantitatively report the benefits of the integration.

Keywords: GUI testing, test-driven development, test specification, capture/replay, Java

Full Text () Retrieve PDF document (200807_01.pdf)

Received July 24, 2006; revised November 23, 2006 & April 18, 2007; accepted January 10, 2008.
Communicated by Sy-Yen Kuo.
* This research was supported in partially by the National Science Council of Taiwan, R.O.C. under contract No. NSC 92-2218-E-027-017.