摘要:In succession, the size and complexity of the program increase and the scope of testing expand. So, to ensure deadline delivery and reduce development testing costs, program testing efficiency must be improved. Therefore, to ensure that the product is delivered on the deadline and the cost of testing development is reduced, the efficiency of the program's testing must be enhanced. In this study, highlighting is placed to generate test suite automatically to reach increase the coverage of paths based on two algorithms Grey Wolf Optimizer algorithm (GWO) and Particle swarm optimization (PSO). The results of the implementation will be compared with each other to demonstrate the performance and efficiency of the proposed methodology and the results show that the PSO algorithm has better than the GWO algorithm.