AGA: An Accelerated Greedy Additional Algorithm for Test Case Prioritization

被引:8
|
作者
Li, Feng [1 ,2 ]
Zhou, Jianyi [1 ,2 ]
Li, Yinzhu [3 ]
Hao, Dan [1 ,2 ]
Zhang, Lu [1 ,2 ]
机构
[1] Peking Univ, Inst Software, Sch Comp Sci, Beijing, Peoples R China
[2] Peking Univ, Key Lab High Confidence Software Technol, MoE, Beijing 100871, Peoples R China
[3] Baidu Online Network Technol Beijing Co Ltd, Beijing, Peoples R China
基金
中国国家自然科学基金;
关键词
Test case prioritization; additional strategy; acceleration; SOFTWARE; MUTATION;
D O I
10.1109/TSE.2021.3137929
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In recent years, many test case prioritization (TCP) techniques have been proposed to speed up the process of fault detection. However, little work has taken the efficiency problem of these techniques into account. In this paper, we target the Greedy Additional (GA) algorithm, which has been widely recognized to be effective but less efficient, and try to improve its efficiency while preserving effectiveness. In our Accelerated GA (AGA) algorithm, we use some extra data structures to reduce redundant data accesses in the GA algorithm and thus the time complexity is reduced from O(m(2)n) to O(kmn) when n > m, where m is the number of test cases, n is the number of program elements, and k is the iteration number. Moreover, we observe the impact of iteration numbers on prioritization efficiency on our dataset and propose to use a specific iteration number in the AGA algorithm to further improve the efficiency. We conducted experiments on 55 open-source subjects. In particular, we implemented each TCP algorithm with two kinds of widely-used input formats, adjacency matrix and adjacency list. Since a TCP algorithm with adjacency matrix is less efficient than the algorithm with adjacency list, the result analysis is mainly conducted based on TCP algorithms with adjacency list. The results show that AGA achieves 5.95X speedup ratio over GA on average, while it achieves the same average effectiveness as GA in terms of Average Percentage of Fault Detected (APFD). Moreover, we conducted an industrial case study on 22 subjects, collected from Baidu, and find that the average speedup ratio of AGA over GA is 44.27X, which indicates the practical usage of AGA in real-world scenarios.
引用
收藏
页码:5102 / 5119
页数:18
相关论文
共 50 条
  • [41] Test case prioritization for model transformations
    Iqbal, Saqib
    Al-Azzoni, Issam
    JOURNAL OF KING SAUD UNIVERSITY-COMPUTER AND INFORMATION SCIENCES, 2022, 34 (08) : 6324 - 6338
  • [42] Adaptive Random Test Case Prioritization
    Jiang, Bo
    Zhang, Zhenyu
    Chan, W. K.
    Tse, T. H.
    2009 IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 2009, : 233 - 244
  • [43] Test case prioritization and mutation testing
    Le Traon, Yves
    Xie, Tao
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2024, 34 (01):
  • [44] On the Gain of Measuring Test Case Prioritization
    Lv, Junpeng
    Yin, Beibei
    Cai, Kai-Yuan
    2013 IEEE 37TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE (COMPSAC), 2013, : 627 - 632
  • [45] Learning to Rank for Test Case Prioritization
    Omri, Safa
    Sinz, Carsten
    15TH SEARCH-BASED SOFTWARE TESTING WORKSHOP (SBST 2022), 2022, : 16 - 24
  • [46] XCSF for Automatic Test Case Prioritization
    Rosenbauer, Lukas
    Stein, Anthony
    Paetzel, David
    Haehner, Joerg
    PROCEEDINGS OF THE 12TH INTERNATIONAL JOINT CONFERENCE ON COMPUTATIONAL INTELLIGENCE (IJCCI), 2020, : 49 - 58
  • [47] To Be Optimal or Not in Test-Case Prioritization
    Hao, Dan
    Zhang, Lu
    Zang, Lei
    Wang, Yanbo
    Wu, Xingxia
    Xie, Tao
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2016, 42 (05) : 490 - 504
  • [48] Reinforcement Learning for Test Case Prioritization
    Bagherzadeh, Mojtaba
    Kahani, Nafiseh
    Briand, Lionel
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (08) : 2836 - 2856
  • [49] A Unified Test Case Prioritization Approach
    Hao, Dan
    Zhang, Lingming
    Zhang, Lu
    Rothermel, Gregg
    Mei, Hong
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2014, 24 (02)
  • [50] A Novel Approach for Test Case Prioritization
    Maheswari, R. Uma
    JeyaMala, D.
    2013 IEEE INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND COMPUTING RESEARCH (ICCIC), 2013, : 597 - 601