Traditionally, finite state machines and their extensions, such as stream X-machines, have been used for modelling and testing of graphical user interfaces (GUI) and for acceptance testing. This paper shows how these testing techniques can be successfully extended to unit test generation for object-oriented systems and integrated into Extreme Programming in a simple and designer-friendly way. The approach has been used by MSc students in Computer Science at the Pitesti University to write JUnit tests for XP projects and the effectiveness of these tests has been compared with that of tests produced using ad-hoc and traditional functional methods. The conclusions show that over 90 % of the faults found by other methods have also been found by the stream X-machine based approach, whereas less than 75 % (in many instances less than half) of the faults uncovered by the stream X-machine based testing have been found by other methods. As the finite state machine based test generation has been automated, the time spent using the two testing strategies was roughly equal. © Springer-Verlag Berlin Heidelberg 2005.
CITATION STYLE
Ipate, F., & Holcombe, M. (2005). Using state diagrams to generate unit tests for object-oriented systems. In Lecture Notes in Computer Science (Vol. 3556, pp. 214–217). Springer Verlag. https://doi.org/10.1007/11499053_30
Mendeley helps you to discover research relevant for your work.