Implementing and Applying the Stocks-Carrington Framework for Model-Based Testing Maximiliano Cristi´a and Pablo Rodr´ ıguez Monetti 1 Flowgate Consulting 2 CIFASIS-CONICET 3 FCEIA, Universidad Nacional de Rosario {mcristia,prodriguez}@flowgate.net Abstract. In this paper we describe the functional features and the architecture of a tool implementing the Stocks-Carrington framework (TTF) for model based testing (MBT). The resulting prototype, called Fastest, makes it easy to generate test cases from Z specifications. We not only apply the ideas of the referred framework but we also use a technique based on finite models to find test cases, which has proved to increase the level of automation during the whole testing process. The paper also discusses problems and challenges that have appeared during the development of the tool, and introduces real case studies and an analysis of the results obtained so far. 1 Introduction Current industrial practice in software testing is mostly manual: test template 4 definition, test case derivation and the determination of success or failure are all manual, tedious, resource consuming and error prone activities. These activities make poor use of software engineers’ skills, changing analytical tasks for a repet- itive manual work. Within this picture many software development companies seldom perform serious testing of their programs. In this paper we introduce a tool, called Fastest [1], which automates test suite definition and test case derivation for unit testing, by applying the Test Template Framework (TTF) proposed by Stocks and Carrington [2–4] for model-based testing (MBT). The main contributions of the paper are: (a) a flexible, efficient and automatic implementation of the TTF which, as far as we have investigated, does not exist yet; (b) the implementation of a technique to automatically derive abstract test cases from test objectives, which was not originally proposed by Stocks and Carrington; and (c) an analysis of the application of Fastest to two industrial- strength case studies and several toy examples. Since this paper is about MBT we will shortly introduce this technique; for a deeper presentation the reader may consult [5]. In order to test a program 4 Test templates are also called test classes or test objectives ; we will use all of them as synonymous.