进化测试中基于函数调用流的适应度函数设计

Xiyang Liu, Miao Zhang, Zhiwen Bai, Lei Wang, Wen Du, Yan Wang
{"title":"进化测试中基于函数调用流的适应度函数设计","authors":"Xiyang Liu, Miao Zhang, Zhiwen Bai, Lei Wang, Wen Du, Yan Wang","doi":"10.1109/ASPEC.2007.13","DOIUrl":null,"url":null,"abstract":"Evolutionary Testing has been shown a promising technology for the automatic test data generation. It reformulates test data generation as a metaheuristic search. A well- designed fitness function is essential to the efficiency of evolutionary search. Many efforts have been directed at the design and implementation of fitness function in recent years. However, previous work has just focused on the control dependency of the target on the branches in the same function. When function calls exist in the desired execution trace to the target, the evaluation of the test data on the coverage of these function calls, which should be provided to the evolutionary search, is not captured by the existing fitness function. In this case, the existing fitness function can not fairly evaluate the test data. And the evolutionary search will be hampered or even fail in severe cases. In this paper, a new term is first proposed to incorporate into the existing fitness function. It is applied to evaluate the test data's coverage of function calls along the desired path to the target. The new fitness function can evaluate the test data more fairly, resulting in a better guidance to the evolutionary search. This can be seen by the experiments carried out on two cases.","PeriodicalId":273688,"journal":{"name":"14th Asia-Pacific Software Engineering Conference (APSEC'07)","volume":"35 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2007-12-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"8","resultStr":"{\"title\":\"Function Call Flow based Fitness Function Design in Evolutionary Testing\",\"authors\":\"Xiyang Liu, Miao Zhang, Zhiwen Bai, Lei Wang, Wen Du, Yan Wang\",\"doi\":\"10.1109/ASPEC.2007.13\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Evolutionary Testing has been shown a promising technology for the automatic test data generation. It reformulates test data generation as a metaheuristic search. A well- designed fitness function is essential to the efficiency of evolutionary search. Many efforts have been directed at the design and implementation of fitness function in recent years. However, previous work has just focused on the control dependency of the target on the branches in the same function. When function calls exist in the desired execution trace to the target, the evaluation of the test data on the coverage of these function calls, which should be provided to the evolutionary search, is not captured by the existing fitness function. In this case, the existing fitness function can not fairly evaluate the test data. And the evolutionary search will be hampered or even fail in severe cases. In this paper, a new term is first proposed to incorporate into the existing fitness function. It is applied to evaluate the test data's coverage of function calls along the desired path to the target. The new fitness function can evaluate the test data more fairly, resulting in a better guidance to the evolutionary search. This can be seen by the experiments carried out on two cases.\",\"PeriodicalId\":273688,\"journal\":{\"name\":\"14th Asia-Pacific Software Engineering Conference (APSEC'07)\",\"volume\":\"35 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2007-12-04\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"8\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"14th Asia-Pacific Software Engineering Conference (APSEC'07)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ASPEC.2007.13\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"14th Asia-Pacific Software Engineering Conference (APSEC'07)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ASPEC.2007.13","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 8

摘要

进化测试已被证明是一种很有前途的自动测试数据生成技术。它将测试数据生成重新表述为元启发式搜索。一个设计良好的适应度函数对进化搜索的效率至关重要。近年来,针对适应度函数的设计和实现进行了大量的研究。然而,以前的工作只关注目标在同一函数分支上的控制依赖关系。当函数调用存在于对目标的期望执行跟踪中时,对这些函数调用的覆盖率的测试数据的评估应该提供给进化搜索,而不是由现有的适应度函数捕获。在这种情况下,现有的适应度函数不能公平地评估测试数据。在严重的情况下,进化搜索将受到阻碍甚至失败。本文首次提出了一个新的术语,将其融入到已有的适应度函数中。它被应用于评估沿着期望路径到目标的函数调用的测试数据的覆盖率。新的适应度函数可以更公平地评估测试数据,从而更好地指导进化搜索。这可以从两个案例的实验中看出。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Function Call Flow based Fitness Function Design in Evolutionary Testing
Evolutionary Testing has been shown a promising technology for the automatic test data generation. It reformulates test data generation as a metaheuristic search. A well- designed fitness function is essential to the efficiency of evolutionary search. Many efforts have been directed at the design and implementation of fitness function in recent years. However, previous work has just focused on the control dependency of the target on the branches in the same function. When function calls exist in the desired execution trace to the target, the evaluation of the test data on the coverage of these function calls, which should be provided to the evolutionary search, is not captured by the existing fitness function. In this case, the existing fitness function can not fairly evaluate the test data. And the evolutionary search will be hampered or even fail in severe cases. In this paper, a new term is first proposed to incorporate into the existing fitness function. It is applied to evaluate the test data's coverage of function calls along the desired path to the target. The new fitness function can evaluate the test data more fairly, resulting in a better guidance to the evolutionary search. This can be seen by the experiments carried out on two cases.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信