计算机科学 ›› 2009, Vol. 36 ›› Issue (8): 149-152.
• 软件工程与数据库技术 • 上一篇 下一篇
江胜,卢炎生
出版日期:
发布日期:
基金资助:
JIANG Sheng, LU Yan-sheng
Online:
Published:
摘要: 结构性测试中,进化测试是一种高效的自动生成高质量测试用例的技术。然而,当程序中出现非结构化特征时,在面向节点的测试标准下,其效率极其低下甚至不及随机测试生成方法。在考虑循环体内部出现跳转(goto,return)语句的情况下,提出了一种适应度计算方法。该方法在结合传统进化测试适应度计算的基础上,充分考虑了循环次数对于进化搜索的影响。实验结果表明,本适应度函数可以很好地引导进化搜索,并以较小的代价生成测试用例。
关键词: 进化测试,非结构化控制流,循环,适应度,进化搜索
Abstract: Evolutionary testing is a highly effective technique for automatically generating high quality test data, which is used for structural testing. However,under the criterion of Nodeoriented,testing of unstructured programs is inefficicnt and leading the technique degenerates to random testing. In this paper, with regard to the unstructured programs that contain arbitrary jump statement inner a loop body, a method of fitness calculation based on traditional approach was proposed, in which the impact of the number of iteration for evolutionary search was adequately considered. The experiments were then presented and the results show that the fitness function could effectively guide evolutionary search to find recauired test data at low cost.
Key words: Evolutionary testing, Unstructured control flow, Loop, Fitness, Evolutionary search
江胜,卢炎生. 基于非结构化控制流的进化测试方法[J]. 计算机科学, 2009, 36(8): 149-152. https://doi.org/
JIANG Sheng, LU Yan-sheng. Method of Evolutionary Testing Based on Unstructured Control Flow[J]. Computer Science, 2009, 36(8): 149-152. https://doi.org/
0 / / 推荐
导出引用管理器 EndNote|Reference Manager|ProCite|BibTeX|RefWorks
链接本文: https://www.jsjkx.com/CN/
https://www.jsjkx.com/CN/Y2009/V36/I8/149
Cited