Class Integration Testing Order Determination Method Based on Particle Swarm Optimization Algorithm

被引:0
|
作者
Zhang Y.-M. [1 ,2 ]
Jiang S.-J. [1 ]
Chen R.-Y. [1 ]
Wang X.-Y. [1 ]
Zhang M. [1 ]
机构
[1] School of Computer Science and Technology, China University of Mining and Technology, Xuzhou, 221116, Jiangsu
[2] Guangxi Key Laboratory of Trusted Software, Guilin, 541004, Guangxi
来源
Jiang, Shu-Juan (shjjiang@cumt.edu.cn) | 2018年 / Science Press卷 / 41期
关键词
Integration testing; Object-oriented; One-dimensional space; Particle swarm optimization algorithm; Test order;
D O I
10.11897/SP.J.1016.2018.00931
中图分类号
学科分类号
摘要
Class integration testing is an important part in object-oriented software testing, and it is a key and difficult problem to determine the class integration test order of class cluster in integration testing. Reasonable class integration test order can reduce the overall complexity of test stub, and reduce test cost. A class integration test order determination method based on particle swarm optimization algorithm is proposed. First, all possible classes test orders are generated through permutation and combination, and each class test order is taken as a particle and is mapped to one dimensional space, and then each position in dimensional space represents a integration test order; Then, we calculate the velocity and position of each particle according to fitness function, and then choose the optimal position and the optimal fitness of the particles by particle swarm optimization algorithm, and obtain the optimal particle; Finally, according to the mapping relationship, we get the test order that the optimal particle is corresponding to, which is the optimal test order. The optimal test order makes the minimum overall complexity of test stub and the minimum test cost. The experimental results show that the proposed approach takes a lower test stub cost for solving the class test order problem, which is more effective. © 2018, Science Press. All right reserved.
引用
收藏
页码:931 / 945
页数:14
相关论文
共 34 条
  • [1] Briand L.C., Feng J., Labiche Y., Software Engineering with Computational Intelligence: Experimenting with Genetic Algorithms to Devise Optimal Integration Test Order, (2003)
  • [2] Hanh V.L., Akif K., Le Traon Y., Jezequel J.-M., Selecting an efficient OO integration testing strategy: An experimental comparison of actual strategies, Proceedings of the 15th European Conference on Object-Oriented Programming, pp. 381-401, (2001)
  • [3] Windisch A., Wappler S., Wegener J., Applying particle swarm optimization to software testing, Proceedings of the 9th Annual Conference on Genetic and Evolutionary Computation, pp. 1121-1128, (2007)
  • [4] Briand L.C., Feng J., Labiche Y., Using genetic algorithms and coupling measures to devise optimal integration test orders, Proceeding of the 14th International Conference on Software Engineering and Knowledge Engineering, pp. 43-50, (2002)
  • [5] Briand L.C., Labiche Y., Wang Y., An investigation of graph-based class integration test order strategies, IEEE Transactions on Software Engineering, 29, 7, pp. 594-607, (2003)
  • [6] Wang Z.-S., Li B.-X., Using coupling measure technique and random iterative algorithm for inter-class integration test order problem, Proceedings of the 34th Annual IEEE Computer Software and Applications Conference Workshops, pp. 329-334, (2010)
  • [7] Hewett R., Kijsanayothin P., Smavatkul D., Test order generation for efficient object-oriented class integration testing, Proceedings of the 20th International Conference on Software Engineering and Knowledge Engineering, pp. 703-708, (2008)
  • [8] Kung D., Gao J., Hsia P., Et al., A test strategy for object-oriented programs, Proceedings of the 9th Annual International Computer Software and Applications Conference, pp. 239-244, (1995)
  • [9] Tai K.C., Daniels F.J., Interclass test order for object-oriented software, Proceedings of the 21st International Computer Software and Applications Conference, pp. 602-607, (1997)
  • [10] Le Traon Y., Jeron T., Jezequel J.-M., Morel P., Efficient object-oriented integration and regression test, IEEE Transactions on Reliability, 49, 1, pp. 12-25, (2000)