A Revisit of Metrics for Test Case Prioritization Problems

被引:2
|
作者
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 条
  • [1] Test Case Prioritization with Textual Comparison Metrics
    Tumeng, Rooster
    Jawawi, Dayang Norhayati Abang
    Isa, Mohd Adham
    [J]. 2015 9TH MALAYSIAN SOFTWARE ENGINEERING CONFERENCE (MYSEC2015), 2015, : 7 - 12
  • [2] A Test Case Prioritization Approach Based on Software Component Metrics
    Silva, Dennis Savio
    Rabelo, Ricardo
    Santos Neto, Pedro
    Britto, Ricardo
    Oliveira, Pedro Almir
    [J]. 2019 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN AND CYBERNETICS (SMC), 2019, : 2939 - 2945
  • [3] How Do Software Metrics Affect Test Case Prioritization?
    Ozawa, Masataka
    Dohi, Tadashi
    Okamura, Hiroyuki
    [J]. 2018 IEEE 42ND ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE (COMPSAC), VOL 1, 2018, : 245 - 250
  • [4] An Empirical Study on Test Case Prioritization Metrics for Deep Neural Networks
    Shi, Ying
    Yin, Beibei
    Zheng, Zheng
    Li, Tiancheng
    [J]. 2021 IEEE 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2021), 2021, : 157 - 166
  • [5] TIME-AWARE AND WEIGHTED FAULT SEVERITY BASED METRICS FOR TEST CASE PRIORITIZATION
    Mary, S. A. Sahaaya Arul
    Krishnamoorthi, R.
    [J]. INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2011, 21 (01) : 129 - 142
  • [6] Test Case Prioritization Using Test Similarities
    Haghighatkhah, Alireza
    Mantyla, Mika
    Oivo, Markku
    Kuvaja, Pasi
    [J]. PRODUCT-FOCUSED SOFTWARE PROCESS IMPROVEMENT, PROFES 2018, 2018, 11271 : 243 - 259
  • [7] Test case prioritization for model transformations
    Iqbal, Saqib
    Al-Azzoni, Issam
    [J]. JOURNAL OF KING SAUD UNIVERSITY-COMPUTER AND INFORMATION SCIENCES, 2022, 34 (08) : 6324 - 6338
  • [8] Adaptive Random Test Case Prioritization
    Jiang, Bo
    Zhang, Zhenyu
    Chan, W. K.
    Tse, T. H.
    [J]. 2009 IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 2009, : 233 - 244
  • [9] Test case prioritization and mutation testing
    Le Traon, Yves
    Xie, Tao
    [J]. SOFTWARE TESTING VERIFICATION & RELIABILITY, 2024, 34 (01):
  • [10] On the Gain of Measuring Test Case Prioritization
    Lv, Junpeng
    Yin, Beibei
    Cai, Kai-Yuan
    [J]. 2013 IEEE 37TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE (COMPSAC), 2013, : 627 - 632