Software testing plays a vital role in software development life cycle. How to achieve path coverage
increase testing efficiency is the heart of the matter. This paper starts with test requirements for test requirements reduction by path analysis
and checks the dependency among conditional statements by calculating conditional probability to detect infeasible paths in program. In addition
this paper combines genetic algorithm(GA) with firefly algorithm(FA)
calculates fitness function by branch distance and layer approach
considers the location update of FA as genetic operation of GA
thus reducing redundant test cases and improving the astringency of the algorithm. The proposed method is applied to benchmark and industrial programs
and is compared with other alternative approaches. The experimental result demonstrates that the proposed method is efficient in generating test cases for path coverage.
关键词
Keywords
references
巩敦卫.测试数据进化生成理论及应用[M].北京:科学出版社, 2014.
Khan R, Amjad M, Srivastava A K. Generation of automatic test cases with mutation analysis and hybrid genetic algorithm[C]// International Conference on Computational Intelligence % Communication Technology. Ghaziabad, India, IEEE, 2017: 1-4.
Khan R, Amjad M. Automatic test case generation for unit software testing using genetic algorithm and mutation analysis[C]// IEEE up Section Conference on Electrical Computer and Electronics. Jaipur, Rajasthan India, IEEE, 2015: 1-5.
Gong D, Yao X. Automatic detection of infeasible paths in software testing[J]. Software Iet, 2010, 4(5):361-370. DOI: 361
Mann M, Sangwan O P, Tomar P, et al. Automatic goal-oriented test data generation using a Genetic algorithm and simulated annealing[C]// International Conference Cloud System and Big Data Engineering. China, Chengdu, IEEE, 2016: 83-87.
Kalaee A, Rafe V. An optimal solution for test case generation using robdd graph and pso algorithm[J]. Quality % Reliability Engineering International, 2016, 32(7):2263-2279. DOI: 2263
Lu L, Zeng M. Ant colony optimization based test case generation method in context-aware applications[J]. Journal of Computational Information Systems, 2015, 11(10):3641-3648. DOI: 3641
Mcminn P. Evolutionary search for test data in the presence of state behaviour[J]. University of Sheffield, 2005(12) :41-46. DOI: 41
Aleti A, Grunske L. Test data generation with a Kalman filter-based adaptive genetic algorithm[J]. Journal of Systems % Software, 2015, 103(C):343-352. DOI: 343