Research on Automatic Softwaretest Case Generation Based on Genetic Algorithms

Author
LiuShuangYue
Advisor
WangPeiDong
School
Harbin University of Science and Technology
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2010
Downloads
101
Citations
0

Request the full text

Abstract

Software testing has become more than ever complex and difficult . Software testing as an important means to ensure software quality and reliability has become one of the key directions of the software industry at home and abroad . Study of test cases automatically generated , you can reduce the high cost of manual testing , testers freed from the heavy labor , the trustworthiness of the test process . Automatic generating test case method research has important practical significance to promote the degree of automation of the software testing process . This paper conduct in-depth research and design for test cases automatically generated . First , the introduction of the basic theory of software testing , analysis of the comparative test cases automatically generated : the random method , symbolic execution , program direct execution method and genetic algorithm , and ultimately determine the use of genetic algorithms to automatically generate test cases as a path core algorithm . Subsequently , based on the genetic algorithm and its fitness function characteristics analysis and research , focusing on the fitness function of path - oriented test calculation method to assess the performance of the fitness function . Corresponding improvement in the fitness function and fitness value selection strategy . New selection strategy groups divided into several groups, roulette selection to the group as a unit , to produce new individuals in the group selected by the combined effects of the individual within the group . Finally, using the triangle classification program as an example , the test data to generate the program , the fitness function and two improved fitness function for four commonly used to assess the validation and experimental data analysis . The experimental results show that , can produce fewer test cases cover a given path method is a method and an inverse path of the branch predication probability method, calculated using these two fitness function in the genetic algorithm based on the path test , the method is most effective .

Table of contents

Abstract 5-6 Abstract 6-9 Chapter 1 Introduction 9-14 1.1 Background 9-10 the 1.1.1 path testing research significance 9-10 1.1.2 test cases automatically generated technology research significance 1.2 research status 10-12 1.3 of this article 12-14 Chapter 2, software testing and test cases automatically generate technical 14-24 2.1 software testing 14-17 2.1.1 software testing defined 14 2.1.2 software testing purposes 14 2.1.3 software testing principles 14-15 2.1.4 software testing technology classification 15-16 2.1.5 software testing process 16-17 2.2 path testing problem description 17-19 2.3 test cases generate system architecture 19-23 2.3.1 program analysis 19-20 2.3.2 path select 20-21 2.3.3 test data generation 21-23 2.4 This chapter Summary 23-24 Chapter 3, the genetic algorithm and the fitness function studies 24-35 3.1 genetic algorithm for software testing 24-26 3.2 genetic algorithm elements 26-29 3.2.1 chromosome coding 26 3.2.2 fitness function 26-27 3.2.3 genetic manipulation 27-29 3.3 genetic algorithm and improved 29 3.4 path-oriented fitness function design 29-34 3.4.1 Generalized Hamming distance 31-32 3.4.2 branch predicate method 32-33 3.4.3 inverse path probability 33 3.4.4 generalized Hamming distance offset 33-34 3.4.5 only offset 34 3.5 This chapter Summary 34-35 Chapter 4, the use of genetic algorithm test cases automatically generated 35-46 4.1 system framework 35 4.2 test environment constructed 35-38 4.3 parameter encoding generated 38-39 4.3.1 parameter selection 38 4.3.2 encoding 38-39 4.4 improved fitness value selection strategy 39-40 4.5 GenerateData algorithm design to achieve 40-45 4.5.1 basic definition 40-42 4.5.2 algorithm described 42-45 4.6 This chapter Summary 45-46 Chapter 5 test and analysis 46-52 5.1 program cartridge 46 5.2 Test results analysis 46-51 5.2.1 TriTyp path 1T 47-48 5.2.2 TriTyp path 2F3F4F5T6T 48-49 5.2.3 TriTyp path 2F3F4F5F7F8F9T 49-50 5.2.4 path ALLTT 50-51 5.3 This chapter Summary 51-52 concluded 52-53 the References 53-57 studied papers published by the Master of the period 57-58 Acknowledgements 58

Related dissertations

  1. Research on Testing Model and Automated Testing of Web Application
    ChenJiangYong ·Fujian Normal University ·2012 ·Master's thesis
  2. Test Case Generation Model Based on Bayesian Network and Genetic Algorithms
    LiXin ·Chongqing Jiaotong University ·2012 ·Master's thesis
  3. Research on Test Data Automatic Generation
    ShiLiang ·Southeast University ·2006 ·Doctoral dissertation
  4. The Logistics Center Location Planning of Tralin Group Straw Supply
    ZhouXuan ·Nanjing Agricultural College ·2013 ·Master's thesis
  5. Research on Elevator Group Control System Scheduling Policy and Simulation Design
  6. Study on MDF Continuous Press Position Servo System Modeling and Intelligent Control
    HuangXiaoZhou ·Northeast Forestry University ·2013 ·Master's thesis
  7. Study on Modeling and Optimizing of Supply Chain Multi-time Periods Integrated Plan Under Uncertain Environment
    ZhuYanBo ·Northeastern University ·2013 ·Master's thesis
  8. Research and Application on the Hybrid Colony Algorithm
  9. The Research and Application of Shuffled Frog Leaping Algorithm Based on Average Value
    SongLei ·Gansu Agricultural University ·2013 ·Master's thesis
  10. Research on Production Scheduling Problem Based on Order Disturbance
  11. Decision and Analysis of Metallurgical Products Price Based on Artificial Neural Networks
  12. Modified Shuffled Frog Leaping Algorithms and the Application of Multi-objectives Optimization
    WangZuoRan ·Gansu Agricultural University ·2013 ·Master's thesis
  13. Research on Closed-loop Logistics Network Design Based on Low Carbon Economy
    ZhangPeng ·Yanshan University ·2013 ·Master's thesis
  14. Friction Compensation and Adaptive Control for the Linear Single Inverted Pendulum
  15. Design of H2/H∞Robust Control Based on Multi-objective Genetic Algorithms
    WangZuo ·Northeastern University ·2013 ·Master's thesis
  16. T-S Fuzzy Modeling and Control for Nonlinear Network Control Systems
  17. The Intrusion Detection System Research Based on Adaptive Genetic Algorithm
  18. Research on Recommender System Applied in Open Network Learning Environment
    FangFei ·Anhui University ·2014 ·Master's thesis
  19. Simulation and Optimization of Crankshaft Production Line Based on Discrete System Simulation
    ZhangMin ·Hunan University ·2013 ·Master's thesis
  20. Evolution method in image processing
    YangGuoRong ·Guizhou National University ·2012 ·Master's thesis