We use cookies to improve your experience with our site.
戚荣志, 王志坚, 李水艳. 一种用于两两组合测试用例集生成的基于Spark的并行化遗传算法[J]. 计算机科学技术学报, 2016, 31(2): 417-427. DOI: 10.1007/s11390-016-1635-5
引用本文: 戚荣志, 王志坚, 李水艳. 一种用于两两组合测试用例集生成的基于Spark的并行化遗传算法[J]. 计算机科学技术学报, 2016, 31(2): 417-427. DOI: 10.1007/s11390-016-1635-5
Rong-Zhi Qi, Zhi-Jian Wang, Shui-Yan Li. A Parallel Genetic Algorithm Based on Spark for Pairwise Test Suite Generation[J]. Journal of Computer Science and Technology, 2016, 31(2): 417-427. DOI: 10.1007/s11390-016-1635-5
Citation: Rong-Zhi Qi, Zhi-Jian Wang, Shui-Yan Li. A Parallel Genetic Algorithm Based on Spark for Pairwise Test Suite Generation[J]. Journal of Computer Science and Technology, 2016, 31(2): 417-427. DOI: 10.1007/s11390-016-1635-5

一种用于两两组合测试用例集生成的基于Spark的并行化遗传算法

A Parallel Genetic Algorithm Based on Spark for Pairwise Test Suite Generation

  • 摘要: 两两组合测试是一种有效的测试用例集生成技术,该方法生成的测试用例集能够至少覆盖一次所有参数取值的两两组合。已有研究表明,组合测试的最小测试用例集生成问题是一个NP完全问题。目前已有一些研究者尝试使用遗传算法生两两组合测试用例集,但是需要较长的计算时间,这就给实际使用遗传算法解决大规模测试生成问题带来明显的限制和障碍。在这方面并行化将是一个有效的方法,该方法不仅能够增加遗传算法的计算性能,而且能够提高解的质量。本文中,我们使用Spark并行化遗传算法来解决组合测试用例集生成时间长的问题。Spark是一种快速、通用的并行计算平台。我们提出了两阶段并行化算法:适应度函数计算并行化和遗传操作并行化。实验结果表明,本文所提出的算法在生成测试用例集规模和计算时间方面均优于串行遗传算法。和其它组合测试生成方法相比,该算法具有一定的竞争力。因此,本文提出的算法是遗传算法在两两组合测试用例集生成方面的一个有效的改进。

     

    Abstract: Pairwise testing is an effective test generation technique that requires all pairs of parameter values to be covered by at least one test case. It has been proven that generating minimum test suite is an NP-complete problem. Genetic algorithms have been used for pairwise test suite generation by researchers. However, it is always a time-consuming process, which leads to significant limitations and obstacles for practical use of genetic algorithms towards large-scale test problems. Parallelism will be an effective way to not only enhance the computation performance but also improve the quality of the solutions. In this paper, we use Spark, a fast and general parallel computing platform, to parallelize the genetic algorithm to tackle the problem. We propose a two-phase parallelization algorithm including fitness evaluation parallelization and genetic operation parallelization. Experimental results show that our algorithm outperforms the sequential genetic algorithm and competes with other approaches in both test suite size and computational performance. As a result, our algorithm is a promising improvement of the genetic algorithm for pairwise test suite generation.

     

/

返回文章
返回