This paper proposes a method to automatically generate system test cases from use cases. Within our method, we take use cases as source model that are represented by the use case modeling language USL. The target model for test cases is precisely specified using a modeling language named Test Case Specification Language (TCSL). Comparing with current approaches, generated test cases within our approach contain more detailed information including test steps, test objects within steps, actions of test objects, and test data. We focus on defining a transformation between the USL source model and the TCSL target model. We realized our method with a support tool based on the OCL solver of USE and the model transformation framework in Eclipse.
Design pattern is the most common form of object oriented software reuse. In object oriented domain driven design, a number of high-level patterns have been identified and applied for over a decade. However, no concrete design patterns for domain modeling in this method have been published in the literature. A primary challenge in defining these design patterns is how to express their form in a way that eases their application to a specific domain that uses a specific object oriented programming platform. In this work, we propose a set of concrete design patterns, whose form is expressed in a domain class modeling language (DCML). DCML is based on UML and uses implementation-aware meta-attributes to define design metadata. We extend this language with new meta-attributes to support the proposed design patterns. Further, we discuss how domain-specific examples of these patterns are translated to physical class models for automatically generating software prototypes.