Research on Object-oriented Polymorphism Path and the Method to Generate Test Data

Author
ZuoZuoZuo
Advisor
ZengYi
School
Chongqing University
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2010
Downloads
40
Citations
0

Request the full text

Abstract

Software testing is an important means to ensure the quality of the software, which automatically generated test data testing stage is the most critical technology. Widely used in recent years, object-oriented (OO) technology, improve code reusability and enhanced procedural flexibility at the same time, due to its characteristics also makes traditional software testing technology has been unable to meet the requirements of modern software development technologies. Unified Modeling Language (UML) as a standard widely used system modeling language, easily expressed and powerful. Many object-oriented software testing is expanded around UML model, the study based on the UML model of software testing can make the test work from the early stages of the software development cycle. Particle swarm optimization algorithm is proposed in 1995 a by J.Kennedy and RCEberhart groups based adaptive search evolutionary algorithm. Its concept is simple, with fewer parameters, easy to implement, fast calculation, since it was proposed by the extensive attention of researchers around the world and is used in many fields. Some scholars try to particle swarm optimization algorithms and artificial intelligence technology used in software testing, and achieved a certain amount of research. Evolutionary algorithm search process, the algorithm for the exploration and exploitation capabilities alone an algorithm that often can not be effectively utilized. Therefore, the Metropolis criterion of simulated annealing algorithm is introduced into particle swarm optimization, simulated annealing - Particle Swarm fusion algorithm, the particles in the course of the flight, not only acceptable to the fitness of the objective function becomes superior \but also a certain degree of probability to accept the \In this paper, a UML model based on a multi-state expansion traversal path of the polymorphic test, and simulated annealing - particle swarm optimization algorithm to generate test data for the corresponding polymorphic test path, with examples detailed description of the complete implementation program, and automatic generation of test data in the design tool, the program verification. Polymorphism testing based on UML models, combined with polymorphism to extend the UML activity diagram and an optimization algorithm traverse from the extended UML activity diagrams fewer but high coverage test path set to effectively solve the problem of polymorphism testing object-oriented technology; Secondly, according to the requirements of automatic test data generation, the idea of ??simulated annealing algorithm to improve the Particle Swarm Optimization and improvement Particle Swarm Optimization algorithm is applied to software testing, generate test data for the generated test path. Finally, a path to automatic test data generation tool, demonstrates its specific procedures for instance, and generate the results of the data analysis. The analysis results show that after the insertion of the source code, the tool based on simulated annealing - particle swarm optimization algorithm to generate a set of test data to automatically generate test data for the target path.

Table of contents

Chinese Abstract 3-4 English summary 4-8 1 Introduction 8-13 1.1 research background 8-9 1.1.1 object-oriented software testing 1.1.2 UML modeling techniques 8-9 1.1.3 test data automatically generated technical the 1.2 research status and the main problems 9-11 1.3 In this paper, the research and work 11 1.4 In this paper, the organizational arrangements 11-13 the object-oriented software testing foundation 13-23 2.1 object-oriented software testing 13-16 2.1.1 Overview of object-oriented 13-14 2.1.2 test object-oriented three mechanisms 14-15 2.1.3 object-oriented software testing 15-16 2.2 UML model-based software testing 16-19 2.2.1 UML Overview 16 2.2.2 UML main view analysis 16-17 2.2.3 UML diagram in object-oriented software testing 17-18 2.2.4 UML model advantage in the software testing 18-19 2.3 Path-based software testing 19-20 2.3.1 path testing problem described 19-20 2.3.2 path testing coverage criteria 20 2.4 path test data automatically generated 20-22 2.5 This chapter Summary 22-23 3 generated polymorphic UML-based optimization test path 23-32 3.1 UML model 23-25 3.1.1 UML class diagram 23-24 3.1.2 UML activity diagram 24-25 3.2 object-oriented polymorphism introduced 25-26 3.3 polymorphic test path generation algorithm 26-28 3.4 instance validation 28-31 3.5 This chapter Summary 31-32 4 test data generation method based on the path of the SA-PSO 32-50 4.1 standard particle swarm optimization algorithm 32-35 4.1.1 Particle Swarm Optimization algorithm principle 32 4.1.2 standard particle swarm optimization algorithm 32-33 4.1.3 particle swarm optimization algorithm parameters and set 33-34 4.1.4 particle swarm optimization algorithm application 34-35 4.2 PSO algorithm is applied to the test data automatically generated 35-37 4.2.1 PSO algorithm with other algorithms 35-36 4.2.2 PSO algorithm is applied to the test data automatically generated 36-37 4.3 simulated annealing algorithm 37-40 the idea of ??4.3.1 simulated annealing algorithm 37-39 4.3.2 simulated annealing algorithm steps 39-40 4.4 automatic generation of test data based on the path of the SA-PSO 40-49 4.4.1 SA-PSO algorithm 40-46 4.4.2 SA-PSO generates path test data algorithm 46-47 4.4.3 Experimental results 47-49 4.5 of this chapter Summary 49-50 5 object-oriented software test data generation tool automatically 50-63 5.1 System Tools framework 50-51 5.2 System Tools demo 51-58 5.3 Analysis of 58-62 5.4 This chapter Summary 62-63 6 Summary and further work 63-64 6.1 summarizes 63 6.2 further work 63-64 Acknowledgements 64-65 the References 65-68 Appendix 68 the papers directory published by A. of study for a degree during 68 B. project work 68

