A Cost-Effective Random Testing Method for Programs with Non-Numeric Inputs

被引:30
作者
Barus, Arlinta C. [1 ]
Chen, Tsong Yueh [2 ]
Kuo, Fei-Ching [2 ]
Liu, Huai [3 ]
Merkel, Robert [4 ]
Rothermel, Gregg [5 ]
机构
[1] Inst Teknol Del, Kab Toba Samosir 22381, Sumatera Utara, Indonesia
[2] Swinburne Univ Technol, Hawthorn, Vic 3122, Australia
[3] RMIT Univ, Australia India Res Ctr Automat Software Engn, Melbourne, Vic 3001, Australia
[4] Monash Univ, Clayton, Vic 3800, Australia
[5] Univ Nebraska, Dept Comp Sci & Engn, Lincoln, NE 68588 USA
关键词
Random testing; adaptive random testing; category-partition method;
D O I
10.1109/TC.2016.2547380
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Randomtesting (RT) has been widely used in the testing of various software and hardware systems. Adaptive random testing (ART) is a family of random testing techniques that aim to enhance the failure-detection effectiveness of RT by spreading random test cases evenly throughout the input domain. ART has been empirically shown to be effective on software with numeric inputs. However, there are two aspects of ART that need to be addressed to render its adoption more widespread-applicability to programs with non-numeric inputs, and the high computation overhead of many ART algorithms. We present a linear-order ART algorithm for software with non-numeric inputs. The key requirement for using ART with non-numeric inputs is an appropriate "distance" measure. We use the concepts of categories and choices from category-partition testing to formulate such a measure. We investigate the failure-detection effectiveness of our technique by performing an empirical study on 14 object programs, using two standard metrics-F-measure and P-measure. Our ART algorithm statistically significantly outperforms RT on 10 of the 14 programs studied, and exhibits performance similar to RT on three of the four remaining programs. The selection overhead of our ART algorithm is close to that of RT.
引用
收藏
页码:3509 / 3523
页数:15
相关论文
共 30 条
  • [1] AGRAWAL VD, 1978, IEEE T COMPUT, V27, P1054, DOI 10.1109/TC.1978.1674994
  • [2] DATA DIVERSITY - AN APPROACH TO SOFTWARE FAULT TOLERANCE
    AMMANN, PE
    KNIGHT, JC
    [J]. IEEE TRANSACTIONS ON COMPUTERS, 1988, 37 (04) : 418 - 425
  • [3] Random Testing: Theoretical Results and Practical Implications
    Arcuri, Andrea
    Iqbal, Muhammad Zohaib
    Briand, Lionel
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2012, 38 (02) : 258 - 277
  • [4] Arcuri A, 2010, LECT NOTES COMPUT SC, V6435, P95, DOI 10.1007/978-3-642-16573-3_8
  • [5] Arcuri Andrea., 2011, Proceedings of the 2011 International Symposium on Software Testing and Analysis, P265
  • [6] Chan KP, 2006, P INT COMP SOFTW APP, P485
  • [7] Quasi-random testing
    Chen, Tsong Yueh
    Merkel, Robert
    [J]. IEEE TRANSACTIONS ON RELIABILITY, 2007, 56 (03) : 562 - 568
  • [8] On the statistical properties of testing effectiveness measures
    Chen, Tsong Yueh
    Kuo, Fei-Ching
    Merkel, Robert
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2006, 79 (05) : 591 - 601
  • [9] Chen TY, 2004, LECT NOTES COMPUT SC, V3321, P320
  • [10] Mirror adaptive random testing
    Chen, TY
    Kuo, FC
    Merkel, RG
    Ng, SP
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2004, 46 (15) : 1001 - 1010