Dynamic stopping criteria for search-based test data generation for path testing

被引:19
|
作者
Hermadi, I. [1 ,2 ]
Lokan, C. [2 ]
Sarker, R. [2 ]
机构
[1] Bogor Agr Univ, Dept Comp Sci, Bogor, Indonesia
[2] UNSW Canberra, Sch Engn & Informat Technol, Canberra, ACT, Australia
关键词
Path testing; Evolutionary algorithm; Software reliability growth model; SOFTWARE TEST DATA;
D O I
10.1016/j.infsof.2014.01.001
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: Evolutionary algorithms have proved to be successful for generating test data for path coverage testing. However in this approach, the set of target paths to be covered may include some that are infeasible. It is impossible to find test data to cover those paths. Rather than searching indefinitely, or until a fixed limit of generations is reached, it would be desirable to stop searching as soon it seems likely that feasible paths have been covered and all remaining un-covered target paths are infeasible. Objective: The objective is to develop criteria to halt the evolutionary test data generation process as soon as it seems not worth continuing, without compromising testing confidence level. Method: Drawing on software reliability growth models as an analogy, this paper proposes and evaluates a method for determining when it is no longer worthwhile to continue searching for test data to cover uncovered target paths. We outline the method, its key parameters, and how it can be used as the basis for different decision rules for early termination of a search. Twenty-one test programs from the SBSE path testing literature are used to evaluate the method. Results: Compared to searching for a standard number of generations, an average of 30-75% of total computation was avoided in test programs with infeasible paths, and no feasible paths were missed due to early termination. The extra computation in programs with no infeasible paths was negligible. Conclusions: The method is effective and efficient. It avoids the need to specify a limit on the number of generations for searching. It can help to overcome problems caused by infeasible paths in search-based test data generation for path testing. (C) 2014 Elsevier B.V. All rights reserved.
引用
收藏
页码:395 / 407
页数:13
相关论文
共 50 条
  • [1] Search-based Software Testing and Test Data Generation for a Dynamic Programming Language
    Mairhofer, Stefan
    Feldt, Robert
    Torkar, Richard
    GECCO-2011: PROCEEDINGS OF THE 13TH ANNUAL GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, 2011, : 1859 - 1866
  • [2] DYNAMIC SEARCH-BASED TEST DATA GENERATION FOCUSED ON DATA FLOW PATHS
    Sofokleous, Anastasis A.
    Andreou, Andreas S.
    ICEIS 2008: PROCEEDINGS OF THE TENTH INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS, VOL AIDSS: ARTIFICIAL INTELLIGENCE AND DECISION SUPPORT SYSTEMS, 2008, : 27 - 35
  • [3] Search-based automatic path test generation method for character string data
    Department of Computer Science, Beijing University of Chemical Technology, Beijing 100029, China
    不详
    Jisuanji Fuzhu Sheji Yu Tuxingxue Xuebao, 2008, 5 (671-677): : 671 - 677
  • [4] An Improved Crow Search Algorithm for Test Data Generation Using Search-Based Mutation Testing
    Nishtha Jatana
    Bharti Suri
    Neural Processing Letters, 2020, 52 : 767 - 784
  • [5] An Improved Crow Search Algorithm for Test Data Generation Using Search-Based Mutation Testing
    Jatana, Nishtha
    Suri, Bharti
    NEURAL PROCESSING LETTERS, 2020, 52 (01) : 767 - 784
  • [6] Search-based software test data generation: a survey
    McMinn, P
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2004, 14 (02): : 105 - 156
  • [7] Search-Based Test Data Generation for SQL Queries
    Castelein, Jeroen
    Aniche, Mauricio
    Soltani, Mozhan
    Panichella, Annibale
    van Deursen, Arie
    PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2018, : 1220 - 1230
  • [8] Search-based Data-flow Test Generation
    Vivanti, Mattia
    Mis, Andre
    Gorla, Alessandra
    Fraser, Gordon
    2013 IEEE 24TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE), 2013, : 370 - 379
  • [9] Improved Evolutionary Generation of Test Data for Multiple Paths in Search-based Software Testing
    Zhu, Ziming
    Xu, Xiong
    Jiao, Li
    2017 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION (CEC), 2017, : 612 - 620
  • [10] Harmony search-based test data generation for branch coverage in software structural testing
    Mao, Chengying
    NEURAL COMPUTING & APPLICATIONS, 2014, 25 (01): : 199 - 216