Research on Automatic Test Data Generation Based on Simple Particle Swarm Optimization

Author
ChenLinLing
Advisor
TangYan
School
Southwestern University
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2010
Downloads
54
Citations
2

Request the full text

Abstract

Automatic test data generation technology is a key technology to improve the efficiency of software testing, and to raise software’s reliability. The technology can reduce the high cost of manual testing, improve the trustworthiness of the testing process and change the status which testers have to design test data all by their experience. People use all kinds of heuristic search algorithms, especially artificial intelligence search algorithms as the core method to realize automatic test data generation and make some achievements.Researches on GA-based automatic test data generation take up the majority. But the genetic algorithm involves comparatively more parameters, makes a lot of CPU time encoding and decoding, and the efficiency of GA is relatively low. The Particle Swarm Optimization (PSO) which has relatively simple model, less parameters to set provides a new way of thinking to solve the problem of automatic test data generation. Researchers have proved the high efficiency when using PSO to generate test data and point out that PSO has good prospects in this field.This paper proposes a method of automatic test data generation based on Simple Particle Swarm Optimization (sPSO) to improve the availability and efficiency when using search algorithms to generate test data. sPSO has particle velocity items removed compared with the basic PSO and it realizes the process of evolution only by updating its particle position.The major work of this paper includes:(1) Study the commonly used test data generation methods, analyze and compare the characteristics of genetic algorithms, simulated annealing, particle swarm optimization which is generally used in automatic test data generation field, and make preparations for the following research.;(2) Based on the characteristics of sPSO, make preliminary study on the inertia weight (w) parameter. Propose that a small value of w can greatly improve the efficiency of test data generation in some special procedures;(3) Setting random w for every particle to solve the problem that traditional setting mode for w often causes uneven traverse of particles in sPSO; (4) Propose the method of test data normalization to solve the problem that the particles move out of the search domain frequently when using sPSO to generate test data. (4) For the purpose of jumping out of local optimal value and accelerating the convergence rate, this paper adds a new disturbed strategy to sPSO. The specific method is:Take the generations of global extreme’s evolutionary stagnation as a trigger. Use the deviation of mean elite method to determine whether premature convergence occurred. In case of premature, re-initialize the population, otherwise, use simulated annealing algorithm to optimize the global extreme; (5) Apply the improved sPSO to generate path test data. Prove the practicability and efficiency of the method by experiments.

Table of contents

Abstract 6-7 ABSTRACT 7-9 first chapter 9-13 1.1 Background 1.2 Research 9-11 1.3 major research 11-12 1.4 thesis structure 12-13 Chapter II software testing and test data automatically generated 13-20 2.1 software testing technology 13-17 2.1.1 software testing concept 13 2.1.2 software testing process 13-14 2.1.3 software testing technology classification 14-17 2.2 automatic test data generation 17-18 2.2.1 random number method 17 2.2.2 Korel law 17-18 2.2.3 iterative relaxation method 18 2.2.4 based search methods 18 2.3 This chapter Summary 18-20 Chapter search-based test data automatically generated 20-30 3.1 Overview of search-based software engineering 20 3.2 Test Data Search Algorithm 20-28 3.2.1 Genetic algorithm 20-23 3.2.2 simulated annealing algorithm 23-25 3.2.3 Particle Swarm algorithm 25-28 3.3 automatically generate test data based on heuristic search algorithm method 28-29 3.4 This chapter Summary 29-30 Chapter automatically simplified particle swarm algorithm-based test data generation method 30-41 4.1 test environment constructed 30-33 4.1.1 application plug fitted and fitness function constructor 30-32 the Parameters 4.1.2 select 32-33 4.2 simplifies the improved particle swarm algorithm 33-36 4.2.1 Simple Particle Swarm Optimization Overview 33-34 4.2.2 inertia weight heavy research 34 4.2.3 test data owned by one of the processing methods 34-35 4.2.4 disturbance strategy design 35-36 4.3 automatically generate test data based on improved simplified particle swarm algorithm 36-40 4.3.1 automatically generate test data based on improved simplified particle swarm algorithm model 36-37 4.3.2 improvements simplify the Design and Implementation of particle swarm algorithm 37-40 4.4 This chapter Summary 40-41 Chapter experiment 41-49 5.1 Experiment 43-45 5.2 Experimental 45-47 5.3 experiment three 47-49 Chapter Summary and Outlook 49-50 6.1 summarizes 49 6.2 Future Work Looking 49-50 the References 50-55 Acknowledgements 55-57 studying for a master's degree during the thesis and participation subject 57

Related dissertations

  1. Analysis of Interference Signal in Electronic Experiment and Design of Anti-jamming Simulation
  2. An Intelligent Control Method for the Shifting of the Dry-type DSG
    LiQiuMei ·Central South University ·2013 ·Master's thesis
  3. Research on Testing Model and Automated Testing of Web Application
    ChenJiangYong ·Fujian Normal University ·2012 ·Master's thesis
  4. Test Case Generation Model Based on Bayesian Network and Genetic Algorithms
    LiXin ·Chongqing Jiaotong University ·2012 ·Master's thesis
  5. Pattern Search Algorithms for Nonlinear Inversion of High-frequency Rayleigh Wave Dispersion Curves
    SongXianHai ·China University of Geosciences ·2008 ·Doctoral dissertation
  6. Research on Test Data Automatic Generation
    ShiLiang ·Southeast University ·2006 ·Doctoral dissertation
  7. Nonlinear global optimization method , residual statics applied research
    LiHuiFeng ·Chengdu University of Technology ·2006 ·Doctoral dissertation
  8. Automatic path-oriented test data generation method
  9. Automatic Test Data Generation for Path Testing Using Ant Algorithms
    ChenLuYuan ·Hebei University of Technology ·2007 ·Master's thesis
  10. Analysis and Design of Unit Test Useage Automated Generation
    LiZuo ·Taiyuan University of Technology ·2007 ·Master's thesis
  11. Study in Automation Generation of Test Data Based on Simulated Annealing Genetic Algorithm
    ShaoJie ·Chinese Geology University (Beijing) ·2009 ·Master's thesis
  12. The Logistics Center Location Planning of Tralin Group Straw Supply
    ZhouXuan ·Nanjing Agricultural College ·2013 ·Master's thesis
  13. Research on Elevator Group Control System Scheduling Policy and Simulation Design
  14. Study on MDF Continuous Press Position Servo System Modeling and Intelligent Control
    HuangXiaoZhou ·Northeast Forestry University ·2013 ·Master's thesis
  15. Coordinated Control of Distributed Multi-agent Systems and Applications
    HouJian ·Zhejiang University ·2013 ·Doctoral dissertation
  16. Study on Modeling and Optimizing of Supply Chain Multi-time Periods Integrated Plan Under Uncertain Environment
    ZhuYanBo ·Northeastern University ·2013 ·Master's thesis
  17. Research and Application on the Hybrid Colony Algorithm
  18. The Research and Application of Shuffled Frog Leaping Algorithm Based on Average Value
    SongLei ·Gansu Agricultural University ·2013 ·Master's thesis
  19. Research on Production Scheduling Problem Based on Order Disturbance
  20. The Application of Hybrid Genetic Algorithm in Rectangular Strip Packing Problem
    ZhengMingYue ·Hefei University of Technology ·2013 ·Master's thesis