摘要
软件结构测试最棘手的就是测试用例的自动生成。本文将遗传算法引入分支覆盖测试用例的自动生成中,利用遗传算法的全局寻优优势,生成达到全部分支覆盖的测试数据。文中结合实例建立了基于遗传算法的模型,并给出了参数编码、交叉和变异等关键技术的实现代码。
The key of software structural testing is how to generate test cases automatically. Genetic algorithm is introduced into Branch-Cover test cases generating model in this paper. With the advantage of searching optimum in solution space,Genetic algo-rithm has successfully generated Branch-Cover test data that can cover all branches. The author has built a model of auto-generating test cases based on GA using a practical case,and presented some realized codes of important techniques such as parameters encod-in...
出处
《微计算机信息》
北大核心
2008年第12期270-272,共3页
Control & Automation
关键词
软件测试
遗传算法
分支覆盖
测试用例
程序插装
software testing
genetic algorithm
Branch-Cover
test case
program instrumentation