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 条
  • [31] Assuncao W.K.G., Colanzi T.E., Vergilio S.R., Pozo A., A multi-objective optimization approach for the integration and test order problem, Information Sciences, 267, 20, pp. 119-139, (2014)
  • [32] Burke E.K., Hyde M., Kendall G., Et al., A survey of hyper-heuristics, (2009)
  • [33] Guizzo G., Fritsche G.M., Vergilio S.R., Et al., A hyper-heuristic for the multi-objective integration and test order problem, Proceedings of the Genetic and Evolutionary Computation Conference, pp. 1343-1350, (2015)
  • [34] Wang Z.-S., Application of hybrid genetic algorithm in object oriented software integration test, Computer Applications, 28, 5, pp. 1341-1343, (2008)