{"title":"A Technique for Generating Test Data Using Genetic Algorithm","authors":"Dinh Ngoc Thi, Vo Dinh Hieu, Nguyen Viet Ha","doi":"10.1109/ACOMP.2016.019","DOIUrl":null,"url":null,"abstract":"Automatic test data generation for path coverage is an undecidable problem and genetic algorithm (GA) has been used as one good solution. This paper presents a method for optimizing GA efficiency by identifying the most critical path clusters in a program under test. We do this by using the static program analysis to find all the paths having the path conditions with low probability in generating coverage data, then basing on these path conditions to adjust the procedure of generating new populations in GA. The proposed approach is also applied some program under tests. Experimental results show that improved GA which can generate suitable test data has higher path coverage than the traditional GA.","PeriodicalId":133451,"journal":{"name":"2016 International Conference on Advanced Computing and Applications (ACOMP)","volume":"887 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"9","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 International Conference on Advanced Computing and Applications (ACOMP)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ACOMP.2016.019","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 9
Abstract
Automatic test data generation for path coverage is an undecidable problem and genetic algorithm (GA) has been used as one good solution. This paper presents a method for optimizing GA efficiency by identifying the most critical path clusters in a program under test. We do this by using the static program analysis to find all the paths having the path conditions with low probability in generating coverage data, then basing on these path conditions to adjust the procedure of generating new populations in GA. The proposed approach is also applied some program under tests. Experimental results show that improved GA which can generate suitable test data has higher path coverage than the traditional GA.