Backtracking search optimization algorithm with dual scatter search strategy for automated test case generation

被引:4
作者
Ren, Jingru [1 ]
Zhu, Wenming [1 ]
机构
[1] Shenzhen Inst Informat Technol, Dept Interdisciplinary, Shenzhen, Guangdong, Peoples R China
关键词
Automated test case generation; Backtracking search optimization algorithm; Dual scatter search strategy; Path coverage; SELECTION; IFOGSIM; PATHS;
D O I
10.1016/j.jksuci.2023.101600
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
It is a challenge to design an effective algorithm utilizing problem features in automated test case generation for path coverage (ATCG-PC). A feature of ATCG-PC "similar paths are usually executed by similar test cases" was touched by a few scholars and can be further exploited to design more effective algorithms. Inspired by this feature, this paper proposes a two-stage local search strategy, denoted dual scatter search (DS) strategy, which concatenates two improved scatter search strategies with different search behaviors. The first stage aims to fully exploit the discovered test cases to search for desired test cases, and the latter stage aims to mine the unexploited areas of the first stage via using less computational overhead. Then, a backtracking search optimization algorithm with dual scatter search strategy (BSADS) is proposed, which incorporates DS strategy into the backtracking search optimization algorithm (BSA) with strong exploration capability. BSA is first introduced into the field of ATCG-PC. The performance of BSA-DS and some state-of-the-art algorithms is tested on twelve popular benchmark programs. Experimental studies demonstrate that BSA-DS achieves the highest path coverage with the fewest test cases and running time on at least eight out of the twelve programs.(c) 2023 The Author(s). Published by Elsevier B.V. on behalf of King Saud University. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).
引用
收藏
页数:12
相关论文
共 32 条
  • [1] An orchestrated survey of methodologies for automated software test case generation
    Anand, Saswat
    Burke, Edmund K.
    Chen, Tsong Yueh
    Clark, John
    Cohen, Myra B.
    Grieskamp, Wolfgang
    Harman, Mark
    Harrold, Mary Jean
    McMinn, Phil
    Bertolino, Antonia
    Li, J. Jenny
    Zhu, Hong
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2013, 86 (08) : 1978 - 2001
  • [2] Automatic test data generation for program paths using genetic algorithms
    Bueno, PMS
    Jino, M
    [J]. INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2002, 12 (06) : 691 - 709
  • [3] Binary searching iterative algorithm for generating test cases to cover paths
    Cai, Gaocheng
    Su, Qinghua
    Hu, Zhongbo
    [J]. APPLIED SOFT COMPUTING, 2021, 113
  • [4] Automated test case generation for path coverage by using grey prediction evolution algorithm with improved scatter search strategy
    Cai, Gaocheng
    Su, Qinghua
    Hu, Zhongbo
    [J]. ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2021, 106
  • [5] Cao Y, 2009, WORLD SUMMIT ON GENETIC AND EVOLUTIONARY COMPUTATION (GEC 09), P25
  • [6] Backtracking Search Optimization Algorithm for numerical optimization problems
    Civicioglu, Pinar
    [J]. APPLIED MATHEMATICS AND COMPUTATION, 2013, 219 (15) : 8121 - 8144
  • [7] Clarke L. A., 1976, IEEE Transactions on Software Engineering, VSE-2, P215, DOI 10.1109/TSE.1976.233817
  • [8] Automated test case generation based on differential evolution with node branch archive
    Dai, Xiaohu
    Gong, Wenyin
    Gu, Qiong
    [J]. COMPUTERS & INDUSTRIAL ENGINEERING, 2021, 156 (156)
  • [9] Test Data Generation for Path Coverage of MPI Programs Using SAEO
    Gong, Dunwei
    Sun, Baicai
    Yao, Xiangjuan
    Tian, Tian
    [J]. ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2021, 30 (02)
  • [10] A novel method of grouping target paths for parallel programs
    Gong, Dunwei
    Tian, Tian
    Wang, Jinxin
    Du, Ying
    Li, Zheng
    [J]. PARALLEL COMPUTING, 2020, 97