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 条
  • [41] System test case prioritization of new and regression test cases
    Srikanth, H
    Williams, L
    Osborne, J
    2005 INTERNATIONAL SYMPOSIUM ON EMPIRICAL SOFTWARE ENGINEERING (ISESE), PROCEEDINGS, 2005, : 62 - 71
  • [42] Efficient Fault Detection by Test Case Prioritization via Test Case Selection
    Rajasingh, J. Paul
    Kumar, P. Senthil
    Srinivasan, S.
    JOURNAL OF ELECTRONIC TESTING-THEORY AND APPLICATIONS, 2023, 39 (5-6): : 659 - 677
  • [43] Concrete hyperheuristic framework for test case prioritization
    Bian, Yi
    Li, Zheng
    Guo, Junxia
    Zhao, Ruilian
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2018, 30 (11)
  • [44] Test-Case Prioritization for Configuration Testing
    Cheng, Runxiang
    Zhang, Lingming
    Marinov, Darko
    Xu, Tianyin
    ISSTA '21: PROCEEDINGS OF THE 30TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, 2021, : 452 - 465
  • [45] The Ten Best Practices for Test Case Prioritization
    Catal, Cagatay
    INFORMATION AND SOFTWARE TECHNOLOGIES, 2012, 319 : 452 - 459
  • [46] An effective test case prioritization by combination of strategies
    Ganjkhani, Ehsan
    Afsharchi, Mohsen
    SN APPLIED SCIENCES, 2019, 1 (09):
  • [47] Test Case Prioritization based on Requirement Correlations
    Ma, Tingting
    Zeng, Hongwei
    Wang, Xiaolin
    2016 17TH IEEE/ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCE, NETWORKING AND PARALLEL/DISTRIBUTED COMPUTING (SNPD), 2016, : 419 - 424
  • [48] Classification Model for Test Case Prioritization Techniques
    Sujata
    Purohit, G. N.
    2017 IEEE INTERNATIONAL CONFERENCE ON COMPUTING, COMMUNICATION AND AUTOMATION (ICCCA), 2017, : 919 - 924
  • [49] Test Case Prioritization for Multiple Processing Queues
    Qu, Bo
    Nie, Changhai
    Xu, Baowen
    ISISE 2008: INTERNATIONAL SYMPOSIUM ON INFORMATION SCIENCE AND ENGINEERING, VOL 2, 2008, : 646 - 649
  • [50] Test case prioritization using bat algorithm
    Bajaj A.
    Sangwan O.P.
    Bajaj, Anu (er.anubajaj@gmail.com), 1600, Bentham Science Publishers (14): : 593 - 598