Font Size: a A A

Cluster-level Test Case Generation Method Based On The Uml Model Class

Posted on:2010-12-14Degree:MasterType:Thesis
Country:ChinaCandidate:W KangFull Text:PDF
GTID:2208360278470094Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
Software testing is an important part of Software Engineering. With the development of software, software testing becomes more and more important. Design of test cases is the most important thing in the software testing. Test cases are the base safeguard of software quality. With the broadly use of the object oriented developing method, the object oriented software testing is getting more attention. The object oriented software features, such as encapsulation, inheritance, polymorphism and dynamic banding, makes the software testing more difficult than the traditional software testing.This paper bases on analyzed the object oriented software test method of cluster-level, and this paper presents an approach to automatic cluster-level test cases generation for object oriented software. The proposed method takes UML sequence diagram as basis of test cases generation, first, this paper presents an algorithm of generate the statecharts automatically from a single scenario. Each object's statecharts are generate by traversal all of the events. Then the incomplete statecharts are merge into an integrated one according to the series of rules defined by the relations among the scenarios. Then the single object's statecharts are merge into a system's statecharts which contains all objects by define synchronization restraint. In the end, the test path are obtain according to the system's state diagram using the chart traversal's algorithm, each test path is a test case of the integration testing.This method bases on UML. The generated test cases can fulfill adequately coverage requirement, and the algorithm are simple and efficient. This method realize automation of software testing. At last, a tool is developed for generating integration test cases base on this method. After this, an example is specialized in how the tool is used. It proved to be feasible.
Keywords/Search Tags:object-oriented software testing, test cases, cluster-level testing, sequence diagram, statechart
PDF Full Text Request
Related items