Related dissertations

  1. The Relationship between the Company Social Responsibility and Profitability: Take the Listed Manufacturing Companies as an Example
    HuRui ·Hunan University of Technology ·2013 ·Master's thesis
  2. Research on Hyperspectral Remote Sensing Image Classification Based on LS-SVM
    GuoXueLan ·Central South University ·2013 ·Master's thesis
  3. Research on Obstacle Avoidance Planning and Trajectory Tracking for Deicing Robot on Transmission Lines
    ChenYanJie ·Hunan University ·2013 ·Master's thesis
  4. Research and Application of Interval Optimization Algorithm
    FangShaoChun ·Northeastern University ·2012 ·Master's thesis
  5. Research on Trading Agent SCM Model and Optimization Method
    ZhouJinYuan ·Harbin Engineering University ·2013 ·Master's thesis
  6. Research and Application on Particle Swarm Optimization Multi-objective Evolutionary Algorithm
  7. Cross-iteration Particle Swarm Optimization and Its Application in Combination Auction
    ZhiDongSheng ·Harbin Institute of Technology ·2013 ·Master's thesis
  8. Research on Risk Assessment of Real Estate Investment Based on the Improvement PSO-BP
    OuWei ·Hebei University of Engineering ·2013 ·Master's thesis
  9. Research and Application of a Hybrid Dynamic Multi-swarm PSO Algorithm with Nelder-Mead Simplex Method
    XiangYi ·Guangzhou University ·2013 ·Master's thesis
  10. Improved particle swarm optimization algorithm
    DiJinTao ·Shaanxi Normal University ·2013 ·Master's thesis
  11. Study on Resources Scheduling Based on ACO Algorithm and PSO Algorithm in Cloud Computing
    WenXiaoTang ·Jiangxi Normal University ·2013 ·Master's thesis
  12. Based on Particle Swarm Optimization and Taboo Search Algorithms Solving Job Shop Scheduling Optimization Problems
    LiYanPeng ·Dalian Jiaotong University ·2013 ·Master's thesis
  13. Research on Demand Forecasting of Coal Port Spare Parts Based on LS-SVM
    FuZan ·Yanshan University ·2013 ·Master's thesis
  14. Study on the Calculation of Economic Dispatch of Power System Based on Improved Particle Swarm Optimization Algorithm
  15. Particle Swarm Optimization Based Dynamic Optimization Research
    ZhouYou ·Zhejiang University ·2014 ·Master's thesis
  16. Generalized Predictive Control Based on Particle Swarm Optimization and Differential Evolution
    WuMiMi ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  17. The Research of Dynamic Resource Management Key Technologies in Cloud Computing
    FanYing ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  18. Offline particle swarm algorithm and support vector machine Chinese characters recognition based on the study of handwritten
    ChenYongChun ·Tianjin Normal University ·2013 ·Master's thesis
  19. Research on3D Scene Reconstruction Technique Based on Multiple View
    LiJing ·Guangdong University of Technology ·2013 ·Doctoral dissertation
  20. A Study on Feature Selection Algorithm Based on SVM-RFE and Particle Swarm Optimization
    XuLu ·Hunan Normal University ·2014 ·Master's thesis