Computer Science ›› 2019, Vol. 46 ›› Issue (7): 146-150.doi: 10.11896/j.issn.1002-137X.2019.07.023

• Software & Database Technology • Previous Articles     Next Articles

Test Case Generation Method Based on Particle Swarm Optimization Algorithm

ZHANG Na1,TENG Sai-na1,WU Biao2,BAO Xiao-an1   

  1. (School of Information Science and Technology,Zhejiang Sci-tech University,Hangzhou 310018,China)1
    (The Graduate School of East Asian Studies,Yamaguchi University,Yamaguchi-shi 753-8514,Japan)2
  • Received:2018-06-07 Online:2019-07-15 Published:2019-07-15

Abstract: In order to solve the problem of premature convergence and being easy to fall into local extremum in standard particle swarm optimization,this paper put forward a particle swarm optimization based on reverse-learning and search-again for test case generation.Firstly,the learning factor is improved by the nonlinear decreasing inertia weight function,realizing the preliminary search for the population,and the gradient descent method is used to complete the search-again of the optimal solution and the suboptimal solution.Secondly,setting taboo areas with extreme points as the center,the population diversity is improved by the reverse learning of the particles outside the taboo region.Finally,the branch distance method is used to construct fitness function to evaluate the quality of test cases.Experiment results show that the proposed method has advantages in coverage,iteration times and defect detection rate.

Key words: Learning factors, Particle swarm optimization, Reverse learning, Search again, Test case generation

CLC Number: 

  • TP311
[1]CHEN H Y,TSE T H,CHEN T Y.TACCLE:a methodology for object-oriented software testing at the class and clusterle-vels.ACM Transactions on Software Engineering & Metho-dology,2001,10(1):56-109.
[2]GALLAGHER M N,ARASIMHAN V L.ADT EST:A Test Data Generation Suite for A da Software Systems[J].IEEE Transactions on Software Engineering,1997,23(8):473-484.
[3]SHI Y,EBERHART R C.Fuzzy adaptive particle swarm optimization[C]∥Proceedings of the IEEE Congress on Evolutio-nary Computation.Seoul,Korea,2001:101-106.
[4]XIA X W,LIU J N,GAO K F,et al.An improved particle swarm optimizer based on tabu detecting and local learning strategy in a shrunk search space[J].Applied Soft Computing,2014,23(1):76-90.(in Chinese)
夏学文,刘经南,高柯夫,等.具备反向学习和局部学习能力的粒子群算法[J].计算机学报,2015,38(7):1397-1407.
[5]MENDES R,KENNEDY J,NEVES J.The fully informed particle swarm:Simpler,maybe better[J].IEEE Transactions on Evolutionary Computation,2004,8(3):204-210.
[6]ZHANG Y,GONG D W,SUN X Y,et al.Adaptive barebones particle swarm optimization algorithm and its convergence analysis[J]. Soft Computing,2014,18(7):1337-1352.
[7]BAO X A,YANG Y J,ZHANG N,et al.Composite test case generation method based on Adaptive Particle Swarm Optimization[J].Computer Science,2017,44(6):177-181.(in Chinese)
[1] ZHAO Dong-mei, WU Ya-xing, ZHANG Hong-bin. Network Security Situation Prediction Based on IPSO-BiLSTM [J]. Computer Science, 2022, 49(7): 357-362.
[2] LIU Zhang-hui, ZHENG Hong-qiang, ZHANG Jian-shan, CHEN Zhe-yi. Computation Offloading and Deployment Optimization in Multi-UAV-Enabled Mobile Edge Computing Systems [J]. Computer Science, 2022, 49(6A): 619-627.
[3] QIU Xu, BIAN Hao-bu, WU Ming-xiao, ZHU Xiao-rong. Study on Task Offloading Algorithm for Internet of Vehicles on Highway Based on 5G MillimeterWave Communication [J]. Computer Science, 2022, 49(6): 25-31.
[4] LI Xiao-dong, YU Zhi-yong, HUANG Fang-wan, ZHU Wei-ping, TU Chun-yu, ZHENG Wei-nan. Participant Selection Strategies Based on Crowd Sensing for River Environmental Monitoring [J]. Computer Science, 2022, 49(5): 371-379.
[5] QU Li-cheng, LYU Jiao, QU Yi-hua, WANG Hai-fei. Intelligent Assignment and Positioning Algorithm of Moving Target Based on Fuzzy Neural Network [J]. Computer Science, 2021, 48(8): 246-252.
[6] SUN Zhen-qiang, LUO Yong-long, ZHENG Xiao-yao, ZHANG Hai-yan. Intelligent Travel Route Recommendation Method Integrating User Emotion and Similarity [J]. Computer Science, 2021, 48(6A): 226-230.
[7] LIU Wei, LI Dong-kun, XU Chang, TIAN Zhao, SHE Wei. Channel Assignment Algorithm Based on Particle Swarm Optimization in Emergency Communication Networks [J]. Computer Science, 2021, 48(5): 277-282.
[8] WANG Wen-xuan, HU Jun, HU Jian-cheng, KANG Jie-xiang, WANG Hui, GAO Zhong-jie. Test Case Generation Method Oriented to Tabular Form Formal Requirement Model [J]. Computer Science, 2021, 48(5): 16-24.
[9] YAO Ze-wei, LIU Jia-wen, HU Jun-qin, CHEN Xing. PSO-GA Based Approach to Multi-edge Load Balancing [J]. Computer Science, 2021, 48(11A): 456-463.
[10] ZHANG Tian-rui, WEI Ming-qi, GAO Xiu-xiu. Prediction Model of Bubble Dissolution Time in Selective Laser Sintering Based on IPSO-WRF [J]. Computer Science, 2021, 48(11A): 638-643.
[11] LUAN Ling, PAN Lian-wu, YAN Lei, WU Xiao-lin. Research on Intelligent Control Technology of Accurate Cost for Unit Confirmation in All Links of Power Transmission and Transformation Project Based on Edge Computing [J]. Computer Science, 2021, 48(11A): 688-692.
[12] TIAN Meng-dan, LIANG Xiao-lei, FU Xiu-wen, SUN Yuan, LI Zhang-hong. Multi-subgroup Particle Swarm Optimization Algorithm with Game Probability Selection [J]. Computer Science, 2021, 48(10): 67-76.
[13] JI Shun-hui, ZHANG Peng-cheng. Test Case Generation Approach for Data Flow Based on Dominance Relations [J]. Computer Science, 2020, 47(9): 40-46.
[14] ZHANG Zhi-qiang, LU Xiao-feng, SUI Lian-sheng, LI Jun-huai. Salp Swarm Algorithm with Random Inertia Weight and Differential Mutation Operator [J]. Computer Science, 2020, 47(8): 297-301.
[15] QI Wei, YU Hui-qun, FAN Gui-sheng, CHEN Liang. WSN Coverage Optimization Based on Adaptive Particle Swarm Optimization [J]. Computer Science, 2020, 47(7): 243-249.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!