Font Size: a A A

Design And Implementation Of The Software Automatic Testing Tool Based On Code Generation

Posted on:2011-05-26Degree:MasterType:Thesis
Country:ChinaCandidate:F TanFull Text:PDF
GTID:2218330362457521Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Domestic software enterprises have gradually evolved from the previous workshop-style operation to the today's factory-style operation. Consequently the management of software projects has become increasingly standardized. Software testing is an important part of the software engineering and an absolutely necessary link in software development. With the expansion of software scale, it becomes increasingly difficult to assure the high quality of software. The cost proportion of software testing in one project is on the rise. More and more importance has been placed on software testing and its cost, however, on the other hand, excellent testing engineers are scarce. Therefore, using automatic unit testing tools to help project team do a comprehensive test for all the system modules at an early stage will become a breakthrough for lowering the cost of testing and improving the quality.The technology of computational reflection, the technology of code generation based on templates, and the technology of code generation based on model driven are researched and analyzed. On this basis, a method that implements the automatic testing tool using the template-based code generation is proposed. The tool has the feature of versatility, scalability, ease of use and so on. On the foundation of particularly analyzed in the requirements of automatic software testing tool, the system architecture design, the user interface design, and the detailed design of all the modules have been described. The design and implementation of the code analyzer module and the code generator module are focused. The blueprint described using UML and the important source codes are given.The designed and implemented Eclipse Automatic Testing Tool can be seamlessly integrated into the mainstream development platform Eclipse. Code generator module can automatically generate the JUnit test script source codes according to the various kinds of templates, which are corresponding to the methods with return values and the ones without return values. So the Eclipse Automatic Testing Tool has good versatility. Domestic research on automatic testing is still in its infancy stage. Therefore the design and implementation of the automatic testing tool based on code generation has a high reference value on the further development of software automatic testing field.
Keywords/Search Tags:Software Testing, Automatic Testing, Code Generation, Computational Reflection
PDF Full Text Request
Related items