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

计算机工程 ›› 2011, Vol. 37 ›› Issue (16): 33-35. doi: 10.3969/j.issn.1000-3428.2011.16.011

• 软件技术与数据库 • 上一篇    下一篇

基于需求关系的测试用例集优化方法

谢经纬,吴 昊,刘胜蓝   

  1. (湖南大学计算机与通信学院,长沙 410082)
  • 收稿日期:2011-02-25 出版日期:2011-08-20 发布日期:2011-08-20
  • 作者简介:谢经纬(1983-),男,硕士研究生,主研方向:软件测试;吴 昊,副教授、博士;刘胜蓝,硕士

Optimization Method of Test Case Set Based on Requirement Relationship

XIE Jing-wei, WU Hao, LIU Sheng-lan   

  1. (School of Computer and Communication, Hunan University, Changsha 410082, China)
  • Received:2011-02-25 Online:2011-08-20 Published:2011-08-20

摘要: 针对测试用例集存在冗余测试用例的问题,给出基于需求关系的测试用例集优化方法。从需求对应的代码分布出发,按照测试用例覆盖路径定义需求的逻辑关系,借鉴DDGRAPH方法,提出公共路径约减算法,并在此基础上,给出需求-用例调整算法,对需求及其对应的用例集进行优化。实验结果表明,该方法能降低处理的基数,提高用例设计的效率。

关键词: 需求关系, 用例集优化, 覆盖, 路径, 冗余用例

Abstract: This paper presents a method based on relationship of requirements, in order to reduce redundant test cases. It begins at corresponding code distribution requirements, defines logic relationship of requirements, based on path coverage of test case set, and proposes a method for public path reduction, and proposes a method for adjusting requirement-test case set. Experimental results show that the method is helpful to reduce the base of further processing and contributes to effective test.

Key words: requirement relationship, test case set optimization, coverage, path, redundant case

中图分类号: