Font Size: a A A

A Method Of Automatic Generating Test Case Based On UML Activity Diagram

Posted on:2012-12-25Degree:MasterType:Thesis
Country:ChinaCandidate:C C SuFull Text:PDF
GTID:2218330338462966Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Currently, software testing is more and more important and test case design and generation are one key and challenging problem in software testing technology, whose 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.Aimed to the interactive charaeteristies of most software systems, this research is devoted to the study of test case design and generation method based on UML activity diagram. 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, and analyzes all kinds of UML models, their testability and test strategies, then points out that UML activity diagram is not only a powerful model in requirement analysis and design, but also an important basis for software testing.Based on the above analysis, this paper focuses on the methods of test case design and generation based on activity diagram and shows the strategy for generating test cases, including the transformation of activity control flow graph model and the processing of the cycle and concurrent in activity diagram. In terms of the transformation of activity control flow graph, this paper has proposed the concept of activity assistant graph and given the transformation rules. A basic sequential path coverage criterion is proposed to solve cycle in activity diagram. In dealing with concurrent activities, t-way combinatorial test coverage criterion has been proposed. At the same time, test data generation approach based on the relationship between input parameters has also been proposed.Finally, the design and implementation of the concurrent path generation tool PGT is introduced. Further more, the method is applied to a project to create abstract test cases.
Keywords/Search Tags:Software testing, UML model, Combinatorial testing, Test scenario, Test data
PDF Full Text Request
Related items