Formal Test Generation from UML Models [chapter]

Didier Buchs, Luis Pedro, Levi Lúcio
2006 Lecture Notes in Computer Science  
In this paper we will explain our approach for generating test cases for a UML system model. Despite the fact that UML authors claim that UML semantics are precise enough to define non-ambiguous models, we find that the overlap of the different views makes it difficult to explore and make deduction on the state space of the modeled system in order to generate test cases. Our approach is thus based on a subset of UML (inspired from the Fondue approach) for which we have defined clear
more » ... on semantics. We provide these semantics by delineating transformation rules using MDA (Model Driven Architecture) architecture as foundation. We transform UML models into CO-OPN (Concurrent Object Oriented Petri Nets) ones, CO-OPN being a formal specification language defined in our Laboratory. We have also defined a language for expressing test intentions for CO-OPN models. This language allows selecting interesting executions (tests cases) of a model by providing constraints over all possible traces of that model. By exploring the model's semantics with the tools we have built for our CO-OPN language we are able to generate test cases based on those test intentions. We are also able to partially eliminate redundancy in the produced test cases by finding equivalence classes in the model operation's inputs.
doi:10.1007/11808107_7 fatcat:aznwqm3rlfhrdf2oqh4lbdovri