arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1709.06017cs.SE
收藏

基于特征多样性的测试数据搜索

Searching for test data with feature diversity

Robert Feldt, Simon Poulding

摘要:

在软件测试中有一个隐含的假设,即为了有效的测试和实现不同类型和级别的覆盖,需要更多样化和变化的测试数据。还提出了基于信息论的通用方法来测量,从而隐含地创建不同的数据。然而,如果测试者能够识别测试数据的对于其中执行测试的特定域或上下文重要的特征,则使用诸如此类的通用多样性度量对于创建在这些特征方面示出多样性的测试输入可能是不充分的也是不高效的。在这里,我们调查不同的方法来找到不同的数据,根据一组特定的功能,如长度,递归的深度等,即使这些功能将比基于信息论的措施一般,他们的使用可能会提供一个测试人员更直接的控制类型的多样性,是目前在测试数据。我们的实验是在一个通用的测试数据生成框架的背景下进行的,该框架可以生成数值和高度结构化的数据。我们比较随机抽样的功能多样性不同的方法的基础上搜索,发现爬山搜索是有效的。这些实验强调了在寻找多样性时需要考虑的许多权衡。我们认为,经常性的测试数据生成激励建立统计模型,然后可以帮助更快地实现功能的多样性。

英文摘要:

There is an implicit assumption in software testing that more diverse and varied test data is needed for effective testing and to achieve different types and levels of coverage. Generic approaches based on information theory to measure and thus, implicitly, to create diverse data have also been proposed. However, if the tester is able to identify features of the test data that are important for the particular domain or context in which the testing is being performed, the use of generic diversity measures such as this may not be sufficient nor efficient for creating test inputs that show diversity in terms of these features. Here we investigate different approaches to find data that are diverse according to a specific set of features, such as length, depth of recursion etc. Even though these features will be less general than measures based on information theory, their use may provide a tester with more direct control over the type of diversity that is present in the test data. Our experiments are carried out in the context of a general test data generation framework that can generate both numerical and highly structured data. We compare random sampling for feature-diversity to different approaches based on search and find a hill climbing search to be efficient. The experiments highlight many trade-offs that needs to be taken into account when searching for diversity. We argue that recurrent test data generation motivates building statistical models that can then help to more quickly achieve feature diversity.

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

↑