Test Case Generation Model Based on Bayesian Network and Genetic Algorithms

Author
LiXin
Advisor
ZhangCong
School
Chongqing Jiaotong University
Major
Applied Computer Technology
Classification
TP311.53 Software Maintenance
Degree
Master's thesis
Year
2012
Downloads
69
Citations
0

Request the full text

Abstract

The expansion of software to the test work has brought new problems that manualtesting is too slow, and too inefficient, so the automated testing is becoming important.How to generate test cases plays an important role in automated testing. Commonlyencountered problem is test case can not cover all path, even a small number of pathssimply do not have test cases implementation. This test case generation model based onBayesian networks (BN) and Genetic algorithms (GA) is proposed in this thesis. Andthe model has solved the main problem is that the automated test generate collection ofthese test cases which must meet the criteria covered by the full path.Firstly, the classic method of software testing including unit testing, black boxtesting, white box testing, static testing and dynamic testing is introduced in detail. Thecommon test case generation methods are introduced simply in this thesis. Then, somebasic theories and operations of GA are introduced. Some advantages and disadvantagesof GA applied in practical application are analyzed. Secondly, the basic concepts of theBayesian network, parameter learning algorithm and structure learning algorithm areintroduced. Test case generation model based on Bayesian networks and Geneticalgorithms is proposed, Bayesian network is an information representation frameworkcombining causal knowledge with probability knowledge. Topologies between networknodes are represented by qualitative information of BN and joint probabilitydistributions between network nodes are represented by quantitative information of BN.Therefore, the relationship among the parameters of the test program can be representedby quantitative information. The full path coverage criteria are met by adjusting thequantitative information. In the model proposed in the thesis, the Bayesian network hasbeen modified continually by GA as heuristic search algorithm until it achievesoptimization. The optimal Bayesian network model is used to generate test cases set.Three simulation experiments are processed in the end. The first experimentrevealed the defects of the full path coverage test cases. The second experiment is usedto generate test cases by the algorithm proposed in the thesis, and the results showed itis a feasible and effective method. The third experiment is used to verify the feasibilityof the model based on BN and GA in the complex tested program.

Table of contents

Summary 3-4 ABSTRACT 4-6 directory 6-9 first chapter 9-14 <br / > 1.1 the purpose and significance topics 9 1.2 research status at home and abroad major work 9-11 1.3 article 11-12 section 1.4 of this article arrangements basic techniques 12-14 Chapter II software testing 14-25 basic concepts of software testing 2.1 14 target 2.2 software testing 14-16 2.3 software testing principles 16-17 classification 2.4 software testing methods 17-22 2.4 .1 unit testing 17-18 2.4.2 Black box testing 18-20 2.4.3 White-box testing 20-21 2.4 .4 static test 21 2.4.5 dynamic test 21-22 2.5 classification test generation technology 22-24 2.5.1 automatic generation of test cases for functional technology 22 2.5.2 -oriented path test case generation technology 22-24 2.6 Summary 24-25 <br / > Chapter genetic algorithm 25-32 3.1 Introduction to genetic algorithms 25 3.2 GA principle 25-26 3.3 genetic algorithms coding techniques 26-28 3.3.1 binary encoding method 27 3.3.2 Gray code encoding method 27-28 3.3.3 float encoding method 28 3.3.4 symbol encoding method 28 3.4 fitness function 28-29 3.4.1 fitness function and the objective function 28-29 3.4.2 fitness function role design criteria 29 3.4.3 fitness function 29 3.5 select operator 29-30 3.5.1 proportional selection 29-30 3.5.2 elitist strategy 30 3.6 crossover 30 3.7 mutation operator 30-31 3.8 Summary 31-32 Chapter Bayesian network 32 - 43 4.1 common theory of probability theory basic concepts of 32-33 4.2 Bayesian networks 33-34 4.3 Bayesian learning 34-42 4.3.1 maximum likelihood estimation 34-36 4.3.2 Bayesian estimation 36-38 4.3.3 Bayesian structure learning network 38-42 4.4 Summary 42-43 fifth chapter based on Bayesian networks and genetic algorithms to automatically generate test cases 43 -52 5.1 model based on Bayesian network and genetic algorithm test case generation algorithm 43-45 5.2 based on Bayesian network and genetic algorithm test case generation algorithm implementation 45-50 5.2.1 genetic algorithm parameter coding strategies nbsp 45-47 5.2.2 design of fitness function ; 47-48 5.2 .3 genetic algorithm selection operator 48-49 5.2.4 GA crossover operator 49 5.2.5 GA mutation operation 49-50 5.2.6 GA termination condition learning 50 5.3 Bayesian networks 50-51 5.4 Summary 51-52 Chapter VI experiments and analysis algorithms 52-66 6.1 experimental design and Analysis 52 6.2 experimental program analysis 52-54 6.3 experimental procedure stub 54-55 6.4 experimental results and analysis 55-65 6.4.1 experiment 1 55 6.4.2 experimental 2 55-62 6.4.3 experiment 3 62-65 6.5 summary 65-66 Chapter VII summary and Outlook 66-68 7.1 paper summarizes 66 7.2 Next job Outlook 66-68 Thanks 68-69 reference literature published 69-72 master's degree during the academic 72

