arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1608.03181cs.SE
收藏

不确定性驱动的黑盒测试数据生成

Uncertainty-Driven Black-Box Test Data Generation

Neil Walkinshaw, Gordon Fraser

摘要:

我们永远不能仅仅通过测试就确定一个软件系统是正确的,但是随着每一次成功的测试,我们对它的正确性的不确定性就会减少。在没有源代码或详细的规范和模型的情况下,测试通常是随机生成或选择的。然而,与其随机选择测试,不如选择那些最能减少我们对正确性的不确定性的测试。为了指导测试生成,我们应用在机器学习中被称为“查询策略框架”的内容:我们推断被测系统的行为模型,并选择推断模型“最不确定”的那些测试。因此,在被测系统上运行这些测试直接针对到目前为止测试未能通知模型的那些部分。我们提供了一个实现,使用一个遗传编程引擎模型推理,以使一个不确定性采样技术被称为“查询委员会”,并评估它的八个主题系统从Apache共享数学框架和JodaTime。结果表明,测试生成使用不确定性抽样优于传统的和自适应随机测试。

英文摘要:

We can never be certain that a software system is correct simply by testing it, but with every additional successful test we become less uncertain about its correctness. In absence of source code or elaborate specifications and models, tests are usually generated or chosen randomly. However, rather than randomly choosing tests, it would be preferable to choose those tests that decrease our uncertainty about correctness the most. In order to guide test generation, we apply what is referred to in Machine Learning as "Query Strategy Framework": We infer a behavioural model of the system under test and select those tests which the inferred model is "least certain" about. Running these tests on the system under test thus directly targets those parts about which tests so far have failed to inform the model. We provide an implementation that uses a genetic programming engine for model inference in order to enable an uncertainty sampling technique known as "query by committee", and evaluate it on eight subject systems from the Apache Commons Math framework and JodaTime. The results indicate that test generation using uncertainty sampling outperforms conventional and Adaptive Random Testing.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