Computer Science ›› 2019, Vol. 46 ›› Issue (12): 208-212.doi: 10.11896/jsjkx.181102106

• Software & Database Technology • Previous Articles     Next Articles

Multi-objective Test Case Prioritization Method Combined with Dynamic Reduction

ZHANG Na1, XU Hai-xia1, BAO Xiao-an1, XU Lu1, WU Biao2   

  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-11-15 Online:2019-12-15 Published:2019-12-17

Abstract: Aiming at the shortcomings of ant colony algorithm in solving MOTCP problem,such as slow convergence rate and easy to fall into local optimum,a dynamic multi-objective test case prioritization method for online ant colony pheromone updating was proposed.The method introduces a dynamic reduction idea.Firstly,the initial test case set cove-ring the same requirements is firstly reduced according to the coverage of the requirements by each test case.Secondly,according to whether the test case can detect the error and the severity of the detected error during the execution process,a method for judging the failure degree of the test case is designed.After each iteration of the ant colony,a se-cond reduction is made to the test case in which no error is detected,so as to reduce the number of test cases that the ant colony needs to pass in the next iteration,and the sorting time is greatly reduced by two reductions.At the same time,in the process of each iteration of the ant colony,by considering the influence of the test factor importance degree,the failure degree and the actual execution time on the next round of pheromone,an online ant colony is designed to update the ant colony simultaneously under three influence factors.The pheromone method enables ant colonies to find the next test case faster and more accurately.Finally,this method,traditional ant colony sorting method and multi-objective optimization sorting method were respectively applied to multiple open source software programs for experimental comparison.The simulation results show that the prioritization method of the online update pheromone of the proposed dynamic reduction has great advantages in performance indicators such as defect detection capability and effective execution time,and can detect errors with higher severity at an earlier level.

Key words: Actual execution time, Ant colony algorithm, Dynamic reduction, Priority sorting, Test case failure degree, Test case importance

CLC Number: 

  • TP311
