With the growth of software scale and complexity, potentianl errors in software system become more increasing. Althouth programming language, programming model and software engeering having been developed stepwise and formal methods to program verification having been enhanced steadily, software testing is still major method to find software errors and significant way to ensure software quality. However, software testing is complicated and very expensive. If test task is accomplished manually, then it will hinder imperative enforce of software testing, and descend the efficiency of software testing. Moreover, test code accomplished manually hasn't assurance. Thus, automation of testing process will reduce devolopping cost, increase software reliability and improve software quality.Automatic test case generation is one of key issues of software testing. This paper takes the method and implementation of automatic cluster level test cases generation for object-oriented software as study issue. We present an approach to automatic cluster level test cases generation for object-oriented software. The proposed method takes UML sequence diagram as basis of test case generation. Firstly, corresponding information is extracted from UML sequence diagram to transform FSM. Then based on the spanning FSM, data flow analysis and control flow analysis are adopted to generate integration test cases for testing the behavior. The method completely based on UML, The generated test cases can fulfill adequately coverage requirement, and the algorithm are simple and efficient. The method realized automation of software tesing. |