Related dissertations

  1. Software Testing Defect Data Analysis and Management
    HaoShiJin ·Taiyuan University of Technology ·2012 ·Master's thesis
  2. Research on Testing Model and Automated Testing of Web Application
    ChenJiangYong ·Fujian Normal University ·2012 ·Master's thesis
  3. Research on Test Data Automatic Generation
    ShiLiang ·Southeast University ·2006 ·Doctoral dissertation
  4. Research on Test Case Reuse in Software Testing
    ZhangJuan ·Shanghai University ·2012 ·Doctoral dissertation
  5. The Logistics Center Location Planning of Tralin Group Straw Supply
    ZhouXuan ·Nanjing Agricultural College ·2013 ·Master's thesis
  6. Research on Elevator Group Control System Scheduling Policy and Simulation Design
  7. Study on MDF Continuous Press Position Servo System Modeling and Intelligent Control
    HuangXiaoZhou ·Northeast Forestry University ·2013 ·Master's thesis
  8. Research on User Experience Acquisition Method Supporting User Intention Change Recognition
    ZhangYue ·Northeastern University ·2012 ·Master's thesis
  9. Study on Modeling and Optimizing of Supply Chain Multi-time Periods Integrated Plan Under Uncertain Environment
    ZhuYanBo ·Northeastern University ·2013 ·Master's thesis
  10. Research and Application on the Hybrid Colony Algorithm
  11. The Research and Application of Shuffled Frog Leaping Algorithm Based on Average Value
    SongLei ·Gansu Agricultural University ·2013 ·Master's thesis
  12. Research on Production Scheduling Problem Based on Order Disturbance
  13. Decision and Analysis of Metallurgical Products Price Based on Artificial Neural Networks
  14. Modified Shuffled Frog Leaping Algorithms and the Application of Multi-objectives Optimization
    WangZuoRan ·Gansu Agricultural University ·2013 ·Master's thesis
  15. Research on Learning Hidden Variables Dimensionality of Bayesian Networks and Its Application
    ZhangZan ·Hefei University of Technology ·2013 ·Master's thesis
  16. Research on Closed-loop Logistics Network Design Based on Low Carbon Economy
    ZhangPeng ·Yanshan University ·2013 ·Master's thesis
  17. Friction Compensation and Adaptive Control for the Linear Single Inverted Pendulum
  18. Design of H2/H∞Robust Control Based on Multi-objective Genetic Algorithms
    WangZuo ·Northeastern University ·2013 ·Master's thesis
  19. T-S Fuzzy Modeling and Control for Nonlinear Network Control Systems
  20. Public Opinion Monitoring System Based on Trend Analysis