A Language for Test Case Refinement in the Test Template Framework
نویسندگان
چکیده
Model-based testing (MBT) generates test cases by analysing a formal model of the system under test (SUT). In many MBT methods, these test cases are too abstract to be executed. Therefore, an executable representation of them is necessary to test the SUT. So far, the MBT community has focused on methods that automate the generation of test cases, but less has been done in making them executable. In this paper we propose a language to specify rules that can be automatically applied to produce an executable representation of test cases generated by the Test Template Framework (TTF), a MBT method for the Z notation. 1 The Process of Model-Based Testing Model-based testing (MBT) is a well-known technique aimed at testing software by analysing a formal model or specification of the system under test (SUT) [1, 2]. These techniques have been developed and applied to models written in different formal notations such as Z [3], finite state machines and their extensions [4], B [5], algebraic specifications [6], and so on. The fundamental hypothesis behind MBT is that, as a program is correct if it satisfies its specification, then the specification is an excellent source of test cases. Figure 1 depicts a possible testing process when a MBT method is applied. So far, the MBT community has focused on the “Generation” step in which testers analyse a model of the SUT and generate test cases by applying different techniques. Test cases produced by the “Generation” step are abstract in the sense that they are written in the same language of the model, making them, in most of the MBT methods, not executable. In effect, during the “Refinement” step these abstract test cases are made executable by a process that can be called refinement, concretization or reification. Note that this not necessarily means that the SUT has been refined from the model; it only says that test cases must be refined. In fact, Hierons and others conclude that the relation between refinement and MBT is still a challenge that would have a very tangible benefit if solved [2]. Besides, test case refinement can require an effort equal to the 25% up to 100% of the time spent on modelling [1], so it is worth to automate this step
منابع مشابه
A Framework for Specification-Based Testing
Test templates and a test template framework are introduced as useful concepts in specification-based testing The framework can be defined using any model-based specification notation and used to derive tests from model-based specificationsin this paper, it is demonstrated using the Z notation. The framework formally defines test data sets and their relation to the operations in a specification...
متن کاملInterpreting the Validity of a High-Stakes Test in Light of the Argument-Based Framework: Implications for Test Improvement
The validity of large-scale assessments may be compromised, partly due to their content inappropriateness or construct underrepresentation. Few validity studies have focused on such assessments within an argument-based framework. This study analyzed the domain description and evaluation inference of the Ph.D. Entrance Exam of ELT (PEEE) sat by Ph.D. examinees (n = 999) in 2014 in Iran....
متن کاملUsing {log} as a Test Case Generator for Z Specifications
The Test Template Framework (TTF) is a model-based testing method for the Z notation, a formal specification language based on first-order logic and set theory. In the TTF, test cases are generated from test specifications, which are predicates written in Z. In this paper we show how {log} can be applied as a test case generator for the TTF. {log} is a Constraint Logic Programming language that...
متن کاملScenario-based Component Testing Using Embedded Metadata
We present an approach for the use case and scenario-based testing of software components. Use cases and scenarios are applied to describe the functional requirements of a software system. In our approach, a test is defined as a formalized and executable description of a scenario. Tests are derived from use case scenarios via continuous refinement. The use case and test information can be assoc...
متن کاملLong-term Utilization of Interaction by Young EFL Learners: The Effects of Strategy Training
The bulk of research within the interactionist framework seems to be consensually pointing to the beneficial effects of interaction in SLA. However, few studies have investigated the role of training in providing and perceiving interactional feedback, especially among young learners. This study probed the effects of training prior to engagement in interaction in case of young learners acquiring...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011