单元和集成测试套件自动生成的改进遗传算法

Bui Thi Thao Anh
{"title":"单元和集成测试套件自动生成的改进遗传算法","authors":"Bui Thi Thao Anh","doi":"10.1109/RIVF48685.2020.9140778","DOIUrl":null,"url":null,"abstract":"Software testing is the most effort consuming phase in software development process. To minimize the human effort and maximize the number of faults detected, it is desirable to generate automatically test cases. The white box testing approach aims to study the internal structure and behavior of a program by considering some source code coverage criteria. The generation of test cases can be formulated as an optimization problem: searching for a minimum set of test case with the aim of covering as many targets as possible, given an adequacy criterion. In this paper, we propose an enhanced genetic algorithm in order to automatically generate test cases for object-oriented classes. On the one hand, we aim to propose a new strategy for chromosome representation as well as genetic operators (i.e., selection, mutation and crossover) in order to augment the speed of GA and produce effective compact test suites. On the other hand, we adapt our proposed approach to generate test cases for not only unit testing of a method but also integration testing with other methods. The experiment has been conducted for some case studies to assess our proposed approach. The empirical results show that our GA outperformed the state of the arts and the generated test cases allowed to reveal faults which are hard to be found by individual testing.","PeriodicalId":171525,"journal":{"name":"Conference on Research, Innovation and Vision for the Future in Computing & Communication Technologies","volume":"57 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":"{\"title\":\"Enhanced Genetic Algorithm for Automatic Generation of Unit and Integration Test Suite\",\"authors\":\"Bui Thi Thao Anh\",\"doi\":\"10.1109/RIVF48685.2020.9140778\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Software testing is the most effort consuming phase in software development process. To minimize the human effort and maximize the number of faults detected, it is desirable to generate automatically test cases. The white box testing approach aims to study the internal structure and behavior of a program by considering some source code coverage criteria. The generation of test cases can be formulated as an optimization problem: searching for a minimum set of test case with the aim of covering as many targets as possible, given an adequacy criterion. In this paper, we propose an enhanced genetic algorithm in order to automatically generate test cases for object-oriented classes. On the one hand, we aim to propose a new strategy for chromosome representation as well as genetic operators (i.e., selection, mutation and crossover) in order to augment the speed of GA and produce effective compact test suites. On the other hand, we adapt our proposed approach to generate test cases for not only unit testing of a method but also integration testing with other methods. The experiment has been conducted for some case studies to assess our proposed approach. The empirical results show that our GA outperformed the state of the arts and the generated test cases allowed to reveal faults which are hard to be found by individual testing.\",\"PeriodicalId\":171525,\"journal\":{\"name\":\"Conference on Research, Innovation and Vision for the Future in Computing & Communication Technologies\",\"volume\":\"57 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2020-10-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Conference on Research, Innovation and Vision for the Future in Computing & Communication Technologies\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/RIVF48685.2020.9140778\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Conference on Research, Innovation and Vision for the Future in Computing & Communication Technologies","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/RIVF48685.2020.9140778","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

摘要

软件测试是软件开发过程中最耗费精力的阶段。为了最小化人工工作和最大化检测到的错误数量,需要自动生成测试用例。白盒测试方法旨在通过考虑一些源代码覆盖标准来研究程序的内部结构和行为。测试用例的生成可以被表述为一个优化问题:在给定充分性标准的情况下,以覆盖尽可能多的目标为目标,搜索最小的测试用例集。为了自动生成面向对象类的测试用例,本文提出了一种改进的遗传算法。一方面,我们的目标是提出一种新的染色体表示策略以及遗传算子(即选择、突变和交叉),以提高遗传算法的速度并产生有效的紧凑测试套件。另一方面,我们调整了我们提出的方法,不仅为一个方法的单元测试生成测试用例,还为与其他方法的集成测试生成测试用例。实验已经进行了一些案例研究,以评估我们提出的方法。经验结果表明,我们的遗传算法优于艺术的状态,并且生成的测试用例允许揭示单个测试难以发现的错误。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Enhanced Genetic Algorithm for Automatic Generation of Unit and Integration Test Suite
Software testing is the most effort consuming phase in software development process. To minimize the human effort and maximize the number of faults detected, it is desirable to generate automatically test cases. The white box testing approach aims to study the internal structure and behavior of a program by considering some source code coverage criteria. The generation of test cases can be formulated as an optimization problem: searching for a minimum set of test case with the aim of covering as many targets as possible, given an adequacy criterion. In this paper, we propose an enhanced genetic algorithm in order to automatically generate test cases for object-oriented classes. On the one hand, we aim to propose a new strategy for chromosome representation as well as genetic operators (i.e., selection, mutation and crossover) in order to augment the speed of GA and produce effective compact test suites. On the other hand, we adapt our proposed approach to generate test cases for not only unit testing of a method but also integration testing with other methods. The experiment has been conducted for some case studies to assess our proposed approach. The empirical results show that our GA outperformed the state of the arts and the generated test cases allowed to reveal faults which are hard to be found by individual testing.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术文献互助群
群 号:604180095
Book学术官方微信