摘要
软件测试是保证软件质量、提高软件可靠性的关键,而提高生成测试用例的自动化程度又是提高软件测试自动化程度的关键。为了提高生成测试用例的自动化程度,改进了基本粒子群优化算法,提出了基于改进的粒子群优化算法的测试用例自动生成系统框架,并给出了基于改进的粒子群优化算法的测试用例自动生成算法。实验结果表明,使用文中提出的算法,自动生成测试用例所需的迭代次数和平均运行时间明显优于遗传算法等测试用例自动生成算法,一定程度上提高了生成测试用例的自动化程度。
The software testing is an important step that guarantees software quality and reliability,and improving the automation ability of testcase generation is the key point for the entire process.In order to improve the automation ability of testcase generation,has improved particle swarm optimization algorithm and has put forward the frame of automatic testcase generation system based on particle swarm optimization algorithm,and automatic testcase generation functions based on particle swarm optimization algorithm.Experiment has proved that this improved algorithm's convergence speed is generally faster than other algorithms such as genetic algorithm,and improving the automation ability of testcase generation.
出处
《计算机技术与发展》
2010年第9期24-27,共4页
Computer Technology and Development
基金
西安市科技计划项目(YF07024)
关键词
软件测试
自动测试
测试用例
粒子群
software testing
automatic software testing
testcase
particle swarm