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 条
  • [21] Test Case Prioritization Algorithm Based on Improved Code Coverage
    Zhu, Yanan
    Liu, Feng
    IAENG International Journal of Computer Science, 2023, 50 (02)
  • [22] Hybridization of Cuckoo-ACO algorithm for test case prioritization
    Panwar, Deepak
    Tomar, Pradeep
    Singh, Vijandra
    JOURNAL OF STATISTICS & MANAGEMENT SYSTEMS, 2018, 21 (04): : 539 - 546
  • [23] Test Case Prioritization-ANT Algorithm With Faults Severity
    Vescan, Andreea
    Pintea, Camelia-M
    Pop, Petrica C.
    LOGIC JOURNAL OF THE IGPL, 2022, 30 (02) : 277 - 288
  • [24] Test Case Prioritization Based on Genetic Algorithm and Test-Points Coverage
    Zhang, Weixiang
    Wei, Bo
    Du, Huisen
    ALGORITHMS AND ARCHITECTURES FOR PARALLEL PROCESSING, ICA3PP 2014, PT I, 2014, 8630 : 644 - 654
  • [25] Novel Approach for Test Case Prioritization Using ACO Algorithm
    Dhiman, Riza
    Chopra, Vinay
    2019 IEEE 2ND INTERNATIONAL CONFERENCE ON INFORMATION AND COMPUTER TECHNOLOGIES (ICICT), 2019, : 292 - 295
  • [26] SIMILARITY DISTANCE MEASURE AND PRIORITIZATION ALGORITHM FOR TEST CASE PRIORITIZATION IN SOFTWARE PRODUCT LINE TESTING
    Abd Halim, Shahliza
    Jawawi, Dayang Norhayati Abang
    Sahak, Muhammad
    JOURNAL OF INFORMATION AND COMMUNICATION TECHNOLOGY-MALAYSIA, 2019, 18 (01): : 57 - 75
  • [27] Applying Assemble Clustering Algorithm and Fault Prediction to Test Case Prioritization
    Xiao, Lei
    Miao, Huaikou
    Zhuang, Weiwei
    Chen, Shaojun
    2016 INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, TESTING AND EVOLUTION (SATE 2016), 2016, : 108 - 116
  • [28] PORA: Proportion-Oriented Randomized Algorithm for Test Case Prioritization
    Jiang, Bo
    Chan, W. K.
    Tse, T. H.
    2015 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE SECURITY AND RELIABILITY (QRS 2015), 2015, : 131 - 140
  • [29] A NOVEL ACCELERATED GREEDY SNAKE ALGORITHM FOR ACTIVE CONTOURS
    Khan, Naimul Mefraz
    Raahemifar, Kaamran
    2011 24TH CANADIAN CONFERENCE ON ELECTRICAL AND COMPUTER ENGINEERING (CCECE), 2011, : 186 - 190
  • [30] Accelerated Asynchronous Greedy Coordinate Descent Algorithm for SVMs
    Guy, Bin
    Shan, Yingying
    Geng, Xiang
    Zheng, Guansheng
    PROCEEDINGS OF THE TWENTY-SEVENTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2018, : 2170 - 2176