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 条
  • [31] Test-case prioritization: achievements and challenges
    Hao, Dan
    Zhang, Lu
    Mei, Hong
    FRONTIERS OF COMPUTER SCIENCE, 2016, 10 (05) : 769 - 777
  • [32] Test Case Prioritization Techniques "An Empirical Study"
    Sharma, Neha
    Sujata
    Purohit, G. N.
    2014 INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE COMPUTING AND APPLICATIONS (ICHPCA), 2014,
  • [33] Test case prioritization using partial attention?
    Zhang, Quanjun
    Fang, Chunrong
    Sun, Weisong
    Yu, Shengcheng
    Xu, Yutao
    Liu, Yulei
    JOURNAL OF SYSTEMS AND SOFTWARE, 2022, 192
  • [34] 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
  • [35] Acceptance testing based test case prioritization
    Geetha, U.
    Sankar, Sharmila
    Sandhya, M.
    COGENT ENGINEERING, 2021, 8 (01):
  • [36] Test case prioritization based on clustering analysis
    Xue, Yifan
    Mao, Yuguang
    PROCEEDINGS OF THE 4TH INTERNATIONAL CONFERENCE ON MECHATRONICS, MATERIALS, CHEMISTRY AND COMPUTER ENGINEERING 2015 (ICMMCCE 2015), 2015, 39 : 1449 - 1453
  • [37] Test case prioritization: A family of empirical studies
    Elbaum, S
    Malishevsky, AG
    Rothermel, G
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2002, 28 (02) : 159 - 182
  • [38] A multiple parameter test case prioritization model
    Aggarwal, K. K.
    Singh, Yogesh
    Kaur, Arvinder
    JOURNAL OF STATISTICS & MANAGEMENT SYSTEMS, 2005, 8 (02): : 369 - 386
  • [39] An effective test case prioritization by combination of strategies
    Ehsan Ganjkhani
    Mohsen Afsharchi
    SN Applied Sciences, 2019, 1
  • [40] Test case prioritization: a systematic mapping study
    Cagatay Catal
    Deepti Mishra
    Software Quality Journal, 2013, 21 : 445 - 478