Title :
Automated Generation of Test Cases Using Model-Driven Architecture
Author :
Javed, A.Z. ; Strooper, P.A. ; Watson, G.N.
Author_Institution :
Univ. of Queensland, Brisbane
Abstract :
In this paper, we demonstrate a method that uses the model transformation technology of MDA to generate unit test cases from a platform-independent model of the system. The method we propose is based on sequence diagrams. First we model the sequence diagram and then this model is automatically transformed into a general unit test case model (an xUnit model which is independent of a particular unit testing framework), using model-to-model transformations. Then model-to-text transformations are applied on the xUnit model to generate platform- specific (JUnit, SUnit etc.) test cases that are concrete and executable. We have implemented the transformations in a prototype tool based on the Tefkat transformation tool and MOFScript. The paper gives details of the tool and the transformations that we have developed. We have applied the method to a small example (ATM simulation).
Keywords :
program testing; program verification; software architecture; model-driven architecture; model-to-model transformation; model-to-text transformation; sequence diagram; test case generation; Application software; Automatic testing; Concrete; Nuclear power generation; Programming; Prototypes; Software systems; Software testing; System testing; Unified modeling language;
Conference_Titel :
Automation of Software Test , 2007. AST '07. Second International Workshop on
Conference_Location :
Minneapolis, MN
Print_ISBN :
978-0-7695-2971-2