作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (03): 21-23. doi: 10.3969/j.issn.1000-3428.2007.03.008

• 博士论文 • 上一篇    下一篇

基于面向路径的遗传算法的测试用例自动生成

金 虎1,2,李志蜀1,张 磊1,李宝林1,李勇军1   

  1. (1. 四川大学计算机学院,成都 610064;2. 成都信息工程学院计算机系,成都 610041)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-02-05 发布日期:2007-02-05

Test Cases Automatic Generation Based on Path-oriented Algorithm Generation

JIN Hu1,2, LI Zhishu1, ZHANG Lei1, LI Baolin1, LI Yongjun1   

  1. (1. School of Computer, Sichuan Univ., Chengdu 610064; 2. Dept. of Computer Sci., Chengdu Univ. of Info. Tech., Chengdu 610041)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-02-05 Published:2007-02-05

摘要: 采用遗传算法用于自动生成测试用例的设计,算法面向路径测试作了下列工作:(1)以控制路径表CFDPATH_T为基础分析测试用例与执行路径的关系;(2)设计面向路径的遗传算法实现测试用例的自动生成,证明了该方法能实现测试用例空间上对路径的等价类划分;(3)从统计角度对该方法的错误检测能力进行了量化分析;(4)在该算法的基础上设计了试验和结果分析,结果表示该算法较随机方法有更好的性能。

关键词: 自动软件测试, 遗传算法, 自适应, 测试用例

Abstract: Applying GA in automatic test cases generation, followed is the main work: (1)Using control flow path table to analyze the relation between test cases and the executing path; (2)Implementing the GA for automatic test cases generating which is path-oriented, and proving this method can accomplish the equivalent-class subdividing in all the test cases set; (3)In the point of statistics to analyze the error-detecting capability of this method; (4)Doing experiment for validating, which shows a far better performance than a random way.

Key words: Automatic software test, Genetic algorithm, Self-adaptive, Test case