[1]CHEN X,CHEN J H,YAN X L,et al.A Review of Test Case Prioritization Techniques in Regression Testing[J].Journal of Software,2013,24(8):1695-1712.(in Chinese)
陈翔,陈继红,鞠小林,等.回归测试中的测试用例优先排序技术述评[J].软件学报,2013,24(8):1695-1712.
[2]YU H,YANG Y,WANG Y,et al.Priority ordering of regression test cases based on risk analysis[J/OL].Chinese Journal of Computers,2017:1-19[2019-08-08].http://kns.cnki.net/kcms/detail/11.1826.TP.20171228.1931.006.html.(in Chinese)
于海,杨月,王莹,等.基于风险分析的回归测试用例优先级排序[J/OL].计算机学报,2017:1-19[2019-08-08].http://kns.cnki.net/kcms/detail/11.1826.TP.20171228.1931.006.html.
[3]YOO S,HARMAN M.Regression testing minimization,selec- tion and prioritization:a survey[J].Software Testing,Verification and Reliability,2012,22(2):67-102.
[4]EPITROPAKIS M G,YOO S,HARMAN M,et al.Empirical evaluation of Pareto efficient multi-objective regression test case prioritization[C]//Proceedings of the 2015 International Symposium on Software Testing and Analysis,New York:ACM,2015:234-245.
[5]ZHANG N,LIN Q X,BAO X A,et al.A Prioritization Method for Combined Test Cases Based on OTT Strategy[J].Computer Engineering and Applications,2018,54(13):41-46,92.(in Chinese)
张娜,林青霞,包晓安,等.基于OTT策略的组合测试用例优先级排序方法[J].计算机工程与应用,2018,54(13):41-46,92.
[6]CHANG L H,MIAO H K,XIAO L.Adaptive Test Case Priority Technology Based on Historical Information[J].Computer Science,2015,42(9):154-158.(in Chinese)
常龙辉,缪淮扣,肖蕾.基于历史信息的自适应测试用例优先级技术[J].计算机科学,2015,42(9):154-158.
[7]SINGH Y,KAUR A,SURI B,Test case prioritization using ant colony optimization [J].ACM SIGSOFT Software Engineering Notes,2010,35(4):1-7.
[8]DORIGO M,STUTZLE T.Ant colony optimization:overview and recent advances[M]//Handbook of metaheuristics.Sprin-ger,Cham,2019:311-351.
[9]OLIVAS F,VALDEZ F,CASTILLO O,et al.Ant colony optimization with dynamic parameter adaptation based on interval type-2 fuzzy logic systems[J].Applied Soft Computing,2017,53:74-87.
[10]GU C H,LI Z,ZHAO R L.ATO-based Test Case Pre-Optimization and Parameter Influence Analysis[J].Computer Science and Technology,2014,8(12):1463-1473.(in Chinese)
顾聪慧,李征,赵瑞莲.基于ACO 的测试用例预优化及参数影响分析[J].计算机科学与探索,2014,8(12):1463-1473.
[11]STUTZLE T,HOOS H.MAX-MIN ant system and local search for the traveling salesman problem [C]//Proceedings of the 1997 IEEE International Conference on Evolutionary Computation.Piscataway,NJ:IEEE,1997:309-314.
[12]DORIGO M,GAMBARDELLA L M.Ant colony system:a cooperative learning approach to the traveling salesman problem [J].IEEE Transactions on Evolutionary Computation,1997,1(1):53-66.
[13]ZHANG X,YE T,JIN Y.Approximate non-dominated sorting for evolutionary many-objective optimization[J].Information Sciences,2016,369:14-33.
[14]MASHWANI W K,SALHI A,YENIAY O,et al.Hybrid non-dominated sorting genetic algorithm with adaptive operators selection[J].Applied Soft Computing,2017,56:1-18.
[15]XING X,SHANG Y,ZHAO R L,et al.A pheromone update strategy for ant colony algorithm for multi-objective test case prioritization[J].Journal of Computer Applications,2016,36(9):2497-2502.(in Chinese)
邢行,尚颖,赵瑞莲,等.面向多目标测试用例优先排序的蚁群算法信息素更新策略[J].计算机应用,2016,36(9):2497-2502.
[16]REN H L,ZHANG W,LIANG J A.Optimization of test case set based on ant colony algorithm[J].Computer Engineering and Applications,2010,46(29):58-62.(in Chinese)
任洪丽,张伟,梁家安.基于蚁群算法的测试用例集优化方法[J].计算机工程与应用,2010,46(29):58-62.
[17]ZHANG N,YAO L,BAO X A,et al.Multi-objective Optimization Test Case Online Priority Adjustment Strategy[J].Journal of Software,2015,26(10):2451-2464.(in Chinese)
张娜,姚澜,包晓安,等.多目标优化的测试用例优先级在线调整策略[J].软件学报,2015,26(10):2451-2464.
[18]CAI K,CHEN T Y,LI Y,et al.Adaptive Testing of Software Components 1[C]//Acm Symposium on Applied Computing.DBLP,2005.
[1] LIU Xin, WANG Jun, SONG Qiao-feng, LIU Jia-hao. Collaborative Multicast Proactive Caching Scheme Based on AAE [J]. Computer Science, 2022, 49(9): 260-267.
[2] GAO Wen-long, ZHOU Tian-yang, ZHU Jun-hu, ZHAO Zi-heng. Network Attack Path Discovery Method Based on Bidirectional Ant Colony Algorithm [J]. Computer Science, 2022, 49(6A): 516-522.
[3] 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.
[4] GUO Rui, LU Tian-liang, DU Yan-hui, ZHOU Yang, PAN Xiao-qin, LIU Xiao-chen. WSN Source-location Privacy Protection Based on Improved Ant Colony Algorithm [J]. Computer Science, 2020, 47(7): 307-313.
[5] TIAN Xian-zhen, SUN Li-qiang, TIAN Zhen-zhong. Image Reconstruction Based on Ant Colony Algorithm [J]. Computer Science, 2020, 47(11A): 231-235.
[6] CAO Yi-qin, WU Dan, HUANG Xiao-sheng. Track Defect Image Classification Based on Improved Ant Colony Algorithm [J]. Computer Science, 2019, 46(8): 292-297.
[7] ZHENG Ben-li, LI Yue-hui. Study on SDN Network Load Balancing Based on IACO [J]. Computer Science, 2019, 46(6A): 291-294.
[8] LI Shan-shan, LIU Fu-jiang, LIN Wei-hua. Path Planning Method of Large-scale Fire Based on Multiple Starting Points and Multiple Rescue Points [J]. Computer Science, 2019, 46(11A): 134-137.
[9] LI Hang, ZANG Lie, GAN Lu. Search of Speculative Symbolic Execution Path Based on Ant Colony Algorithm [J]. Computer Science, 2018, 45(6): 145-150.
[10] LIU Jun, XU Ping-ping, WU Gui-lu, PENG Jie. PSO-ACO Fusion Algorithm Based on Optimal Path Planning in Indoor Environment [J]. Computer Science, 2018, 45(11A): 97-100.
[11] WANG Xin, WANG Ren-fu, QIN Qin, JIANG Hua. Optimization Selection Strategy of Cloud Storage Replica [J]. Computer Science, 2018, 45(10): 300-305.
[12] XIE Yong-hao, GAO Song-feng and DAI Ming-zhu. Virtual Network Mapping Optimization Based on Improved Ant Colony Algorithm [J]. Computer Science, 2017, 44(Z6): 312-313.
[13] CAO Feng, TANG Chao and ZHANG Jing. Algorithm of Continuous Attribute Discretization Based on Binary Ant Colony and Rough Sets [J]. Computer Science, 2017, 44(9): 222-226.
[14] WANG Yang and SHEN Ji-quan. Single Line Transit Mixed Scheduling Model Based on Vehicle Departure Timetable [J]. Computer Science, 2017, 44(10): 269-275.
[15] FANG Ting and HAN Jia-ming. Detection and Localization of Insulator Defects in Aerial Images [J]. Computer Science, 2016, 43(Z6): 222-225.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!