arrow
返回

Inputs From Hell: Learning Input Distributions for Grammar-Based Test Generation

delete2022-04-01
delete15
delete
OA
AI
E
Ezekiel Soremekun *
E
Esteban Pavese
N
Nikolas Havrikov
L
Lars Grunske
A
Andreas Zeller
DOI:10.1109/TSE.2020.3013716delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Grammars can serve as producers for structured test inputs that are syntactically correct by construction. A probabilistic grammar assigns probabilities to individual productions, thus controlling the distribution of input elements. Using the grammars as input parsers, we show how to leant input distributions from input samples, allowing to create inputs that are similar to the sample; by inverting the probabilities, we can create inputs that are dissimilar to the sample. This allows for three test generation strategies: 1) Common inputs-by learning from common inputs, we can create inputs that are similar to the sample; this is useful for regression testing. 2) Uncommon inputs-learning from common inputs and inverting probabilities yields inputs that are strongly dissimilar to the sample; this is useful for completing a test suite with inputs from hell that test uncommon features, yet are syntactically valid. 3) Failure-inducing inputs-learning from inputs that caused failures in the past gives us inputs that share similar features and thus also have a high chance of triggering bugs; this is useful for testing the completeness of fixes. Our evaluation on three common input formats (JSON, JavaScript, CSS) shows the effectiveness of these approaches. Results show that common inputs reproduced 96 percent of the methods induced by the samples. In contrast, for almost all subjects (95 percent), the uncommon inputs covered significantly different methods from the samples. Learning from failure-inducing samples reproduced all exceptions (100 percent) triggered by the failure-inducing samples and discovered new exceptions not found in any of the samples learned from.
Keyword:
Test case generation
probabilistic grammars
input samples
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

H
Humboldt University of Berlin
学者数:
3.2W
论文数: 2.7W
被引数: 47
U
university of luxembourg
学者数:
5.2K
论文数: 4.8K
被引数: 4
引用论文

引用论文

Cysteine Dioxygenase 1 Is a Tumor Suppressor Gene Silenced by Promoter Methylation in Multiple Human Cancers半胱氨酸双加氧酶1是一种在多种人类癌症中被启动子甲基化沉默的抑癌基因
err2012-09-27
err0
errOAAI
errMariana Brait; Shizhang Ling; Jatin K. Nagpal; Xiaofei Chang; Hannah Lui Park; Juna Lee; Jun Okamura; Keishi Yamashita; David Sidransky; Myoung Sook Kim
err分享
err收藏
Efficient Bone Conduction Hearing Device With a Novel Piezoelectric Transducer Using Skin as an Electrode
err2022-11-01
err0
errOAAI
errIchiro Furuta; Hideaki Ogita; Fukuichiro Iguchi; Takayuki Okano; Kohei Yamahara; Tatsuya Namatsu; Shuichi Kawata; Koichi Omori; Norio Yamamoto
err分享
err收藏
Exploring Perceptual Intensity Properties Using Electrotactile Stimulation on Fingertips
err2023-10-01
err0
PREAI
errZiliang Zhou; Xiaoxin Wang; Yicheng Yang; Jia Zeng; Honghai Liu
err分享
err收藏
A Survey on Software Fault Localization软件故障定位研究综述
err2016-08-01
err741
errOAAI
errWong, W. Eric; Gao, Ruizhi; Li, Yihao; Abreu, Rui; Wotawa, Franz
err分享
err收藏
Kimberlite Terminology and Classification金伯利岩术语和分类
err2013-07-12
err0
PREAI
errB. H. Scott Smith; T. E. Nowicki; J. K. Russell; K. J. Webb; R. H. Mitchell; C. M. Hetman; M. Harder; E. M. W. Skinner; Jv. A. Robey
err分享
err收藏
Infrared Study of Comparative Adsorption of Some Alcohols and Thiols on γ- Alumina
err1982-01-01
err0
PREAI
errJ. Travert; O. Saur; M. Benaissa; J. Lamotte; J. C. Lavalley
err分享
err收藏
学者 查看更多内容