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

Request the full text

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

  1. The Layout Optimization Study for Civil Aircraft Cockpit Ergonomics Design
  2. Research on Web Service Testing Model and Testing Approach Based on Agent
    LiuShengLan ·Hunan University ·2011 ·Master's thesis
  3. Object-Oriented Software Testing Method and Application in Composite Explosives Detection System
  4. The Research and Design of Test Case Generation Tool Based on Constraint Programming
  5. Digital Voice Teaching System Design and Implementation of Object-Oriented Programming
    HuZuoZuo ·Hunan University ·2011 ·Master's thesis
  6. Research on Testing Model and Automated Testing of Web Application
    ChenJiangYong ·Fujian Normal University ·2012 ·Master's thesis
  7. Research on Software Test Module of Lead-free Solder Paste Printed Equipment
  8. Research and Application on Unit Testing Technology for Object Oriented Program by CppUnit
  9. Testing for Selecting Atm Equipments Based on Event-Driven
  10. N3806Mobile Phone Black Box Testing Management and Method
  11. Test Case Generation Model Based on Bayesian Network and Genetic Algorithms
    LiXin ·Chongqing Jiaotong University ·2012 ·Master's thesis
  12. Nuclear power software testing research based on local continuity
    LiuLiNa ·Nanhua University ·2013 ·Master's thesis
  13. Test Case Generation and Management
  14. Website Design and Implementation of Mobile Phone Sales
  15. The Design and Implementation of Software Testing Architecture of Wireless Sensor Networks
  16. Research on Analysis and Testing Techniques of Object-Oriented Programs
  17. Research on Test Data Automatic Generation
    ShiLiang ·Southeast University ·2006 ·Doctoral dissertation
  18. Research and Implementation of Testing Techniques for UML
  19. Study on the Techniques for Testing Client/Server Software System
    LiXiaoJiang ·Northwestern Polytechnical University ·2002 ·Doctoral dissertation
  20. Object - oriented software testing research
    YaoZuo ·Zhejiang University ·2002 ·Doctoral dissertation