Generating valid grammar-based test inputs by means of genetic programming and annotated grammars

被引:17
作者
Kifetew, Fitsum Meshesha [1 ]
Tiella, Roberto [1 ]
Tonella, Paolo [1 ]
机构
[1] Fdn Bruno Kessler IRST, Trento, Italy
关键词
Grammar based testing; Genetic programming; Grammar annotations;
D O I
10.1007/s10664-015-9422-4
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Automated generation of system level tests for grammar based systems requires the generation of complex and highly structured inputs, which must typically satisfy some formal grammar. In our previous work, we showed that genetic programming combined with probabilities learned from corpora gives significantly better results over the baseline (random) strategy. In this work, we extend our previous work by introducing grammar annotations as an alternative to learned probabilities, to be used when finding and preparing the corpus required for learning is not affordable. Experimental results carried out on six grammar based systems of varying levels of complexity show that grammar annotations produce a higher number of valid sentences and achieve similar levels of coverage and fault detection as learned probabilities.
引用
收藏
页码:928 / 961
页数:34
相关论文
共 22 条
  • [1] [Anonymous], 2010, Proceedings of the 19th International Symposium on Software Testing and Analysis, ISSTA'10
  • [2] Beyene M., 2012, 2012 IEEE Fifth International Conference on Software Testing, Verification and Validation (ICST 2012), P270, DOI 10.1109/ICST.2012.107
  • [3] APPLYING PROBABILITY MEASURES TO ABSTRACT LANGUAGES
    BOOTH, TL
    THOMPSON, RA
    [J]. IEEE TRANSACTIONS ON COMPUTERS, 1973, C 22 (05) : 442 - 449
  • [4] QuickCheck: a lightweight tool for random testing of Haskell programs
    Claessen, Koen
    Hughes, John
    [J]. ACM SIGPLAN NOTICES, 2011, 46 (04) : 53 - 64
  • [5] Boltzmann samplers for the random generation of combinatorial structures
    Duchon, P
    Flajolet, P
    Louchard, G
    Schaeffer, G
    [J]. COMBINATORICS PROBABILITY & COMPUTING, 2004, 13 (4-5) : 577 - 625
  • [6] Feldt R, 2013, PROC INT SYMP SOFTW, P350, DOI 10.1109/ISSRE.2013.6698888
  • [7] Fraser G., 2011, P 19 ACM SIGSOFT S 1, P416
  • [8] Whole Test Suite Generation
    Fraser, Gordon
    Arcuri, Andrea
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2013, 39 (02) : 276 - 291
  • [9] Grammar-based Whitebox Fuzzing
    Godefroid, Patrice
    Kiezun, Adam
    Levin, Michael Y.
    [J]. PLDI'08: PROCEEDINGS OF THE 2008 SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN & IMPLEMENTATION, 2008, : 206 - +
  • [10] Grune D, 1990, SOFTWARE PRACTICE EX