Fitness Function Design for Branch Exertion in Evolutionary Testing

Author
LiuXiYang
Advisor
CaiXiYao
School
Xi'an University of Electronic Science and Technology
Major
Circuits and Systems
Classification
TP311.52 Software Development
Degree
Doctoral dissertation
Year
2007
Downloads
61
Citations
1

Request the full text

Abstract

Evolutionary Testing (ET) is an emerging and promising technology for automatic test data generation. The main idea of ET is to reformulate the problem of test data generation as an evolutionary search, and then the test data can be generated with the help of evolutionary algorithm.In ET, the test data generation process is guided by the fitness function, therefore, the guidance capability of the fitness function becomes very critical.However, for the non-linear features of the real programs, it is especially difficult to design a fitness function with guidance. In recent years, much research work has been done on this topic.However, previous fitness functions only could be applied to some specific program constructs, or the search process should be changed at the same time.Especially, for the recurrent flag variable case in industry programs, different fitness functions should be applied to different use cases of flag variables, while for the nested if-else construct, switch-case construct and programs with procedures construct, few work has been addressed.This dissertation addresses the fitness function design for the program constructs mentioned above.We found that the loss of the guidance in previous work was rooted in the ignorance of the inherent data and control-dependency in the program under test. New fitness functions are proposed for the following program constructs:1.For the flag problem, a unified fitness function is proposed. In this fitness function, the data dependency between the flag variables and others is considered, and a’flag cost function’ is introduced to replace the branch distance in traditional fitness function.2.For the nested if-else construct, a new fitness function calculation rule is proposed. In this fitness function, the control-dependency among nested branches is taken into consideration and ’branch optimism level’ is introduced to evaluate the test data for the nested branches.3.For the switch-case construct, a flat control dependency graph is proposed to represent the parallel semantic construct of all case branches.Consequently the distance between the test data and the target branch on the control flow could be evaluated more precisely.4.For the programs with the function call construct, a fitness function based on the function call dependency is proposed by incorporating the control dependency along the function call flow.Both experiment research and real industrial application show that the fitness function proposed in this dissertation could effectively guide the evolutionary search at much lower cost, making ET more practical in real industrial cases.

Table of contents

Abstract 3-4 Abstract 4-9 first chapter 9-23 1.1 Background and significance 9-10 1.2 evolution of test technology 10-15 1.2.1 Evolutionary Testing 10-11 1.2.2 Basic concept 11-14 1.2.3 for branch coverage fitness function formula 14-15 1.3 Research 15-17 1.4 tools framework 17-19 1.5 papers work with the organizational structure 19-23 evaluated based on the implantation of fitness 23-37 2.1 Introduction 23 2.2 dependency analysis 23-26 2.2.1 Control dependence 24-25 2.2.2 data dependencies 25-26 2.2.3 ANTLR 26 2.3 based on inverse Polish branch the distance calculation implanted 26-32 2.3.1 branch distance calculation 26-28 2.3.2 symbol table construction 28-30 2.3.3 branch distance calculation function of implantation 30-32 2.4 degree of approximation based on sequence matching branch calculation 32-34 2.5 fitness function calculation 34-36 2.6 This chapter Summary 36-37 flag variable fitness function design research 37-55 3.1 Introduction 37-38 3.2 flag variable 38 3.3 for the flag variable unified fitness calculation rule 38-44 3.4 unstructured control flow flag variable problem 44-45 3.5 extended general rule 45-48 3.6 experimental test 48-51 3.6.1 tool to achieve 48-49 3.6.2 Experimental test 49-51 3.7 Projects 51-53 3.8 Related work 53-54 3.9 This chapter Summary 54-55 Chapter nested If-Else structure fitness function design research 55-73 4.1 Introduction 55 4.2 traditional fitness calculation method for nested If-Else structure exists 55-58 4.3 branch distance-based fitness 58-61 4.4 new fitness nested If-Else structure calculation method 61-67 4.5 experimental test 67-69 4.6 Projects 69-70 4.7 This chapter Summary 70-73 Chapter Switch-Case structure fitness function design research 73-91 5.1 Introduction 73 the structure 5.2 Switch-Case fitness calculation 73-76 5.2.1 Switch-Case structure fitness 73-75 5.2.2 Switch-Case structure universality 75-76 5.3 Switch-Case structure flattened control dependence graph 76-79 5.3.1 the existing structure of the control of the Switch-Case dependent analytical 76-78 5.3.2 Switch-Case structure flattened control dependence analysis 78-79 5.4 pairing key branch collection definition and the construction algorithm 79-81 5.4.1 pairing defined key branch collection 79-80 5.4.2 pairing algorithm for constructing key branch collection 80-81 the structure 5.5 Switch-Case fitness calculation 81-84 5.5.1 key branch collection defined 81-82 5.5.2 control dependence graph flattening fitness calculation method 82-84 5.6 experimental test 84-88 5.7 Projects 88 5.8 This chapter Summary 88-91 Chapter VI based on the function call depends on the fitness function design research 91-105 6.1 Introduction 91 6.2 function call chain of fitness function design 91-95 6.3 based on function call depends on the fitness function design 95-101 6.3.1 function call dependency analysis 95-97 6.3.2 based on the function call depends on the fitness function design 97-99 6.3.3 multi-function call chain-dependent fitness function design 99-101 6.4 experimental test 101-103 6.5 Projects 103-104 6.6 Chapter Summary 104-105 Chapter VII Conclusion 105-107 7.1 This work summarizes 105-106 7.2 further research directions 106-107 Acknowledgements 107-109 the References 109-117 studying for a doctorate during the completion of the thesis 117-118 be responsible for and participate in the study for the doctorate during the research 118-119

