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

被引:0
作者
Fitsum Meshesha Kifetew
Roberto Tiella
Paolo Tonella
机构
[1] Fondazione Bruno Kessler–IRST,
来源
Empirical Software Engineering | 2017年 / 22卷
关键词
Grammar based testing; Genetic programming; Grammar annotations;
D O I
暂无
中图分类号
学科分类号
摘要
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
页数:33
相关论文
共 23 条
  • [1] Booth TL(1973)Applying probability measures to abstract languages IEEE Trans Comput 100 442-450
  • [2] Thompson RA(2011)Quickcheck: a lightweight tool for random testing of haskell programs Acm sigplan notices 46 53-64
  • [3] Claessen K(2004)Boltzmann samplers for the random generation of combinatorial structures Comb Probab Comput 13 577-625
  • [4] Hughes J(2013)Whole test suite generation IEEE Trans Softw Eng 39 276-291
  • [5] Duchon P(1990)The estimation of stochastic context-free grammars using the inside-outside algorithm Comput Speech Lang 4 35-56
  • [6] Flajolet P(1990)Generating test data with enhanced context-free grammars IEEE Softw 7 50-55
  • [7] Louchard G(2010)Grammar-based genetic programming: a survey Genet Program Evolvable Mach 11 365-396
  • [8] Schaeffer G(2004)Search-based software test data generation: a survey J Softw Test Verification and Reliability (STVR) 14 105-156
  • [9] Fraser G(1999)Test-data generation using genetic algorithms J Softw Test Verification and Reliability (STVR) 9 263-282
  • [10] Arcuri A(1972)A sentence generator for testing parsers BIT Numer Math 12 366-375