An Application Research of Genetic Algorithm and Method Dependence Graph in Class Testing
- Author
- ZhouRuiJie
- Advisor
- JiangGuoHua
- School
- Nanjing University of Aeronautics and Astronautics
- Major
- Computer Science and Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 12
- Citations
- 0
Abstract
With the rapid development-oriented the object software development technology, object-oriented programming, software testing has gradually become the main content of the current test. This article has done a detailed analysis of the traditional methods of software testing and genetic algorithms in test depth, on this basis, the method dependency graph and genetic algorithm in the class test. Class is different from the basic data types, traditional encoding genetic algorithm is no longer applicable to the class coding. This paper presents a method for the guarantee class methods between call reasonable encoding rules, the rules in tree form using method calls for the individuals in a population, it can be determined reasonable method calls between. Class with multiple inheritance, polymorphism, encapsulation features, for class-specific nature to be investigated further, mainly including the following aspects. Existing methods rely figure is not able to express multiple inheritance characteristics of the class, this article on dependency graph extension makes it possible to represent the inheritance relationship between classes, and gives guidance on such representation when the test case generation criteria. Instances of a class having a plurality of different states, and In order to achieve all the states in test coverage for instance, the use of state of the object model based on the state transition diagram represents tested and gives the method steps of the state model of the constructed object. The method receives the parameter for the object class and subclass instances can be passed as a parameter to the method, in the dependency graph indicates the need for such a situation, given this case test case generation criteria used to guide the test case generation. The use of genetic algorithms to generate test cases using the extended Hamming distance as the assessment method, in order to prevent the population prematurely into local optimal solution, the introduction of a \a good solution. The last part of the prototype tool automatically generate a class test cases for the C language, writing, and the generated test sequence is converted to C code fragment, re-use unit testing framework CppUnit perform in order to verify the results of the implementation and the expected use cases the consistency of the results proved that the method is effective and feasible.
Related dissertations
- The Layout Optimization Study for Civil Aircraft Cockpit Ergonomics Design
- Research on Web Service Testing Model and Testing Approach Based on Agent
- Object-Oriented Software Testing Method and Application in Composite Explosives Detection System
- The Research and Design of Test Case Generation Tool Based on Constraint Programming
- Digital Voice Teaching System Design and Implementation of Object-Oriented Programming
- Research on Testing Model and Automated Testing of Web Application
- Research on Software Test Module of Lead-free Solder Paste Printed Equipment
- Research and Application on Unit Testing Technology for Object Oriented Program by CppUnit
- Testing for Selecting Atm Equipments Based on Event-Driven
- N3806Mobile Phone Black Box Testing Management and Method
- Test Case Generation Model Based on Bayesian Network and Genetic Algorithms
- Nuclear power software testing research based on local continuity
- Test Case Generation and Management
- Website Design and Implementation of Mobile Phone Sales
- The Design and Implementation of Software Testing Architecture of Wireless Sensor Networks
- Research on Analysis and Testing Techniques of Object-Oriented Programs
- Research on Test Data Automatic Generation
- Research and Implementation of Testing Techniques for UML
- Study on the Techniques for Testing Client/Server Software System
- Object - oriented software testing research