Integration testing is a crucial phase in software testing, and determining the sequence of class integration testing is a key issue within it. A reasonable class integration test sequence can reduce the cost of test stubs, thereby lowering the overall testing cost. When class integration test sequences are generated for large-scale programs, the particle swarm optimization (PSO) algorithm is prone to premature convergence. To address this, this paper proposes a method for generating class integration test sequences on the basis of a simulated annealing particle swarm optimization (SAPSO) algorithm. When particles fall into a local optimal region, the introduction of an annealing mechanism enables them to quickly escape this region and continue searching. The experimental results demonstrate that this method can effectively slow the convergence of the PSO algorithm, thereby yielding a better solution.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

A Method for Generating Class Integration Test Sequences Based on Simulated Annealing Particle Swarm Optimization

  • Junjie Liu

摘要

Integration testing is a crucial phase in software testing, and determining the sequence of class integration testing is a key issue within it. A reasonable class integration test sequence can reduce the cost of test stubs, thereby lowering the overall testing cost. When class integration test sequences are generated for large-scale programs, the particle swarm optimization (PSO) algorithm is prone to premature convergence. To address this, this paper proposes a method for generating class integration test sequences on the basis of a simulated annealing particle swarm optimization (SAPSO) algorithm. When particles fall into a local optimal region, the introduction of an annealing mechanism enables them to quickly escape this region and continue searching. The experimental results demonstrate that this method can effectively slow the convergence of the PSO algorithm, thereby yielding a better solution.