电信科学 ›› 2016, Vol. 32 ›› Issue (6): 93-102.doi: 10.11959/j.issn.1000-0801.2016178

• 研究与开发 • 上一篇    下一篇

基于组合混沌遗传算法的最小测试用例集生成

申情,蒋云良,沈张果,楼俊钢   

  1. 湖州师范学院信息工程学院,浙江 湖州 313000
  • 出版日期:2016-06-20 发布日期:2016-07-20
  • 基金资助:
    国家自然科学基金资助项目;浙江省自然科学基金资助项目;浙江省公益性技术应用研究计划基金资助项目;湖州市科技计划基金资助项目

Test case minimizing based on combination chaos genetic algorithm

Qing SHEN,Yunliang JIANG,Zhangguo SHEN,Jungang LOU   

  1. School of Information Engineering,Huzhou University,Huzhou 313000,China
  • Online:2016-06-20 Published:2016-07-20
  • Supported by:
    The National Natural Science Foundation of China;Natural Science Foundation of Zhejiang Province;Zhejiang Provincial Science and Technology Plan of China;Science and Technology Program of Huzhou City

摘要:

最小测试用例集生成是软件测试的重要研究领域之一。将具有均匀分布特性的Chebyshev和Logistic混沌映射相结合的混沌序列引入遗传算法的选择、交叉和变异操作,并在遗传测试用例选择方法中添加混沌扰动,实现全局最优,以解决遗传算法用于测试用例集约简时局部搜索能力弱、易早熟收敛等问题。在随机生成的测试用例需求对应关系及Siemens测试套件等实例上进行了实验研究,并与现有的经典方法在测试用例集生成规模和算法执行时间上进行了比较,实验结果表明,在保持算法执行时间的基础上,在遗传测试用例方法中引入混沌映射有助于生成规模更小的测试用例集。

关键词: 软件测试, 测试用例最小化, 混沌遗传算法, 测试用例

Abstract:

Test case minimizing is one of the most important research fields in software testing.Uniformly distributed Chebyshev and Logistic chaos sequence were introduced in the selection,crossover and mutation of genetic algorithm.Chaos disturbance was also added in genetic testing suite to address the common problems of weak ability in local search and premature convergence,thus to optimize the test result.Experiments were conducted in randomly generated test suites and Siemens test suites.Comparisons were also made with classical methods regard to the scale of production of test suite and the execution time of the algorithms.The results of the experiment indicate that based on the same execution time of the algorithms,a smaller scale test suite can be produced by introducing chaotic sequence in genetic testing suite selection.

Key words: software testing, test cases minimizing, chaos genetic algorithm, test case

No Suggested Reading articles found!