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

基于变形测试的遗传算法系统测试

Systematic Testing of Genetic Algorithms: A Metamorphic Testing based Approach

Janette Rounds, Upulee Kanewala

摘要:

遗传算法是一组常用的优化算法,常用于辅助软件测试。然而,由于遗传算法的随机性和缺乏已知的输出,还没有将系统的软件测试技术应用于遗传算法的工作。统计变形测试是一种用于测试输出未知或程序具有随机元素时的程序的有用技术。在本文中,我们确定了17个变形关系测试的遗传算法和显示,通过突变测试,这些关系是更有效地发现缺陷比传统的单元测试的基础上已知的输出。我们研究了系统级关系的失败率时,初始化与各种适应度函数。我们发现三个关系失败过度,然后我们修改这些关系,使他们失败的频率较低。我们还确定了一些变形关系的遗传算法,可推广到不同类型的进化算法,并表明我们的关系有相似的突变得分之间的两个实现。这是第一次统计变形测试已被应用于测试遗传算法。

英文摘要:

Genetic Algorithms are a popular set of optimization algorithms often used to aid software testing. However, no work has been done to apply systematic software testing techniques to genetic algorithms because of the stochasticity and the lack of known outputs for genetic algorithms. Statistical metamorphic testing is a useful technique for testing programs when the output is unknown or when the program has random elements. In this paper, we identify 17 metamorphic relations for testing a genetic algorithm and show, through mutation testing, that these relations are more effective at finding defects than traditional unit tests based on known outputs. We examined the failure rates of the system-level relations when initialized with various fitness functions. We found three relations failed excessively and we then modified these relations so that they failed less often. We also identified some metamorphic relations for genetic algorithms that are generalizable across different types of evolutionary algorithms and showed that our relations had similar mutation scores between two implementations. This is the first time statistical metamorphic testing has been applied for testing genetic algorithms.

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

↑