Font Size: a A A

Uml Model-based Test Case Generation Methods And Tools

Posted on:2008-07-06Degree:MasterType:Thesis
Country:ChinaCandidate:H ChenFull Text:PDF
GTID:2208360212986539Subject:Computer technology
Abstract/Summary:PDF Full Text Request
Test case design and generation is one key and challenging problem in software testing technology, which essence is how to develop effective test cases based on software specifications. Recently with the maturity and popularity of OO technology, testing based on UML has become an active topic, with some significant results achieved.Aimed to the interactive characteristics of most large complex software systems, this research is devoted to the study of test case design and generation method based on UML activity model. Also a supporting tool is implemented which integrated with Rational Rose.First of all, this paper gives a simple introduction of UML and model-based testing technology, points out advantages of applying UML models to direct testing, then analyzes all kinds of UML models, their testability and test strategy. During the study, we find that, thanks to the capability of describing system workflow and parallel activities, UML activity diagram is not only a powerful model in requirement analysis and design, it can also be an important basis for software testing.Based on above analysis, this paper is focused on the approach of test case generation based on UML activity model. Related definition and technology are brought out such as test case and test scenario, then the test case generation strategy is put forward, which consists of the generation of scenarios based on the control flows of activity model and the generation of basic test data for the input of activities. In test scenario generation part, the methods of dealing with object flow and synchronized modules are presented in order to get a structuralized model. In the test data generation part, test profile is defined in order to describe test related information such as input/output data. An improved cycling method is also designed to solve the test data combination problem.In addition, this paper gives a pilot study on test script design and generation method based on UML activity model. After the compare of several kind common scripts, the data-driven test script is chosen as the target, and a basic strategy of test script generation is presented.Finally, the design and implementation of the UML-activity-model-based test case generation tool is introduced. This tool provides the functionality of test profile definition,automated test outline and test case generation. A platform is also provided for management of test outlines and test cases.
Keywords/Search Tags:Software Testing, Automated Test Case Generation, UML Model, Test Scenario, Test Profile
PDF Full Text Request
Related items