论文部分内容阅读
提出了一种基于改进的菌群算法测试用例自动生成技术。该方法通过参数编码的方式使测试用例问题映射到变量空闻,通过适应度函数的构造使测试用例问题转化为优化问题,通过程序插桩的方式实现了算法和被测程序的自动化交互进而自动生成满足需要的测试用例。经过实验验证,该方法能够有效地生成覆盖指定路径的测试用例,并对效果和参数选择进行了分析。“,”A This study proposes a kind of automatic test data generation method based on improved bacterial foraging algorithm. The approach encodes the parameters to map the test case issue into variable space ,construct the fitness function to transform the test case problem into an optimization problem, and instrument the program to achieve automation interaction between the algorithm and the program. After experimental verification,the method could effectively generate test cases that covered the specified path. and then analyzed the effects and narameters selected