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 条
  • [1] A Study of Applying Severity-weighted Greedy Algorithm to Software Test Case Prioritization During Testing
    Hsu, Yen-Ching
    Peng, Kuan-Li
    Huang, Chin-Yu
    2014 IEEE INTERNATIONAL CONFERENCE ON INDUSTRIAL ENGINEERING AND ENGINEERING MANAGEMENT (IEEM), 2014, : 1086 - 1090
  • [2] Evolutionary search algorithm for Test Case Prioritization
    Mohapatra, Sudhir Kumar
    Prasad, Srinivas
    2013 INTERNATIONAL CONFERENCE ON MACHINE INTELLIGENCE AND RESEARCH ADVANCEMENT (ICMIRA 2013), 2013, : 115 - 119
  • [3] Test case prioritization using bat algorithm
    Bajaj A.
    Sangwan O.P.
    Bajaj, Anu (er.anubajaj@gmail.com), 1600, Bentham Science Publishers (14): : 593 - 598
  • [4] TEST CASE PRIORITIZATION WITH IMPROVED GENETIC ALGORITHM
    Cingiz, M. Ozgur
    Temel, Sefik
    Kalipsiz, Oya
    2014 22ND SIGNAL PROCESSING AND COMMUNICATIONS APPLICATIONS CONFERENCE (SIU), 2014, : 1223 - 1226
  • [5] Application of Greedy Algorithm in Solving Service Prioritization
    Luo, Chengyu
    PROCEEDINGS OF THE 2017 2ND INTERNATIONAL CONFERENCE ON AUTOMATION, MECHANICAL CONTROL AND COMPUTATIONAL ENGINEERING (AMCCE 2017), 2017, 118 : 230 - 233
  • [6] Graphite: A Greedy Graph-Based Technique for Regression Test Case Prioritization
    Azizi, Maral
    Do, Hyunsook
    2018 29TH IEEE INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING WORKSHOPS (ISSREW), 2018, : 245 - 251
  • [7] Test Case Prioritization Technique based on Genetic Algorithm
    Jun, Wang
    Yan, Zhuang
    Chen, Jianyun
    2010 THE 3RD INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND INDUSTRIAL APPLICATION (PACIIA2010), VOL II, 2010, : 406 - 408
  • [8] Test Case Prioritization Based on Artificial Immune Algorithm
    Xu, Hongwei
    Li, Pengcheng
    Cong, Zhongxiao
    Zhang, Fengzhi
    Pan, Yi
    Ren, Xu
    Wang, Xingde
    Xing, Ying
    TEHNICKI VJESNIK-TECHNICAL GAZETTE, 2021, 28 (06): : 1871 - 1876
  • [9] Bridging the Gap between the Total and Additional Test-Case Prioritization Strategies
    Zhang, Lingming
    Hao, Dan
    Zhang, Lu
    Rothermel, Gregg
    Mei, Hong
    PROCEEDINGS OF THE 35TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2013), 2013, : 192 - 201
  • [10] The Research of the Test Case Prioritization Algorithm for Black Box Testing
    Liu, Wenhong
    Wu, Xin
    Zhang, WeiXiang
    Xu, Yang
    2014 5TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND SERVICE SCIENCE (ICSESS), 2014, : 37 - 40