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 条
  • [31] Genetic Algorithm Secure Procedures Algorithm to Manage Data Integrity Of Test Case Prioritization Methodology
    Mahajan, Surendra
    Joshi, S. D.
    Khanaa, V.
    2014 IEEE GLOBAL CONFERENCE ON WIRELESS COMPUTING AND NETWORKING (GCWCN), 2014, : 208 - 212
  • [32] A Biased Random-Key Genetic Algorithm for Regression Test Case Prioritization
    Carballo, Pablo
    Perera, Pablo
    Rama, Santiago
    Pedemonte, Martin
    2018 IEEE LATIN AMERICAN CONFERENCE ON COMPUTATIONAL INTELLIGENCE (LA-CCI), 2018,
  • [33] Test Case Optimization and Prioritization Based on Multi-objective Genetic Algorithm
    Mishra, Deepti Bala
    Mishra, Rajashree
    Acharya, Arup Abhinna
    Das, Kedar Nath
    HARMONY SEARCH AND NATURE INSPIRED OPTIMIZATION ALGORITHMS, 2019, 741 : 371 - 381
  • [34] Test Case Prioritization Using Test Similarities
    Haghighatkhah, Alireza
    Mantyla, Mika
    Oivo, Markku
    Kuvaja, Pasi
    PRODUCT-FOCUSED SOFTWARE PROCESS IMPROVEMENT, PROFES 2018, 2018, 11271 : 243 - 259
  • [35] Directed Search Based on Improved Whale Optimization Algorithm for Test Case Prioritization
    Yang, Bin
    Li, Huilai
    Xing, Ying
    Zeng, Fuping
    Qian, Chengdong
    Shen, Youzhi
    Wang, Jiongbo
    INTERNATIONAL JOURNAL OF COMPUTERS COMMUNICATIONS & CONTROL, 2023, 18 (02)
  • [36] Total Coverage Based Regression Test Case Prioritization using Genetic Algorithm
    Konsaard, Patipat
    Ramingwong, Lachana
    2015 12TH INTERNATIONAL CONFERENCE ON ELECTRICAL ENGINEERING/ELECTRONICS, COMPUTER, TELECOMMUNICATIONS AND INFORMATION TECHNOLOGY (ECTI-CON), 2015,
  • [37] Accelerated Greedy Randomized Kaczmarz Algorithm for Solving Linear Systems
    Liu, Yong
    Liu, Shimin
    Zhang, Zhiyong
    IAENG International Journal of Computer Science, 2023, 50 (03)
  • [38] The Research of Test Case Generation and Its Optimization Methods Based on Orthogonal Test Method and Greedy Algorithm
    Tian, Pei
    Leng, Huaijing
    Yang, Shaohua
    Wang, Yufang
    2009 INTERNATIONAL CONFERENCE ON INTELLIGENT HUMAN-MACHINE SYSTEMS AND CYBERNETICS, VOL 1, PROCEEDINGS, 2009, : 474 - 477
  • [39] An accelerated continuous greedy algorithm for maximizing strong submodular functions
    Wang, Zengfu
    Moran, Bill
    Wang, Xuezhi
    Pan, Quan
    JOURNAL OF COMBINATORIAL OPTIMIZATION, 2015, 30 (04) : 1107 - 1124
  • [40] An accelerated continuous greedy algorithm for maximizing strong submodular functions
    Zengfu Wang
    Bill Moran
    Xuezhi Wang
    Quan Pan
    Journal of Combinatorial Optimization, 2015, 30 : 1107 - 1124