Skip to Main Content
In this paper we present an extension of the previously reported model-based testing approach that is based on formal models and user-provided testing scenarios. In this approach, the user provides a testing scenario on the level of an abstract model. When the abstract model is refined to add or modify features, the corresponding testing scenarios are automatically refined to incorporate these changes. The resulting testing scenarios are unfolded into the test cases containing the required inputs and expected outputs. To automate this test case generation process, we provideguidelines for the formal development of system models. We use Event-B as our formal framework. We also propose a method for automatic generation of Java implementation templates for Event-B specifications. Moreover, the corresponding testing scenarios are translated into JUnit test cases.