Related dissertations

  1. The Application of Evolutionary Testing to Nested Branch Structure of Assembly Language in Embedded Software
  2. The Intrusion Detection System Research Based on Adaptive Genetic Algorithm
  3. Evolution method in image processing
    YangGuoRong ·Guizhou National University ·2012 ·Master's thesis
  4. Research on image matching degree function search strategies and adaptation
    SongFangFang ·Guizhou National University ·2012 ·Master's thesis
  5. Design and Implementation of Courses Arrangement System Based on Genetic Algorithms
  6. Research on the Design Method of Optimization for Analog Circuits Based on Genetic Algorithm
    YuJianHai ·Harbin Institute of Technology ·2010 ·Doctoral dissertation
  7. The Survey Research of Square Dance on the Cuurrent Situation in Binzhou
  8. Genetic Programming for Classification Problems
    WangZuo ·University of Science and Technology of China ·2013 ·Doctoral dissertation
  9. Improvement of Real-coding Genetic Algorithm and Its Applications
    GuanXiaoYan ·Chongqing University ·2012 ·Master's thesis
  10. An Improved Genetic Algorithm and Its Application
    LiYanMei ·South China University of Technology ·2012 ·Master's thesis
  11. IFS and Genetic Algorithm Studying in Simulation of Plant
    ZhangZuoZuo ·Lanzhou University of Technology ·2012 ·Master's thesis
  12. Research on the Application of Rough Adaptive Genetic Algorithm in Image Restoration
    YangQiong ·Hunan University ·2011 ·Master's thesis
  13. Research on Intelligent Test Paper Generation Based on Improved Genetic Algorithm
  14. GNSS Ranging Code Design Based on Genetic Algorithm
    DuanFeng ·Harbin Institute of Technology ·2013 ·Master's thesis
  15. Research on compression of medical image based on adaptive evolutionary algorithm
    WangChaoLiang ·Jiangxi University of Technology ·2012 ·Master's thesis
  16. The Implementation of an Improved Genetic Algorithm and Its Application in the Analysis of Tobacco-growing Soil
    Sun ·Jilin University ·2012 ·Master's thesis
  17. Shape Gene Design for SUV Product Family Driven by Preference
    FuYeZuo ·Zhejiang University ·2012 ·Doctoral dissertation
  18. Research on Community Structure Division Problems of Weighted Complex Network Based on Partheno-genetic Algorithm
    HuZhengHua ·Inner Mongolia University ·2012 ·Master's thesis
  19. Research on Test Data Automatic Generation
    ShiLiang ·Southeast University ·2006 ·Doctoral dissertation
  20. Researches on the performance of genetic algorithms and their applications in clustering analysis