A Revisit of Metrics for Test Case Prioritization Problems

被引:3
|
作者
Wang, Ziyuan [1 ]
Fang, Chunrong [2 ]
Chen, Lin [2 ]
Zhang, Zhiyi [3 ]
机构
[1] Nanjing Univ Posts & Telecommun, Sch Comp Sci, Nanjing 210023, Jiangsu, Peoples R China
[2] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing 210023, Jiangsu, Peoples R China
[3] Nanjing Univ Aeronaut & Astronaut, Coll Comp Sci & Technol, Nanjing 210016, Jiangsu, Peoples R China
基金
中国国家自然科学基金;
关键词
Software testing; test case evolution; test case prioritization; fault detection efficiency; metric;
D O I
10.1142/S0218194020500291
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
For the test case prioritization problems, the average percent of faults detected (APFD) and its variant versions are widely used as metrics to evaluate prioritized test suite's efficiency of fault detection. By a revisit of metrics for test case prioritization, we observe that APFD is only available for the scenarios where all test suites under evaluation contain the same number of test cases. Such a limitation is often overlooked, and lead to incorrect results when comparing fault detection efficiency of test suites with different sizes. Moreover, APFD cannot precisely illustrate the process of fault detection in the real world. Besides the APFD, most of its variants, including the NAPFD and the APFD(CW), have similar problems. This paper points out these limitations in detail by analyzing the physical explanation of APFD series metrics formally. In order to eliminate these limitations, we propose a series of improved metrics, including the relative average percent of faults detected (RAPFD) and the relative cost-cognizant weighted average percent of faults detected (RAPFD(CW)), to evaluate the efficiency of the test suite. Furthermore, for the scenario of parallel testing, a series of metrics including the relative average percent of faults detected in parallel testing (P-RAPFD) and the relative cost-cognizant weighted average percent of faults detected in parallel testing (P-RAPFD(CW)) are proposed too. All the proposed metrics refer to both the speed of fault detection and the constraint of the testing resource. A formal analysis and some examples show that all the proposed metrics provide much more precise illustrations of the fault detection process.
引用
收藏
页码:1139 / 1167
页数:29
相关论文
共 50 条
  • [21] An Improvement to Test Case Failure Prediction in the Context of Test Case Prioritization
    Palma, Francis
    Abdou, Tamer
    Bener, Ayse
    Maidens, John
    Liu, Stella
    PROMISE'18: PROCEEDINGS OF THE 14TH INTERNATIONAL CONFERENCE ON PREDICTIVE MODELS AND DATA ANALYTICS IN SOFTWARE ENGINEERING, 2018, : 80 - 89
  • [22] Dynamic Test Case Prioritization in Industrial Test Result Datasets
    Torbunova, Alina
    Strandberg, Per Erik
    Porres, Ivan
    PROCEEDINGS OF THE 2024 IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATION OF SOFTWARE TEST, AST 2024, 2024, : 154 - 158
  • [23] Modular Based Multiple Test Case Prioritization
    Prakash, N.
    Rangaswamy, T. R.
    2012 IEEE INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND COMPUTING RESEARCH (ICCIC), 2012, : 496 - 502
  • [24] Value based Regression Test Case Prioritization
    Ashraf, E.
    Rauf, A.
    Mahmood, K.
    WORLD CONGRESS ON ENGINEERING AND COMPUTER SCIENCE, WCECS 2012, VOL I, 2012, : 156 - 160
  • [25] Test Case Prioritization Using Lexicographical Ordering
    Eghbali, Sepehr
    Tahvildari, Ladan
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2016, 42 (12) : 1178 - 1195
  • [26] Test case prioritization using relevant slices
    Jeffrey, Dennis
    Gupta, Neelam
    30TH ANNUAL INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE, VOL 1, REGULAR PAPERS/PANELS, PROCEEDINGS, 2006, : 411 - +
  • [27] Applying test case prioritization to software microbenchmarks
    Christoph Laaber
    Harald C. Gall
    Philipp Leitner
    Empirical Software Engineering, 2021, 26
  • [28] Efficient Fault Detection by Test Case Prioritization via Test Case Selection
    J. Paul Rajasingh
    P. Senthil Kumar
    S. Srinivasan
    Journal of Electronic Testing, 2023, 39 : 659 - 677
  • [29] An improved method for test case prioritization by incorporating historical test case data
    Khalilian, Alireza
    Azgomi, Mohammad Abdollahi
    Fazlalizadeh, Yalda
    SCIENCE OF COMPUTER PROGRAMMING, 2012, 78 (01) : 93 - 116
  • [30] Difficulty and Severity-Oriented Metrics for Test Prioritization in Deep Learning Systems
    Al-Qadasi, Hamzah
    Falcone, Ylies
    Bensalem, Saddek
    2023 IEEE INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE TESTING, AITEST, 2023, : 40 - 48